Bug 727453 - segfault on linking
Summary: segfault on linking
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: binutils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nick Clifton
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-02 08:07 UTC by David Tardon
Modified: 2011-08-09 11:17 UTC (History)
2 users (show)

Fixed In Version: binutils-2.21.53.0.1-3.fc17
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-09 11:17:44 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
reproducer (816.21 KB, application/x-bzip2)
2011-08-02 08:07 UTC, David Tardon
no flags Details
fix for this (34.79 KB, patch)
2011-08-02 08:10 UTC, David Tardon
no flags Details | Diff
updated env. file (18.25 KB, application/x-shellscript)
2011-08-02 16:39 UTC, David Tardon
no flags Details

Description David Tardon 2011-08-02 08:07:01 UTC
Created attachment 516273 [details]
reproducer

Description of problem:
see steps to reproduce

Version-Release number of selected component (if applicable):
binutils-2.21.53.0.1-2.fc17.x86_64
gcc-c++-4.6.1-3.fc16.x86_64

How reproducible:
always

Steps to Reproduce:
1. unpack the attached ld-crash.tar.bz2
2. cd ld-crash
3. . Env.Set.sh
4. cd xml2cmp
5. build --all -- verbose=t
  
Additional info:
AFAICS it is caused by binutils having older libiberty than gcc. The attached patch fixes the problem for me.

Comment 1 David Tardon 2011-08-02 08:10:48 UTC
Created attachment 516274 [details]
fix for this

Comment 2 Nick Clifton 2011-08-02 13:57:46 UTC
Hi David,

  Your test case fails to run for me:

% build --all --verbose=t
Can't open perl script "/home/dtardon/work/upstream/libreoffice/build/devel/solenv/bin/build.pl": No such file or directory


  I have no objection to applying the patch however, so please try out binutils-2.21.53.0.1-3.fc17.

Cheers
  Nick

Comment 3 David Tardon 2011-08-02 16:39:31 UTC
Created attachment 516368 [details]
updated env. file

Eh, sorry, I forgot there are hardcoded paths in the env. file. Just replace Env.Host.sh by the attached one and change SRC_ROOT to absolute path to the unpacked dir.

Comment 4 David Tardon 2011-08-03 04:21:58 UTC
Yup, 2.21.53.0.1-3.fc17 works fine. Thanks!


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