Bug 727453

Summary: segfault on linking
Product: [Fedora] Fedora Reporter: David Tardon <dtardon>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jakub, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: binutils-2.21.53.0.1-3.fc17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-09 11:17:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
reproducer
none
fix for this
none
updated env. file none

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!