<?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>3186</bug_id>
          
          <creation_ts>2012-09-27 03:27:45 +0000</creation_ts>
          <short_desc>BeagleBoard: rpm query package failed due to glibc realloc() error</short_desc>
          <delta_ts>2012-10-12 10:30:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>linux-yocto</component>
          <version>1.3</version>
          <rep_platform>Beagleboard</rep_platform>
          <op_sys>arm</op_sys>
          <bug_status>VERIFIED</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 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>liang.li2</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.kernel.watcher</cc>
    
    <cc>yp.watcher</cc>
    
    <cc>zhenfeng.zhao</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>25825</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-27 03:27:45 +0000</bug_when>
    <thetext>image: http://autobuilder.yoctoproject.org/pub/nightly/20120926-1/machines/beagleboard/
git branch: poky/1.3_M5
git hash: 718eb85806e080d0b165344b272e531ef19421eb

details:
root@beagleboard:~# rpm -qa
*** glibc detected *** rpm: realloc(): invalid pointer: 0xb6f40008 ***
Aborted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25826</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-09-27 03:30:13 +0000</bug_when>
    <thetext>All rpm commands failed due to the same error.

root@beagleboard:~# rpm -e avahi
*** glibc detected *** rpm: realloc(): invalid pointer: 0xb6fcb008 ***
Aborted
root@beagleboard:~# rpm
*** glibc detected *** rpm: realloc(): invalid pointer: 0xb6f82008 ***
Aborted</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25880</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-09-28 02:25:00 +0000</bug_when>
    <thetext>The current status seems strange, the error occurs randomly, it may appear or not, once added a &quot;strace&quot; before the command, e.g.: &quot;strace -o out.c rpm&quot;, it worked well, I suspect something is wrong with the image when downloading or copying, so try to get the image again and test it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25884</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-09-28 07:20:27 +0000</bug_when>
    <thetext>I used an old kernel (version 3.0.32) from m5 rc1 20120919 build with the new rootfs to test it. This issue didn&apos;t happen.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25891</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-09-28 08:11:43 +0000</bug_when>
    <thetext>Re-route to the kernel team.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26293</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-10-05 16:43:20 +0000</bug_when>
    <thetext>From the WR kernel team (replying to this bug for Bruce)

&gt; Anyway, here is some good news. I have found the issue and the fix. -stable
&gt; broke it and -stable fixed it :).
&gt; 
&gt; The offending commit is [ARM: 7478/1: errata: extend workaround for erratum
&gt; #720789] which was added to v3.4.9.
&gt; 
&gt; The commit which fixes it is [ARM: 7489/1: errata: fix workaround for erratum
&gt; #720789 on UP systems] which was added to v3.4.11.
&gt; 
&gt; I have tested just adding the fix commit to the tree and it works. So you can
&gt; either go in with a pinpoint fix and use it, or update to base off of v3.4.11.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26356</commentid>
    <comment_count>6</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-10-08 18:02:09 +0000</bug_when>
    <thetext>Fix in master:

commit 292f79af44e2f583702197306c7070d09fcd8114
Author: Bruce Ashfield &lt;bruce.ashfield@windriver.com&gt;
Date:   Sun Oct 7 23:41:31 2012 -0400

    linux-yocto-bsps: update hardware reference BSPs to v3.4.11</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26546</commentid>
    <comment_count>7</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2012-10-12 10:30:17 +0000</bug_when>
    <thetext>Verified.
Git Branch: danny
Git Hash: c9de24d3f4845251b01e2eab0aeeb7472badc5bb</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>