FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 08-27-2012, 05:56 AM
Stephen Kitt
 
Default Bug#637236: FTBFS on kfreebsd-amd64: gengtype: Internal error: abort in get_output_file_with_visibility, at gengtype.c:1998

Hi,

On Tue, Jun 12, 2012 at 01:14:06AM +0100, Steven Chamberlain wrote:
> Just noting that this bug still happened recently. A consecutive
> failure/success on the same buildd. Best keep an eye on it for a while
> longer.

It also happens a lot on gcc-mingw-w64 builds - see
https://buildd.debian.org/status/logs.php?pkg=gcc-mingw-w64&arch=kfreebsd-amd64
for the details. The last failure was yesterday...

Regards,

Stephen
 
Old 10-07-2012, 04:29 PM
Steven Chamberlain
 
Default Bug#637236: FTBFS on kfreebsd-amd64: gengtype: Internal error: abort in get_output_file_with_visibility, at gengtype.c:1998

Hi,

The Internal error: abort in get_output_file_with_visibility, at
gengtype.c:1998, seen sometimes on kFreeBSD, seems to be here:

> err = regcomp (files_rules[rulix].frul_re,
> files_rules[rulix].frul_srcexpr,
> files_rules[rulix].frul_rflags);
> if (err)
> {
> /* The regular expression compilation fails only when
> file_rules is buggy. */
> gcc_unreachable ();

So it seems to fail to compile a regex, but apparently not always.
Unfortunately we can't see the return value / error (and nobody could
reproduce this yet outside of the buildds), but I guess an error that
might happen only _sometimes_ is REG_ESPACE (The regex routines ran out
of memory).

This happens inside of a loop, so maybe something is exhausting
resources and leaving too little memory for when some unused-yet regex
needs to be compiled? A new obstack is created on each iteration but
they were not being properly freed until this commit (fixing it in GCC
4.7.0, but not in GCC 4.6.3) :

http://gcc.gnu.org/viewcvs?view=revision&revision=172832

So I guess that could be worth a try?


Also in another commit I noticed a change that might be important when
multiple jobs are running (though this doesn't seem to be the situation
yet for gcc-4.6 on kFreeBSD) :

http://gcc.gnu.org/viewcvs/trunk/gcc/Makefile.in?r1=177358&r2=177357&pathrev=177358

Specifically this part:

@@ -3853,9 +3862,10 @@
gtyp-input.list
# First, parse all files and save a state file.
$(RUN_GEN) build/gengtype$(build_exeext) $(GENGTYPE_FLAGS)
- -S $(srcdir) -I gtyp-input.list -w gtype.state
+ -S $(srcdir) -I gtyp-input.list -w tmp-gtype.state
# Second, read the state file and generate all files. This ensure that
# gtype.state is correctly read:
+ $(SHELL) $(srcdir)/../move-if-change tmp-gtype.state gtype.state
$(RUN_GEN) build/gengtype$(build_exeext) $(GENGTYPE_FLAGS)
-r gtype.state
$(STAMP) s-gtype

Thanks,
Regards,
--
Steven Chamberlain
steven@pyro.eu.org


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 5071ADFF.6030704@pyro.eu.org">http://lists.debian.org/5071ADFF.6030704@pyro.eu.org
 
Old 10-07-2012, 11:47 PM
Matthias Klose
 
Default Bug#637236: FTBFS on kfreebsd-amd64: gengtype: Internal error: abort in get_output_file_with_visibility, at gengtype.c:1998

On 07.10.2012 18:29, Steven Chamberlain wrote:
> Hi,
>
> The Internal error: abort in get_output_file_with_visibility, at
> gengtype.c:1998, seen sometimes on kFreeBSD, seems to be here:

[...]

checked in both changes. will wait until -11 migrates, or if not, upload -12 to
unstable.

thanks, Matthias


--
To UNSUBSCRIBE, email to debian-gcc-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 50721478.2050405@debian.org">http://lists.debian.org/50721478.2050405@debian.org
 

Thread Tools




All times are GMT. The time now is 01:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org