Re: Can't build libjava in gcc cvs trunk 20050227 on sparc-linux: ar cq libgcj0_convenience.a ... Bus error: in bfd_hash_lookup () from /usr/lib/libbfd-2.15.92.0.2.so

Christian Joensson <[email protected]> Tue, 1 Mar 2005 00:27:26 +0100
Newsgroups gmane.linux.aurora.devel,gmane.comp.gnu.binutils
Message-ID <[email protected]>
On Tue, 1 Mar 2005 09:11:41 +1030, Alan Modra <[email protected]> wrote:
> On Mon, Feb 28, 2005 at 02:37:14PM +0100, Christian Joensson wrote:
> > Program received signal SIGBUS, Bus error.
> > bfd_hash_lookup (table=0x611e1c, string=0x33117f1 ".debug_abbrev", create=1,
> >     copy=0) at /usr/local/src/trunk/src/bfd/hash.c:394
> 
> Please compile binutils with CFLAGS="-g -O" and see if you can figure
> out why bfd_hash_lookup is dying.

well, did that, beu need help figuring... #gcc at otfc?? anyway,
here's the relevant debug at least (LAST_UPDATED: Mon Feb 28 22:52:16
UTC 2005)

-- 
Cheers,

/ChJ

_______________________________________________
Aurora-sparc-devel mailing list
[email protected]
http://lists.auroralinux.org/mailman/listinfo/aurora-sparc-devel
Aurora FAQ: http://www.ecs.soton.ac.uk/~mas01r/aurorafaq.html
gdb-ar-trunk-new.log (application/octet-stream, 2.6 KB)
Current directory is /usr/local/binutils/bin/
GNU gdb Red Hat Linux (6.3.0.0-0.29rh)
Copyright 2004 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 "sparc-redhat-linux"...Using host libthread_db library "/lib/libthread_db.so.1".

(gdb) cd /usr/local/src/trunk/objdir32/sparc-linux/libjava 
Working directory /usr/local/src/trunk/objdir32/sparc-linux/libjava.
(gdb) set args cq .libs/libgcj0_convenience.a <deleted stuff here>
(gdb) r
Starting program: /usr/local/binutils/bin/ar cq .libs/libgcj0_convenience.a <deleted stuff here>
warning: linux_test_for_tracefork: unexpected result from waitpid (21262, status 0xb7f)

Program received signal SIGBUS, Bus error.
bfd_hash_lookup (table=0x4679cc, string=0x467efc ".bss", create=1, copy=0)
    at /usr/local/src/trunk/src/bfd/hash.c:394
(gdb) bt
#0  bfd_hash_lookup (table=0x4679cc, string=0x467efc ".bss", create=1, copy=0)
    at /usr/local/src/trunk/src/bfd/hash.c:394
#1  0x700519ac in bfd_make_section_anyway (abfd=0x467970, 
    name=0x467efc ".bss") at /usr/local/src/trunk/src/bfd/section.c:961
#2  0x7006c3b0 in _bfd_elf_make_section_from_shdr (abfd=0x467970, 
    hdr=0x2a781a0, name=0x467efc ".bss")
    at /usr/local/src/trunk/src/bfd/elf.c:689
#3  0x7006e9a8 in bfd_section_from_shdr (abfd=0x467970, shindex=4)
    at /usr/local/src/trunk/src/bfd/elf.c:1731
#4  0x7006948c in bfd_elf32_object_p (abfd=0x467970)
    at /usr/local/src/trunk/src/bfd/elfcode.h:723
#5  0x7004d7c4 in bfd_check_format_matches (abfd=0x467970, format=1879864048, 
    matching=0x0) at /usr/local/src/trunk/src/bfd/format.c:228
#6  0x7004d578 in bfd_check_format (abfd=0x467970, format=bfd_object)
    at /usr/local/src/trunk/src/bfd/format.c:91
#7  0x70046620 in _bfd_compute_and_write_armap (arch=0x1609568, elength=35656)
    at /usr/local/src/trunk/src/bfd/archive.c:1780
#8  0x70046174 in _bfd_write_archive_contents (arch=0x1609568)
    at /usr/local/src/trunk/src/bfd/archive.c:1652
#9  0x7004f180 in bfd_close (abfd=0x1609568)
    at /usr/local/src/trunk/src/bfd/opncls.c:589
#10 0x000144fc in write_archive (iarch=0x2c980)
    at /usr/local/src/trunk/src/binutils/ar.c:950
#11 0x00014a00 in replace_members (arch=0x2c980, files_to_move=0xefffd51c, 
    quick=1) at /usr/local/src/trunk/src/binutils/ar.c:1189
#12 0x00013e94 in main (argc=255, argv=0xefffd120)
    at /usr/local/src/trunk/src/binutils/ar.c:660
(gdb)