This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
seg. viol. with coff_link_add_symbols [Was: Results for binutils 2.15.91 20040721 testsuite on i686-pc-cygwin]
- From: Christian Joensson <christian at j-son dot org>
- To: binutils <binutils at sources dot redhat dot com>
- Date: Thu, 22 Jul 2004 09:19:01 +0200
- Subject: seg. viol. with coff_link_add_symbols [Was: Results for binutils 2.15.91 20040721 testsuite on i686-pc-cygwin]
- References: <20040722071033.GA14966@pentium3.j-son.org>
On Thu, Jul 22, 2004 at 09:10:33AM +0200, Christian Joensson wrote:
> Windows XP Pro/SP1 cygwin P4 mobile system with these packages:
>
> binutils 20040312-1 2.15.90 20040312
> bison 20030307-1 1.875b
> cygwin 1.5.10-3
> dejagnu 20021217-2 1.4.2.x
> expect 20030128-1 5.26
> gcc 3.3.1-3
> tcltk 20030901-1 8.4
>
> LAST_UPDATED: Thu Jul 22 05:44:14 UTC 2004
>
> Native configuration is i686-pc-cygwin
snip
>
> Running target unix
> FAIL: cdtest with -Ur
> FAIL: NOCROSSREFS 2
> FAIL: DEFINED (PRMS 5699)
So... from the log file:
/usr/local/src/trunk/objdir-binutils/ld/ld-new -o tmpdir/def -T /usr/local/src/trunk/src/ld/testsuite/ld-scripts/defined.t tmpdir/def.o
child killed: segmentation violation
and then debugging with gdb:
$ gdb /usr/local/src/trunk/objdir-binutils/ld/ld-new
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 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 "i686-pc-cygwin"...
(gdb) set args -o tmpdir/def -T /usr/local/src/trunk/src/ld/testsuite/ld-scripts/defined.
t tmpdir/def.o
(gdb) r
Starting program: /usr/local/src/trunk/objdir-binutils/ld/ld-new.exe -o tmpdir/def -T /us
r/local/src/trunk/src/ld/testsuite/ld-scripts/defined.t tmpdir/def.o
Program received signal SIGSEGV, Segmentation fault.
0x00465356 in coff_link_add_symbols (abfd=0x1004b110, info=0x4a8050)
at /usr/local/src/trunk/src/bfd/cofflink.c:455
455 if (! (bfd_coff_link_add_one_symbol
(gdb) bt
#0 0x00465356 in coff_link_add_symbols (abfd=0x1004b110, info=0x4a8050)
at /usr/local/src/trunk/src/bfd/cofflink.c:455
#1 0x004648cc in coff_link_add_object_symbols (abfd=0x1004b110, info=0x4a8050)
at /usr/local/src/trunk/src/bfd/cofflink.c:181
#2 0x00415ffa in load_symbols (entry=0x100440c8, place=0x22ef20)
at /usr/local/src/trunk/src/ld/ldlang.c:1406
#3 0x00416c2f in open_input_bfds (s=0x10043d70, force=0)
at /usr/local/src/trunk/src/ld/ldlang.c:1820
#4 0x0041aa0d in lang_process () at /usr/local/src/trunk/src/ld/ldlang.c:4200
#5 0x0041e555 in main (argc=0, argv=0x10) at /usr/local/src/trunk/src/ld/ldmain.c:476
(gdb) quit
The program is running. Exit anyway? (y or n) y
> FAIL: ld-scripts/defined3
Again, from the log file:
/usr/local/src/trunk/objdir-binutils/ld/../gas/as-new -o tmpdir/dump0.o /usr/local/src/trunk/src/ld/testsuite/ld-scripts/phdrs.s
/usr/local/src/trunk/objdir-binutils/ld/../gas/as-new -o tmpdir/dump1.o /usr/local/src/trunk/src/ld/testsuite/ld-scripts/defined.s
./ld-new -L/usr/local/src/trunk/src/ld/testsuite/ld-scripts -Tdefined3.t -o tmpdir/dump tmpdir/dump0.o tmpdir/dump1.o
failed with: <child killed: segmentation violation>, expected: <>
child killed: segmentation violation
and debugging with gdb:
$ gdb ./ld-new
GNU gdb 2003-09-20-cvs (cygwin-special)
Copyright 2003 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 "i686-pc-cygwin"...
(gdb) set args -L/usr/local/src/trunk/src/ld/testsuite/ld-scripts -Tdefined3.t -o tmpdir/dump tmpdir/dump0.o tmpdir/dump1.o
(gdb) r
Starting program: /usr/local/src/trunk/objdir-binutils/ld/ld-new.exe -L/usr/local/src/trunk/src/ld/testsuite/ld-scripts -Tdefined3.t -o tmpdir/dump tmpdir/dump0.o tmpdir/dump1.o
Program received signal SIGSEGV, Segmentation fault.
0x00465356 in coff_link_add_symbols (abfd=0x10055c80, info=0x4a8050)
at /usr/local/src/trunk/src/bfd/cofflink.c:455
455 if (! (bfd_coff_link_add_one_symbol
(gdb) bt
#0 0x00465356 in coff_link_add_symbols (abfd=0x10055c80, info=0x4a8050)
at /usr/local/src/trunk/src/bfd/cofflink.c:455
#1 0x004648cc in coff_link_add_object_symbols (abfd=0x10055c80, info=0x4a8050)
at /usr/local/src/trunk/src/bfd/cofflink.c:181
#2 0x00415ffa in load_symbols (entry=0x1004b040, place=0x22ef10)
at /usr/local/src/trunk/src/ld/ldlang.c:1406
#3 0x00416c2f in open_input_bfds (s=0x10043d70, force=0)
at /usr/local/src/trunk/src/ld/ldlang.c:1820
#4 0x0041aa0d in lang_process () at /usr/local/src/trunk/src/ld/ldlang.c:4200
#5 0x0041e555 in main (argc=0, argv=0x10) at /usr/local/src/trunk/src/ld/ldmain.c:476
(gdb) quit
The program is running. Exit anyway? (y or n) y
so same problem I guess.
> FAIL: ld-scripts/provide-1
>
> === ld Summary ===
>
> # of expected passes 30
> # of unexpected failures 5
> # of expected failures 3
>
> version: binutils 2.15.91 20040721
> Platform: i686-pc-cygwin
> configure flags: --prefix=/usr/local/gcc-binutils --enable-__cxa_atexit --enable-shared --enable-threads=posix --with-system-zlib --disable-checking --enable-languages=ada,c,c++,f95,java,objc
> Counting all warnings,
> there are 31 warnings in stage0 of this bootstrap.
>
> Number of warnings per file:
> 11 /usr/local/src/trunk/src/binutils/defparse.y
> 3 libiberty/regex.c
> 3 lex.yy.c
> 3 include/getopt.h
> 2 libiberty/getopt.c
> 2 include/fibheap.h
> 2 /usr/local/src/trunk/src/bfd/elf.c
> 1 libtool
> 1 libiberty/strsignal.c
> 1 include/xregex2.h
> 1 /usr/local/src/trunk/src/intl/l10nflist.c
> 1 /usr/local/src/trunk/src/bfd/hash.c
>
> Number of warning types:
> 11 stray \`???' treated as white space
> 3 signed and unsigned type in conditional expression
> 3 function declaration isn't a prototype
> 3 \`???' defined but not used
> 2 unused parameter \`???'
> 2 comparison between signed and unsigned
> 2 bit-field \`???' type invalid in ISO C
> 2 ??? format, ??? arg (arg ???)
> 1 assignment makes pointer from integer without a cast
> 1 \`???' seems to be moved
> 1 ISO C90 does not support \`static' or type qualifiers in parameter array declarators