bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with


From: rmansfield at qnx dot com
Subject: [Bug ld/17110] ld crash in _bfd_elf_find_segment_containing_section with -relax
Date: Thu, 03 Jul 2014 19:38:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=17110

--- Comment #2 from Ryan Mansfield <rmansfield at qnx dot com> ---
./ld/ld-new: warning: cannot find entry symbol _start; defaulting to 00400054
==3204== Invalid read of size 4
==3204==    at 0x8098B6A: sh_elf_relocate_section (elf32-sh.c:3825)
==3204==    by 0x809CEB6: sh_elf_get_relocated_section_contents
(elf32-sh.c:5592)
==3204==    by 0x8074106: bfd_get_relocated_section_contents (bfd.c:1562)
==3204==    by 0x809302B: bfd_simple_get_relocated_section_contents
(simple.c:270)
==3204==    by 0x808CC9F: read_section (dwarf2.c:526)
==3204==    by 0x80920A9: _bfd_dwarf2_slurp_debug_info (dwarf2.c:3549)
==3204==    by 0x809228E: find_line (dwarf2.c:3641)
==3204==    by 0x8092916: _bfd_dwarf2_find_nearest_line (dwarf2.c:3893)
==3204==    by 0x80B4549: _bfd_elf_find_nearest_line_discriminator (elf.c:7692)
==3204==    by 0x80B444F: _bfd_elf_find_nearest_line (elf.c:7661)
==3204==    by 0x8066599: vfinfo (ldmisc.c:312)
==3204==    by 0x8066A1A: einfo (ldmisc.c:464)
==3204==  Address 0x425abfc is 0 bytes after a block of size 44 alloc'd
==3204==    at 0x402A17C: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==3204==    by 0x807B286: bfd_malloc (libbfd.c:181)
==3204==    by 0x8083702: _bfd_generic_link_hash_table_create (linker.c:771)
==3204==    by 0x8092E0D: bfd_simple_get_relocated_section_contents
(simple.c:215)
==3204==    by 0x808CC9F: read_section (dwarf2.c:526)
==3204==    by 0x80920A9: _bfd_dwarf2_slurp_debug_info (dwarf2.c:3549)
==3204==    by 0x809228E: find_line (dwarf2.c:3641)
==3204==    by 0x8092916: _bfd_dwarf2_find_nearest_line (dwarf2.c:3893)
==3204==    by 0x80B4549: _bfd_elf_find_nearest_line_discriminator (elf.c:7692)
==3204==    by 0x80B444F: _bfd_elf_find_nearest_line (elf.c:7661)
==3204==    by 0x8066599: vfinfo (ldmisc.c:312)
==3204==    by 0x8066A1A: einfo (ldmisc.c:464)
==3204== 
==3204== Invalid read of size 4
==3204==    at 0x80ABF13: _bfd_elf_find_segment_containing_section (elf.c:3649)
==3204==    by 0x80985A8: sh_elf_osec_to_segment (elf32-sh.c:3680)
==3204==    by 0x8098C46: sh_elf_relocate_section (elf32-sh.c:3838)
==3204==    by 0x809CEB6: sh_elf_get_relocated_section_contents
(elf32-sh.c:5592)
==3204==    by 0x8074106: bfd_get_relocated_section_contents (bfd.c:1562)
==3204==    by 0x809302B: bfd_simple_get_relocated_section_contents
(simple.c:270)
==3204==    by 0x808CC9F: read_section (dwarf2.c:526)
==3204==    by 0x80920A9: _bfd_dwarf2_slurp_debug_info (dwarf2.c:3549)
==3204==    by 0x809228E: find_line (dwarf2.c:3641)
==3204==    by 0x8092916: _bfd_dwarf2_find_nearest_line (dwarf2.c:3893)
==3204==    by 0x80B4549: _bfd_elf_find_nearest_line_discriminator (elf.c:7692)
==3204==    by 0x80B444F: _bfd_elf_find_nearest_line (elf.c:7661)
==3204==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==3204== 
==3204== 
==3204== Process terminating with default action of signal 11 (SIGSEGV)
==3204==  Access not within mapped region at address 0x0
==3204==    at 0x80ABF13: _bfd_elf_find_segment_containing_section (elf.c:3649)
==3204==    by 0x80985A8: sh_elf_osec_to_segment (elf32-sh.c:3680)
==3204==    by 0x8098C46: sh_elf_relocate_section (elf32-sh.c:3838)
==3204==    by 0x809CEB6: sh_elf_get_relocated_section_contents
(elf32-sh.c:5592)
==3204==    by 0x8074106: bfd_get_relocated_section_contents (bfd.c:1562)
==3204==    by 0x809302B: bfd_simple_get_relocated_section_contents
(simple.c:270)
==3204==    by 0x808CC9F: read_section (dwarf2.c:526)
==3204==    by 0x80920A9: _bfd_dwarf2_slurp_debug_info (dwarf2.c:3549)
==3204==    by 0x809228E: find_line (dwarf2.c:3641)
==3204==    by 0x8092916: _bfd_dwarf2_find_nearest_line (dwarf2.c:3893)
==3204==    by 0x80B4549: _bfd_elf_find_nearest_line_discriminator (elf.c:7692)
==3204==    by 0x80B444F: _bfd_elf_find_nearest_line (elf.c:7661)

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]