On Fri, Aug 10, 2018 at 11:01 AM, Alexander Kanavin <alex.kana...@gmail.com> wrote: > 2018-08-10 16:50 GMT+02:00 Marc Ferland <marc.ferl...@gmail.com>: >> | Processing files: pylon-5.0.12-r0.aarch64 >> | *** buffer overflow detected ***: >> /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/rpmbuild >> terminated >> | Aborted (core dumped) > > This is not a yocto issue, but a rpm issue. You need to deal with it > the hard way I'm afraid: inspect the core dump with gdb, and take the > result to rpm upstream. >
Looking at the backtrace of rpmbuild in gdb I see that libmagic is the culprit: *** buffer overflow detected ***: /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/rpmbuild terminated Program received signal SIGABRT, Aborted. 0x00007ffff6f6f66a in raise () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 (gdb) bt #0 0x00007ffff6f6f66a in raise () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 #1 0x00007ffff6f70741 in abort () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 #2 0x00007ffff6fb0a07 in ?? () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 #3 0x00007ffff703dcde in ?? () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 #4 0x00007ffff703dd11 in __fortify_fail () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 #5 0x00007ffff703bdc0 in __chk_fail () from /home/vagrant/build/tmp/sysroots-uninative/x86_64-linux/lib/libc.so.6 #6 0x00007ffff6d1e0b1 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/./libmagic.so.1 #7 0x00007ffff6d1f105 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/./libmagic.so.1 #8 0x00007ffff6d2a888 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/./libmagic.so.1 #9 0x00007ffff6d2c782 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/./libmagic.so.1 #10 0x00007ffff6d1fc43 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/./libmagic.so.1 #11 0x00007ffff7bca16d in rpmfcClassify () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/librpmbuild.so.7 #12 0x00007ffff7bcab26 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/librpmbuild.so.7 #13 0x00007ffff7bbc671 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/librpmbuild.so.7 #14 0x00007ffff7bb8113 in ?? () from /home/vagrant/build/tmp/work/aarch64-poky-linux/pylon/5.0.12-r0/recipe-sysroot-native/usr/bin/../lib/librpmbuild.so.7 #15 0x0000555555557abf in ?? () #16 0x0000555555557c5b in ?? () I did a quick test and bumped the file recipe (was 5.31 on rocko branch) to 5.34 and the problem went away, no more buffer overflows and now my recipe builds correctly. Marc -- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto