[Bug gold/12745] New: internal error in set_offset when building libstdc++

2011-05-10 Thread jay.foad at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12745

   Summary: internal error in set_offset when building libstdc++
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gold
AssignedTo: i...@airs.com
ReportedBy: jay.f...@gmail.com


Created attachment 5712
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5712
object file

With the attached .o file I get:

$ ~/binutils/local/bin/ld.gold crtendS.o -z relro
/home/jay/binutils/local/bin/ld.gold: internal error in set_offset, at
/home/jay/cvs/src/gold/output.cc:4272

This is with gold built from cvs trunk, updated a few minutes ago.


I originally encountered this problem when building libstdc++ as part of
llvm-gcc-4.2, on Ubuntu 11.04 x86_64 using the installed binutils
(2.21.0.20110327-2ubuntu2) and binutils-gold packages.

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12887] New: ld.bfd crashes when linking crtendS.o

2011-06-14 Thread jay.foad at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12887

   Summary: ld.bfd crashes when linking crtendS.o
   Product: binutils
   Version: 2.22 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
AssignedTo: unassig...@sources.redhat.com
ReportedBy: jay.f...@gmail.com


Created attachment 5793
  --> http://sourceware.org/bugzilla/attachment.cgi?id=5793
object file

With the attached crtendS.o, I get:

$ ld.bfd -o /dev/null crtendS.o
*** glibc detected *** /home/jay/binutils/local/bin/ld.bfd: munmap_chunk():
invalid pointer: 0x00a02a18 ***
=== Backtrace: =
/lib/x86_64-linux-gnu/libc.so.6(+0x76bb6)[0x7fc770a47bb6]
/home/jay/binutils/local/bin/ld.bfd[0x477010]
/home/jay/binutils/local/bin/ld.bfd[0x47321b]
/home/jay/binutils/local/bin/ld.bfd[0x41fd4c]
/home/jay/binutils/local/bin/ld.bfd[0x4134de]
/home/jay/binutils/local/bin/ld.bfd[0x416b4e]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff)[0x7fc7709efeff]
/home/jay/binutils/local/bin/ld.bfd[0x402719]
=== Memory map: 
0040-00571000 r-xp  08:05 2927780   
/home/jay/binutils/local/bin/ld.bfd
00571000-00572000 r--p 0017 08:05 2927780   
/home/jay/binutils/local/bin/ld.bfd
00572000-00576000 rw-p 00171000 08:05 2927780   
/home/jay/binutils/local/bin/ld.bfd
00576000-0057c000 rw-p  00:00 0 
009db000-00a1e000 rw-p  00:00 0  [heap]
7fc7707bb000-7fc7707d r-xp  08:05 7077910   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fc7707d-7fc7709cf000 ---p 00015000 08:05 7077910   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fc7709cf000-7fc7709d r--p 00014000 08:05 7077910   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fc7709d-7fc7709d1000 rw-p 00015000 08:05 7077910   
/lib/x86_64-linux-gnu/libgcc_s.so.1
7fc7709d1000-7fc770b5b000 r-xp  08:05 7080305   
/lib/x86_64-linux-gnu/libc-2.13.so
7fc770b5b000-7fc770d5a000 ---p 0018a000 08:05 7080305   
/lib/x86_64-linux-gnu/libc-2.13.so
7fc770d5a000-7fc770d5e000 r--p 00189000 08:05 7080305   
/lib/x86_64-linux-gnu/libc-2.13.so
7fc770d5e000-7fc770d5f000 rw-p 0018d000 08:05 7080305   
/lib/x86_64-linux-gnu/libc-2.13.so
7fc770d5f000-7fc770d65000 rw-p  00:00 0 
7fc770d65000-7fc770d67000 r-xp  08:05 7080308   
/lib/x86_64-linux-gnu/libdl-2.13.so
7fc770d67000-7fc770f67000 ---p 2000 08:05 7080308   
/lib/x86_64-linux-gnu/libdl-2.13.so
7fc770f67000-7fc770f68000 r--p 2000 08:05 7080308   
/lib/x86_64-linux-gnu/libdl-2.13.so
7fc770f68000-7fc770f69000 rw-p 3000 08:05 7080308   
/lib/x86_64-linux-gnu/libdl-2.13.so
7fc770f69000-7fc770f8 r-xp  08:05 7078215   
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fc770f8-7fc77117f000 ---p 00017000 08:05 7078215   
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fc77117f000-7fc77118 r--p 00016000 08:05 7078215   
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fc77118-7fc771181000 rw-p 00017000 08:05 7078215   
/lib/x86_64-linux-gnu/libz.so.1.2.3.4
7fc771181000-7fc7711a2000 r-xp  08:05 7077917   
/lib/x86_64-linux-gnu/ld-2.13.so
7fc771353000-7fc771377000 rw-p  00:00 0 
7fc77137d000-7fc7713a1000 rw-p  00:00 0 
7fc7713a1000-7fc7713a2000 r--p 0002 08:05 7077917   
/lib/x86_64-linux-gnu/ld-2.13.so
7fc7713a2000-7fc7713a4000 rw-p 00021000 08:05 7077917   
/lib/x86_64-linux-gnu/ld-2.13.so
7fffbef6b000-7fffbef8c000 rw-p  00:00 0 
[stack]
7fffbefff000-7fffbf00 r-xp  00:00 0  [vdso]
ff60-ff601000 r-xp  00:00 0 
[vsyscall]
Aborted

I ran into this when trying to build llvm-gcc from source.

I'm using ld.bfd built from CVS, updated a few minutes ago.

I'm running Ubuntu 11.04 x86_64.

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12887] ld.bfd crashes when linking crtendS.o

2011-06-14 Thread jay.foad at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12887

--- Comment #1 from Jay Foad  2011-06-14 10:20:53 
UTC ---
If I run it under GDB, the backtrace looks like this:

(gdb) bt
#0  abort () at abort.c:54
#1  0x77698d7b in __libc_message (do_abort=2, fmt=0x77781400 "***
glibc detected *** %s: %s: 0x%s ***\n") at
../sysdeps/unix/sysv/linux/libc_fatal.c:189
#2  0x776a2bb6 in malloc_printerr (action=3, str=0x77781598
"munmap_chunk(): invalid pointer", ptr=) at malloc.c:6283
#3  0x00477010 in _bfd_elf_discard_section_eh_frame (abfd=0x5a0f20,
info=0x57ac00, sec=0x5a3a18, reloc_symbol_deleted_p=0x460e80
, 
cookie=0x7fffdee0) at /home/jay/cvs/src/bfd/elf-eh-frame.c:1177
#4  0x0047321b in bfd_elf_discard_info (output_bfd=0x58f550,
info=0x57ac00) at /home/jay/cvs/src/bfd/elflink.c:12399
#5  0x0041fd4c in gldelf_x86_64_after_allocation () at
eelf_x86_64.c:1804
#6  0x004134de in lang_process () at /home/jay/cvs/src/ld/ldlang.c:6665
#7  0x00416b4e in main (argc=4, argv=0x7fffe188) at
/home/jay/cvs/src/ld/ldmain.c:462

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12887] ld.bfd crashes when linking crtendS.o

2011-06-14 Thread jay.foad at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12887

--- Comment #2 from Jay Foad  2011-06-14 10:31:19 
UTC ---
If I run it under valgrind, it complains:

==25074== Invalid free() / delete / delete[]
==25074==at 0x4C282ED: free (vg_replace_malloc.c:366)
==25074==by 0x47700F: _bfd_elf_discard_section_eh_frame
(elf-eh-frame.c:1177)
==25074==by 0x47321A: bfd_elf_discard_info (elflink.c:12399)
==25074==by 0x41FD4B: gldelf_x86_64_after_allocation (eelf_x86_64.c:1804)
==25074==by 0x4134DD: lang_process (ldlang.c:6665)
==25074==by 0x416B4D: main (ldmain.c:462)
==25074==  Address 0x560f538 is 1,864 bytes inside a block of size 4,064
alloc'd
==25074==at 0x4C28FAC: malloc (vg_replace_malloc.c:236)
==25074==by 0x4B7BDC: objalloc_create (objalloc.c:95)
==25074==by 0x43A684: bfd_hash_table_init_n (hash.c:386)
==25074==by 0x4302BF: bfd_preserve_save (bfd.c:1647)
==25074==by 0x450085: bfd_elf64_object_p (elfcode.h:542)
==25074==by 0x43509A: bfd_check_format_matches (format.c:172)
==25074==by 0x41BE7C: ldfile_try_open_bfd (ldfile.c:316)
==25074==by 0x41C50B: ldfile_open_file (ldfile.c:422)
==25074==by 0x40FBD4: load_symbols (ldlang.c:2674)
==25074==by 0x4108FF: open_input_bfds (ldlang.c:3251)
==25074==by 0x412C99: lang_process (ldlang.c:6525)
==25074==by 0x416B4D: main (ldmain.c:462)

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/12887] ld.bfd crashes when linking crtendS.o

2011-06-14 Thread jay.foad at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12887

--- Comment #6 from Jay Foad  2011-06-14 13:13:23 
UTC ---
Thanks!

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gold/12745] internal error in set_offset when building libstdc++

2011-06-20 Thread jay.foad at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=12745

--- Comment #3 from Jay Foad  2011-06-20 08:29:08 
UTC ---
Thanks for the diagnosis and for the fix!

-- 
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
https://lists.gnu.org/mailman/listinfo/bug-binutils