This service will be undergoing maintenance at 20:00 UTC, 2017-04-03. It is expected to last about 30 minutes
Bug 60369 - ld crashes with SIGSEGV
ld crashes with SIGSEGV
Product: Red Hat Linux
Classification: Retired
Component: binutils (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jakub Jelinek
Depends On:
  Show dependency treegraph
Reported: 2002-02-26 15:50 EST by danf
Modified: 2008-05-01 11:38 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2002-03-04 18:10:45 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Archive of files to reproduce ld bug (49.25 KB, application/octet-stream)
2002-02-26 15:51 EST, danf
no flags Details

  None (edit)
Description danf 2002-02-26 15:50:07 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20010901

Description of problem:
ld crashes with SIGSEGV when linking eCos test programs. This happens with
gcc-2.96-98.i386.rpm using binutils- as well as
binutils- (from PowerTools).

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.Unpack ld-bug.tar.bz2

Actual Results:  
GNU ld version (with BFD
Segmentation fault

Expected Results:  no segfault

Additional info:

Here is some relevant gdb output using a ld compiled with debugging from

Program received signal SIGSEGV, Segmentation fault.
0x080b95f1 in merge_strings (sinfo=0x812b614) at merge.c:731
731       secinfo = sinfo->htab->first->secinfo;
(gdb) bt
#0  0x080b95f1 in merge_strings (sinfo=0x812b614) at merge.c:731
#1  0x080b981b in _bfd_merge_sections (abfd=0x8109b20, xsinfo=0x812b614,
    remove_hook=0x808a020 <merge_sections_remove_hook>) at merge.c:808
#2  0x0808a0a1 in _bfd_elf_merge_sections (abfd=0x8109b20, info=0x8102880)
    at elf.c:796
#3  0x08055a8b in lang_process () at ldlang.c:4169
#4  0x08058a15 in main (argc=13, argv=0xbffffb44) at ./ldmain.c:422
#5  0x40049507 in __libc_start_main (main=0x8058298 <main>, argc=13,
    ubp_av=0xbffffb44, init=0x80491f4 <_init>, fini=0x80cb880 <_fini>,
    rtld_fini=0x4000dc14 <_dl_fini>, stack_end=0xbffffb3c)
    at ../sysdeps/generic/libc-start.c:129
(gdb) print *sinfo->htab
$1 = {table = {table = 0x812cac0, size = 4051,
    newfunc = 0x80b8544 <sec_merge_hash_newfunc>, memory = 0x8118cd8},
  size = 0, first = 0x0, last = 0x0, entsize = 1, strings = 1073741824}
Comment 1 danf 2002-02-26 15:51:45 EST
Created attachment 46720 [details]
Archive of files to reproduce ld bug
Comment 2 Jakub Jelinek 2002-03-04 10:22:40 EST
Should be fixed with
Comment 3 danf 2002-03-04 18:10:40 EST
Verified that the proposed fix stops the seg fault when applied to 
Comment 4 Jakub Jelinek 2002-03-07 05:46:40 EST
Should be fixed in binutils- then.

Note You need to log in before you can comment on or make changes to this bug.