This is the mail archive of the
mailing list for the binutils project.
On Mon, Jun 12, 2006 at 11:10:55PM +0200, Andreas Schwab wrote:
> "H. J. Lu" <firstname.lastname@example.org> writes:
> > On Mon, Jun 12, 2006 at 11:19:24AM +0200, Andreas Schwab wrote:
> >> Alan Modra <email@example.com> writes:
> >> > On Fri, Jun 09, 2006 at 03:36:59PM +0200, Andreas Schwab wrote:
> >> >> Alan Modra <firstname.lastname@example.org> writes:
> >> >> > * hash.c (bfd_hash_lookup): Correct stray line.
> >> >>
> >> >> The linker is now crashing very often with an assertion failure in
> >> >> _bfd_elf_strtab_delref. Apparently the hash resizing was never properly
> >> >> tested, since with the misplaced increment it was unlikely to ever
> >> >> trigger. In fact, disabling it will fix the crashes.
> >> >
> >> > How do you get these crashes?
> >> Just by linking any moderately big binary.
> > Will building gcc on x86, x86-64 and ia64 trigger this?
> For the particular case of builing the libsndfile package it triggers on
> x86, x86-64 and ia64, but not on ppc/ppc64.
> gcc -O2 -fmessage-length=0 -Wall -D_FORTIFY_SOURCE=2 -g -fno-strict-aliasing -W -Wall -Wstrict-prototypes -Wpointer-arith -Wno-unused-parameter -std=gnu99 -W -Wall -Wdeclaration-after-statement -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -pipe -o .libs/sndfile-regtest sndfile-regtest.o database.o checksum.o ../src/.libs/libsndfile.so /usr/lib/libFLAC.so /usr/lib/libsqlite3.so -lpthread -lm
> collect2: ld terminated with signal 11 [Segmentation fault]
> /usr/lib/gcc/ia64-suse-linux/4.1.2/../../../../ia64-suse-linux/bin/ld: BFD 22.214.171.124.2 20060526 (SUSE Linux) assertion fail ../../bfd/elf-strtab.c:200
Can you provide a self-contained testcase?