This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

stacktrace on ld segfault


Hello,

ld keeps segfaulting will I compile mozilla.  I'm ugrading to 2.95.3 and
utils but before I do I figured I'd post the backtrace if anyones
interested.

Below is my system info, the ld error, and then a backtrace on the core
file.  Note that the bt was done on a core file from another make run
but the error was the same.

PS. if this is not the right list for ld bugs please let me know.

First the system info...

RH6.2
[mozilla@bashful mozilla]$ uname -a
Linux bashful 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686 unknown
[mozilla@bashful mozilla]$ ld -v
GNU ld version 2.9.5 (with BFD 2.9.5.0.22)
[mozilla@bashful mozilla]$ gcc -v
Reading specs from
/usr/lib/gcc-lib/i386-redhat-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)
[mozilla@bashful mozilla]$ date
Wed Mar 28 14:33:28 EST 2001

Now the ld error...

[...]
make[2]: Entering directory `/home/mozilla/mozilla/content/build'
rm -f libgkcontent.so
c++ -I/usr/X11R6/include -fno-rtti -fno-exceptions -Wall -Wconversion
-Wpointer-
arith -Wbad-function-cast -Wcast-align -Woverloaded-virtual -Wsynth
-Wshadow -pe
dantic -Wno-long-long -pipe -pthread  -DDEBUG -DDEBUG_mozilla
-DTRACING
-g -shar
ed -Wl,-h -Wl,libgkcontent.so -o libgkcontent.so     nsContentDLF.o
nsContentFac
tory.o nsContentModule.o nsContentHTTPStartup.o
-Wl,--whole-archive
../../d
ist/lib/libgkconevents_s.a ../../dist/lib/libgkconhtmlcon_s.a
../../dist/lib/lib
gkconhtmldoc_s.a ../../dist/lib/libgkconhtmlstyle_s.a
../../dist/lib/libgkconxml
con_s.a ../../dist/lib/libgkconxmldoc_s.a
../../dist/lib/libgkconxsldoc_s.a ../.
./dist/lib/libgkconxulcon_s.a ../../dist/lib/libgkconxuldoc_s.a
../../dist/lib/l
ibgkconxultmpl_s.a ../../dist/lib/libgkconxbl_s.a
../../dist/lib/libgkconbase_s.
a ../../dist/lib/libgkconshared_s.a  -Wl,--no-whole-archive
-L../../dist/bin -lj
sdom -lgkgfx -L../../dist/bin -lplds4 -lplc4 -lnspr4 -lpthread
-L../../dist/bin 
-lxpcom -lmozjs   -ldl -lm  -lc   
collect2: ld terminated with signal 11 [Segmentation fault], core
dumped
/usr/bin/ld: Warning: size of symbol `' changed from 134549996 to 37
in
nsXULTem
plateBuilder.o
/usr/bin/ld: Warning: type of symbol `' changed from 14 to 2 in
nsXULTemplateBui
lder.o
make[2]: *** [libgkcontent.so] Error 1
make[2]: Leaving directory `/home/mozilla/mozilla/content/build'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/mozilla/mozilla/content'
make: *** [install] Error 2
[...]

[mozilla@bashful build]$ file core
core: ELF 32-bit LSB core file of 'ld' (signal 11), Intel 80386, version
1
[mozilla@bashful build]$ which ld
/usr/bin/ld
[mozilla@bashful build]$ gdb ld core
GNU gdb 19991004
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for
details.
This GDB was configured as "i386-redhat-linux"...(no debugging symbols
found)...
Core was generated by `/usr/bin/ld -m elf_i386 -shared -o
libgkcontent.so /usr/lib/crti.o /usr/lib/gcc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libbfd-2.9.5.0.22.so...(no debugging
symbols found)...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
#0  0x4002fd21 in bfd_hash_lookup () from /usr/lib/libbfd-2.9.5.0.22.so
(gdb) bt f
#0  0x4002fd21 in bfd_hash_lookup () from /usr/lib/libbfd-2.9.5.0.22.so
No symbol table info available.
#1  0x4003012b in _bfd_stringtab_add () from
/usr/lib/libbfd-2.9.5.0.22.so
No symbol table info available.
#2  0x40036dee in _bfd_link_section_stabs () from
/usr/lib/libbfd-2.9.5.0.22.so
No symbol table info available.
#3  0x4003db73 in elf_link_add_object_symbols () from
/usr/lib/libbfd-2.9.5.0.22.so
No symbol table info available.
#4  0x4003b90c in bfd_elf32_bfd_link_add_symbols () from
/usr/lib/libbfd-2.9.5.0.22.so
No symbol table info available.
#5  0x8050bf7 in bfd_link_hash_lookup ()
No symbol table info available.
#6  0x8051484 in bfd_link_hash_lookup ()
No symbol table info available.
#7  0x8053a88 in bfd_link_hash_lookup ()
No symbol table info available.
#8  0x8056198 in bfd_link_hash_lookup ()
No symbol table info available.
#9  0x4007c9cb in __libc_start_main (main=0x8055b90
<bfd_link_hash_lookup+46956>, argc=53, argv=0xbffff1f4, init=0x8049ca4
<_init>, fini=0x80639fc <_fini>, 
    rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff1ec) at
../sysdeps/generic/libc-start.c:92
        argv = (char **) 0xbffff15c
        rtld_fini = (void (*)()) 0x807cd28
        stack_end = (void *) 0x406ade1f

-Kervin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]