<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>937</bug_id>
          
          <creation_ts>2011-03-29 05:19:05 +0000</creation_ts>
          <short_desc>Adding -feliminate-dwarf2-dups to compiler flags for libnfsidmap causes prelink to segfault</short_desc>
          <delta_ts>2012-08-24 21:39:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Cross-prelink</product>
          <component>cross-prelink</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Mark Hatle">mark.hatle</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>sgw</cc>
    
    <cc>yp.cp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>13022</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-03-29 05:19:05 +0000</bug_when>
    <thetext>Adding -feliminate-dwarf2-dups to FULL_OPTIMIZATION which are the flags passed to the compiler and rebuilding libnfsidmap results in a segfault at rootfs construction time of poky-image-sato on qemux86:

 Size before prelinking 323300.
| /media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/sbin/prelink: /usr/lib/libnfsidmap.so.0.3.0: Symbol section index outside of section numbers
| /media/build2/builds/rptest/b2/tmp/work/qemux86-poky-linux/poky-image-sato-1.0-r0/temp/run.do_rootfs.17151: line 138: 23698 Segmentation fault      (core dumped) /media/build2/builds/rptest/b2/tmp/sysroots/x86_64-linux/usr/sbin/prelink --root /media/build2/builds/rptest/b2/tmp/work/qemux86-poky-linux/poky-image-sato-1.0-r0/rootfs -amR

This isn&apos;t the only binary affected, its just an easy to reproduce test case. It appears prelink has some problem with the -feliminate-dwarf2-dups optimisation flag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13026</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-03-29 06:28:28 +0000</bug_when>
    <thetext>In master we&apos;ve dropped the problematic compiler flag for now but we should still figure out this problem...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17926</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-01-03 10:25:49 +0000</bug_when>
    <thetext>Update.  I&apos;ve not yet reproduced this.  However, since the issue was filed a number of fixes for dwarf2 issues have gone into the prelinker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17976</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-01-05 12:32:29 +0000</bug_when>
    <thetext>current testing on head of poky indicates an internal compiler error:

/home/mhatle/git/oss/poky/build-test/tmp/work/x86_64-poky-linux/gcc-runtime-4.6.2+svnr181430-r20/gcc-4_6-branch/build.x86_64-poky-linux.x86_64-poky-linux/libstdc++-v3/include/bits/unordered_set.h:398:1: internal compiler error: in build_abbrev_table, at dwarf2out.c:10534

Unable to reproduce this issue due to the ICE...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17978</commentid>
    <comment_count>4</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-01-05 13:09:21 +0000</bug_when>
    <thetext>-feliminate-dwarf2-dups is &quot;iffy&quot; with the current version of gcc.  It is likely addressed in gcc 4.7.  We need to wait until that has been released/update before work can result on this item.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21191</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-05-08 15:40:07 +0000</bug_when>
    <thetext>Uprev to gcc 4.7 is a prerequisite to this item.

It is expected most of the work is simply validation and that 4.7 will correct the issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24469</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-08-24 21:39:45 +0000</bug_when>
    <thetext>It is believed now that we have the new gcc this is fixed, it should be retested.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>