This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs sig 11 error
- To: law at cygnus dot com
- Subject: Re: egcs sig 11 error
- From: Jon Barnett <jbarnett at mpx dot com dot au>
- Date: Sun, 20 Sep 1998 20:54:15 +1000
- Cc: egcs-bugs at cygnus dot com
- References: <Your message of Sat, 12 Sep 1998 09:03:00 MDT. <3.0.5.32.19980912090300.007a2d80@daedalus.hsys.com.au>
At 13:45 12/09/98 -0600, Jeffrey A Law wrote:
> > The following is the output of the debug session:
> >
> > Program received signal SIGSEGV, Segmentation fault.
> > 0x8126f8a in reload (first=0x81c92e4, global=1, dumpfile=0x0)
> > at ../../gcc/reload1.c:1340
> > 1340 in_max = MAX (in_max,
> > insn_needs.in_addr[j].groups[i]);
> > 6: &insn_needs.in_addr[j].groups[i] = (int *) 0xbfffd614
> > 5: insn_needs.in_addr[j].groups[i] = 0
> > 4: in_max = 0
> > 3: reload_n_operands = 1
> > 2: j = 0
> > 1: i = 0
> > (gdb) bt
> > #0 0x8126f8a in reload (first=0x81c92e4, global=1, dumpfile=0x0)
> > at ../../gcc/reload1.c:1340
> > #1 0x8119849 in global_alloc (file=0x0) at ../../gcc/global.c:587
> > #2 0x80669b9 in rest_of_compilation (decl=0x81ef268)
> > at ../../gcc/toplev.c:3723
> > #3 0x805748e in finish_function (nested=0) at ../../gcc/c-decl.c:7182
> > #4 0x8049897 in yyparse () at c-parse.y:349
> > #5 0x8065522 in compile_file (name=0xbffffc96 "crtstuff.i")
> > at ../../gcc/toplev.c:2768
> > #6 0x80680f3 in main (argc=7, argv=0xbffffb10, envp=0xbffffb30)
> > at ../../gcc/toplev.c:4838
> > #7 0x804908e in _start ()
> >
> >
> > I had expected an out-of-bounds condition but from the debug, everything
> > seems ok. I will try to roll back to an egcs-1.0.2 build and see what
> > happens when I build egcs-1.1a with that.
>Quite odd. Is the first stage being built with optimization? If so
>the segfault could actually be for one of the other nearby accesses.
Sorry for the delayed reply. Unfortunately I had to attend a client site
at rather short notice and so wasn't able to get back to this particular
problem until the weekend.
In answer to your question, I don't set any special optimizations and
pretty much let "configure" set things up - the only concession being a
'--prefix=/usr' option.
I tried recompiling the egcs-1.1a installation using a 'make clean; make
bootstrap' but the same error came up.
Funnily enough, I installed the egcs-1.1b source and compiled that and it
went fine. I then deleted the egcs-1.1a source and unpacked it again,
going through the configure and then the 'make bootstrap'. This also
compiled ok ...
Finally, I did a 'make clean; make bootstrap' on the successful egcs-1.1b
source installation. This compile broke at the same place as the original
faulty egcs-1.1a compile. Removing the source installation for egcs-1.1b
and re-installing a clean source allowed a trouble-free rebuild to take place.
Now I'm really confused about what is taking place. Anyway, I will now
install the new egcs build, as the tests came up with a thumbs-up.
I'm still wondering why it won't rebuild after a 'make clean'.
Anyway, thanks for the effort.
Best regards,
Jon Barnett