http://sourceware.org/bugzilla/show_bug.cgi?id=12513
Summary: bfd_getb32 in libbfd.c:609, crash in ranlib and nm
Product: binutils
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: unassig...@sources.redhat.com
ReportedBy: dilyan.palau...@aegee.org
I compiled binutils with
export lv_cv_sys_lib_search_path_spec="/lib64 /usr/lib64"
export lv_cv_sys_lib_dlsearch_path_spec="/lib64 /usr/lib64"
export LDFLAGS="-L/usr/lib64 -L/lib64"
./configure --enable-gold=yes --enable-ld=yes --disable-lto --enable-objc-gc
--enable-plugins --enable-64-bit-bfd --enable-targets=all
--enable-leading-mingw64-underscores --enable-elf-stt-common --with-zlib
--enable-install-libbfd --enable-threads
on x86_64 machine. Now I want to compile gcc451 with
../gcc-4.5.2/configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
--enable-threads=posix --enable-languages=all --enable-targets=all
--with-system-zlib
when it comes to building libgcj.a ranlib crashes. The created core file
contains:
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `ranlib .libs/libgcj.a'.
Program terminated with signal 11, Segmentation fault.
#0 bfd_getb32 (p=0x7fc78b92507e) at libbfd.c:609
609 v = (unsigned long) addr[0] << 24;
(gdb) bt
#0 bfd_getb32 (p=0x7fc78b92507e) at libbfd.c:609
#1 0x00409b31 in bfd_slurp_bsd_armap_f2 (abfd=0x2036060)
at archive.c:1184
#2 0x004093aa in bfd_generic_archive_p (abfd=0x2036060)
at archive.c:778
#3 0x004118a6 in bfd_check_format_matches (abfd=0x2036060,
format=, matching=0x7fff767fc1e8) at format.c:211
#4 0x00403acb in open_inarch (
archive_filename=0x7fff767fdd2b ".libs/libgcj.a",
file=) at ar.c:784
#5 0x00403be2 in ranlib_only (
archname=0x7fff767fdd2b ".libs/libgcj.a") at ar.c:1252
#6 0x00403e40 in main (argc=2, argv=0x7fff767fc368) at ar.c:448
(gdb)
# ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 16060
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size(512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 16060
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
# dmesg | tail
[453536.833708] ranlib[1544]: segfault at 7fc78b92507e ip 004121b0 sp
7fff767fc058 error 4 in ranlib[40+4e4000]
Bow, if I take libgcj.a from a previous compiled gcc451 and do
nm libgcj.a
it crashes again and the core file says:
#0 bfd_getb32 (p=0x7f2f738d207e) at libbfd.c:609
609 v = (unsigned long) addr[0] << 24;
(gdb) bt
#0 bfd_getb32 (p=0x7f2f738d207e) at libbfd.c:609
#1 0x004072a1 in bfd_slurp_bsd_armap_f2 (abfd=0x1212060)
at archive.c:1184
#2 0x00406b1a in bfd_generic_archive_p (abfd=0x1212060)
at archive.c:778
#3 0x0040e796 in bfd_check_format_matches (abfd=0x1212060,
format=, matching=0x0) at format.c:211
#4 0x00403ea0 in display_file (filename=0x7fffc93a01e1 "libgcj.a")
at nm.c:1202
#5 0x00404b4b in main (argc=2, argv=0x7fffc939eea8) at nm.c:1671
so it comes again to libbfd.c:609.
Any ideas what could be wrong?
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils