Bug 8973

Summary: glibc-locale_2.22 do_package: memory clobbered past end of allocated block
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Randy Witt <randy.e.witt>
Component: coreAssignee: Mariano Lopez <mariano.lopez>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium+ CC: benjamin.esquivel, leonardo.sandoval.gonzalez, mariano.lopez, meta.mr.watcher, meta.watcher
Version: 2.0   
Target Milestone: 2.1 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
build log
none
CreateAutoConf log none

Description Randy Witt 2016-01-21 19:11:09 UTC
Created attachment 2942 [details]
build log

Using revision f6669f148ba027343bae53248bd4a2ee763c0269, do_package failed for glibc-locale with "memory clobbered past end of allocated block". This most likely points to a buffer overflow in the previous block and the accounting is now corrupted.

The build log and createautoconf log are attached.

| PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/bitbake/bin:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pokybuild/.local/bin:/home/pokybuild/bin" I18NPATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/share/i18n" GCONV_PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/iconvdata" cross-localedef  --uint32-align=4 --little-endian  --force --old-style --no-archive --prefix=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree                 --inputfile=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree//usr/share/i18n/locales/bs_BA --charmap=ISO-8859-2 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/lib/locale/bs_BA.ISO-8859-2
| memory clobbered past end of allocated block
| PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/bitbake/bin:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pokybuild/.local/bin:/home/pokybuild/bin" I18NPATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/share/i18n" GCONV_PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/iconvdata" cross-localedef  --uint32-align=4 --little-endian  --force --old-style --no-archive --prefix=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree                 --inputfile=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree//usr/share/i18n/locales/es_ES@euro --charmap=ISO-8859-15 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/lib/locale/es_ES@euro.ISO-8859-15
| PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/bin/x86_64-poky-linux:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/qemux86-64/usr/bin/crossscripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/usr/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/sbin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/sysroots/x86_64-linux/bin:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/scripts:/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/bitbake/bin:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/home/pokybuild/yocto-autobuilder/bin:/home/pokybuild/yocto-autobuilder/yocto-autobuilder/scripts:/opt/poky/1.8+snapshot/sysroots/x86_64-pokysdk-linux/usr/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin:/home/pokybuild/.local/bin:/home/pokybuild/bin" I18NPATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/share/i18n" GCONV_PATH="/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/iconvdata" cross-localedef  --uint32-align=4 --little-endian  --force --old-style --no-archive --prefix=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree                 --inputfile=/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree//usr/share/i18n/locales/it_IT --charmap=ISO-8859-1 /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/lib/locale/it_IT.ISO-8859-1
| Makefile:355: recipe for target '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/lib/locale/zh_CN' failed
| make: *** [/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree/usr/lib/locale/zh_CN] Aborted (core dumped)
| make: *** Waiting for unfinished jobs....
| make: Leaving directory '/home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/locale-tree'
| WARNING: /home/pokybuild/yocto-autobuilder/yocto-worker/nightly-qa-pam/build/build/tmp/work/core2-64-poky-linux/glibc-locale/2.22-r0/temp/run.oe_runmake.17669:1 exit 1 from
|   exit 1
| ERROR: oe_runmake failed
Comment 1 Randy Witt 2016-01-21 19:11:56 UTC
Created attachment 2943 [details]
CreateAutoConf log
Comment 2 Mariano Lopez 2016-03-02 17:40:51 UTC
Trying to reproduce this using master branch that is using glibc-2.23
Comment 3 Mariano Lopez 2016-03-02 20:11:37 UTC
Error Report Web shows 4 errors for "memory clobbered". All of them are for glibc-locale. The versions are for 2.20, 2.21 and 2.22, and all of them have been in CentOS. Here is the link with more information:

http://errors.yoctoproject.org/Errors/Search/?query=memory+clobbered
Comment 4 Mariano Lopez 2016-03-08 22:14:11 UTC
I have tried to reproduce this error in Ubuntu, OpenSuse, CentOS over 1000 times in every distro without success.
Comment 5 Mariano Lopez 2016-03-08 22:17:45 UTC
This is a very sporadic bug. Closing and if the error happens again it will be reopened.
Comment 6 Benjamin Esquivel 2016-03-08 23:37:07 UTC
what is the frequency of reproduction in the reporter's setup?
Comment 7 Mariano Lopez 2016-03-09 14:17:28 UTC
The reporter is the YP autobuilders, and there have been just 4 errors in the last year.