[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/11817] Linker crash due to compressed debug section change
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug ld/11817] Linker crash due to compressed debug section change |
Date: |
14 Jul 2010 01:00:34 -0000 |
------- Additional Comments From hjl dot tools at gmail dot com 2010-07-14
01:00 -------
It is caused by compressed debug section change:
http://sourceware.org/ml/binutils/2010-07/msg00030.html
When linker report error, read_and_uncompress_section
changed the size of .debug_str:
(gdb) c
Continuing.
Hardware watchpoint 9: *(int *) 0x7bc2e8
Old value = 137
New value = 149
read_and_uncompress_section (abfd=0x7b9350, msec=0x7bc2b0,
section_is_compressed=0, syms=0x7c6948, section_buffer=0x7c6a78,
section_size=0x7c6a80) at /export/gnu/import/git/binutils/bfd/dwarf2.c:448
448 = bfd_simple_get_relocated_section_contents (abfd, msec,
NULL, syms);
(gdb) bt
#0 read_and_uncompress_section (abfd=0x7b9350, msec=0x7bc2b0,
section_is_compressed=0, syms=0x7c6948, section_buffer=0x7c6a78,
section_size=0x7c6a80) at /export/gnu/import/git/binutils/bfd/dwarf2.c:448
#1 0x000000000044fd61 in read_section (abfd=0x7b9350,
section_name=0x55ee1e ".debug_str",
compressed_section_name=0x55ee12 ".zdebug_str", syms=0x7c6948, offset=28,
section_buffer=0x7c6a78, section_size=0x7c6a80)
at /export/gnu/import/git/binutils/bfd/dwarf2.c:492
#2 0x000000000044ffb3 in read_indirect_string (unit=0x7c6d48,
buf=0x7dc0fc "\034", bytes_read_ptr=0x7fffffffcfc4)
at /export/gnu/import/git/binutils/bfd/dwarf2.c:590
#3 0x0000000000450881 in read_attribute_value (attr=0x7fffffffd060, form=14,
unit=0x7c6d48, info_ptr=0x7dc0fc "\034")
at /export/gnu/import/git/binutils/bfd/dwarf2.c:850
#4 0x0000000000450c25 in read_attribute (attr=0x7fffffffd060, abbrev=0x7dc1c0,
unit=0x7c6d48, info_ptr=0x7dc0fc "\034")
at /export/gnu/import/git/binutils/bfd/dwarf2.c:942
#5 0x0000000000453e1e in parse_comp_unit (stash=0x7c6a10, unit_length=110,
info_ptr_unit=0x7dc0f0 "n", offset_size=4)
at /export/gnu/import/git/binutils/bfd/dwarf2.c:2391
#6 0x0000000000455a46 in find_line (abfd=0x7b9350, section=0x7bb848, offset=1,
symbol=0x0, symbols=0x7c6948, filename_ptr=0x7fffffffd3a0,
functionname_ptr=0x7fffffffd398, linenumber_ptr=0x7fffffffd394,
---Type <return> to continue, or q <return> to quit---
addr_size=4, pinfo=0x7b98a0)
at /export/gnu/import/git/binutils/bfd/dwarf2.c:3414
#7 0x0000000000455d1d in _bfd_dwarf2_find_nearest_line (abfd=0x7b9350,
section=0x7bb848, symbols=0x7c6948, offset=1, filename_ptr=0x7fffffffd3a0,
functionname_ptr=0x7fffffffd398, linenumber_ptr=0x7fffffffd394,
addr_size=0, pinfo=0x7b98a0)
at /export/gnu/import/git/binutils/bfd/dwarf2.c:3485
#8 0x0000000000476241 in _bfd_elf_find_nearest_line (abfd=0x7b9350,
section=0x7bb848, symbols=0x7c6948, offset=1, filename_ptr=0x7fffffffd3a0,
functionname_ptr=0x7fffffffd398, line_ptr=0x7fffffffd394)
at /export/gnu/import/git/binutils/bfd/elf.c:7259
#9 0x00000000004207f7 in vfinfo (fp=0x319578a860,
fmt=0x509adc ": undefined reference to `%T'\n", arg=0x7fffffffd480,
is_warning=1) at /export/gnu/import/git/binutils/ld/ldmisc.c:300
#10 0x0000000000420fb5 in einfo (
fmt=0x509ad8 "%X%C: undefined reference to `%T'\n")
at /export/gnu/import/git/binutils/ld/ldmisc.c:438
#11 0x000000000041ba16 in undefined_symbol (info=0x794d40, name=0x7c615b "bar",
abfd=0x7b9350, section=0x7bb848, address=1, error=1)
at /export/gnu/import/git/binutils/ld/ldmain.c:1231
#12 0x000000000045b8f6 in elf64_x86_64_relocate_section (output_bfd=0x7a79b0,
info=0x794d40, input_bfd=0x7b9350, input_section=0x7bb848,
contents=0x7b6c40 <incomplete sequence \351>, relocs=0x7c6160,
---Type <return> to continue, or q <return> to quit---
local_syms=0x7b34e0, local_sections=0x7dbf80)
at /export/gnu/import/git/binutils/bfd/elf64-x86-64.c:2725
#13 0x000000000048fa8d in elf_link_input_bfd (finfo=0x7fffffffdba0,
input_bfd=0x7b9350) at /export/gnu/import/git/binutils/bfd/elflink.c:9536
#14 0x0000000000492773 in bfd_elf_final_link (abfd=0x7a79b0, info=0x794d40)
at /export/gnu/import/git/binutils/bfd/elflink.c:10673
#15 0x000000000041cdcf in ldwrite ()
at /export/gnu/import/git/binutils/ld/ldwrite.c:568
#16 0x000000000041a23d in main (argc=7, argv=0x7fffffffdfd8)
at /export/gnu/import/git/binutils/ld/ldmain.c:466
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |ccoutant at google dot com
Summary|Linker crash |Linker crash due to
| |compressed debug section
| |change
http://sourceware.org/bugzilla/show_bug.cgi?id=11817
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
- [Bug ld/11817] New: Linker crash, hjl dot tools at gmail dot com, 2010/07/13
- [Bug ld/11817] Linker crash due to compressed debug section change,
hjl dot tools at gmail dot com <=
- [Bug ld/11817] Linker crash due to compressed debug section change, hjl dot tools at gmail dot com, 2010/07/13
- [Bug ld/11817] Linker crash due to compressed debug section change, hjl dot tools at gmail dot com, 2010/07/13
- [Bug ld/11817] Linker crash due to compressed debug section change, hjl dot tools at gmail dot com, 2010/07/14
- [Bug ld/11817] Linker crash due to compressed debug section change, ccoutant at google dot com, 2010/07/14
- [Bug ld/11817] Linker crash due to compressed debug section change, hjl dot tools at gmail dot com, 2010/07/14
- [Bug ld/11817] Linker crash due to compressed debug section change, ccoutant at google dot com, 2010/07/14