Bug 3186

Summary: BeagleBoard: rpm query package failed due to glibc realloc() error
Product: [Yocto Project Subprojects] Kernel Reporter: Chen Qi <Qi.Chen>
Component: linux-yoctoAssignee: Bruce Ashfield <bruce.ashfield>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: dvhart, jessica.zhang, liang.li2, liezhi.yang, mark.hatle, sgw, yi.zhao, yp.kernel.watcher, yp.watcher, zhenfeng.zhao
Version: 1.3   
Target Milestone: 1.3 M5   
Hardware: Beagleboard   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Chen Qi 2012-09-27 03:27:45 UTC
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
Comment 1 Chen Qi 2012-09-27 03:30:13 UTC
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
Comment 2 Robert Yang 2012-09-28 02:25:00 UTC
The current status seems strange, the error occurs randomly, it may appear or not, once added a "strace" before the command, e.g.: "strace -o out.c rpm", 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.
Comment 3 Yi Zhao 2012-09-28 07:20:27 UTC
I used an old kernel (version 3.0.32) from m5 rc1 20120919 build with the new rootfs to test it. This issue didn't happen.
Comment 4 Robert Yang 2012-09-28 08:11:43 UTC
Re-route to the kernel team.
Comment 5 Mark Hatle 2012-10-05 16:43:20 UTC
From the WR kernel team (replying to this bug for Bruce)

> Anyway, here is some good news. I have found the issue and the fix. -stable
> broke it and -stable fixed it :).
> 
> The offending commit is [ARM: 7478/1: errata: extend workaround for erratum
> #720789] which was added to v3.4.9.
> 
> The commit which fixes it is [ARM: 7489/1: errata: fix workaround for erratum
> #720789 on UP systems] which was added to v3.4.11.
> 
> I have tested just adding the fix commit to the tree and it works. So you can
> either go in with a pinpoint fix and use it, or update to base off of v3.4.11.
Comment 6 Darren Hart 2012-10-08 18:02:09 UTC
Fix in master:

commit 292f79af44e2f583702197306c7070d09fcd8114
Author: Bruce Ashfield <bruce.ashfield@windriver.com>
Date:   Sun Oct 7 23:41:31 2012 -0400

    linux-yocto-bsps: update hardware reference BSPs to v3.4.11
Comment 7 Chen Qi 2012-10-12 10:30:17 UTC
Verified.
Git Branch: danny
Git Hash: c9de24d3f4845251b01e2eab0aeeb7472badc5bb