[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Changed in: ubuntu-z-systems Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: Fix Released Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: Fix Released Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
This bug was fixed in the package elfutils - 0.181-1ubuntu0.1 --- elfutils (0.181-1ubuntu0.1) groovy; urgency=medium * debian/patches/elfutils-lp1908756-groovy.patch: IBM Z: Fix endianess problem in pid_memory_read backport from elfutils 0.182+ - libdwfl/linux-pid-attach.c: shift the upper 4 bytes + down on big endian 64 bit targets - libdwfl/ChangeLog: updated the projects ChangeLog, too Thanks to Andreas Krebbel (LP: #1908756) -- Frank Heimes Fri, 08 Jan 2021 09:49:33 +0100 ** Changed in: elfutils (Ubuntu Groovy) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: Fix Released Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: Fix Released Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Tags removed: verification-needed verification-needed-groovy ** Tags added: verification-done verification-done-groovy ** Changed in: ubuntu-z-systems Status: In Progress => Fix Committed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: Fix Committed Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: Fix Committed Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
Hello bugproxy, or anyone else affected, Accepted elfutils into groovy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/elfutils/0.181-1ubuntu0.1 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed- groovy to verification-done-groovy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification- failed-groovy. In either case, without details of your testing we will not be able to proceed. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping! N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days. ** Changed in: elfutils (Ubuntu Groovy) Status: In Progress => Fix Committed ** Tags added: verification-needed verification-needed-groovy -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: Fix Committed Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Merge proposal linked: https://code.launchpad.net/~fheimes/ubuntu/+source/elfutils/+git/elfutils/+merge/395986 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: In Progress Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Merge proposal linked: https://code.launchpad.net/~fheimes/ubuntu/+source/elfutils/+git/elfutils/+merge/395949 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: In Progress Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Changed in: elfutils (Ubuntu Groovy) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: In Progress Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
MP for groovy is open ** Merge proposal linked: https://code.launchpad.net/~fheimes/ubuntu/+source/elfutils/+git/elfutils/+merge/395917 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: In Progress Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
A PPA was created and shared that contains a patched elfutils version for groovy: Look for elfutils - 0.181-1ubuntu1~ppa1 at https://launchpad.net/~fheimes/+archive/ubuntu/lp1908756/+packages -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: New Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
This bug was fixed in the package elfutils - 0.182-2 --- elfutils (0.182-2) unstable; urgency=medium * Fix FTCBFS: perform bootstrap build with dummy libdebuginfod and without debuginfod (Helmut Grohne). Closes: #973981. * Fix build profile pkg.elfutils.nodebuginfod. Closes: #976875. * Don't use MAKEFLAGS in the packaging. Closes: #965955. * Fix unwinding support for 32bit S390, taken from the trunk. Thanks to Andreas Krebbel and Frank Heimes. LP: #1908756. * Call dh_dwz. * Bump standards version. -- Matthias Klose Thu, 31 Dec 2020 12:52:31 +0100 ** Changed in: elfutils (Ubuntu Hirsute) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: Fix Released Status in elfutils source package in Groovy: New Status in elfutils source package in Hirsute: Fix Released Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
MP for hirsute is open ** Changed in: ubuntu-z-systems Status: New => In Progress ** Changed in: elfutils (Ubuntu Hirsute) Assignee: Skipper Bug Screeners (skipper-screen-team) => Frank Heimes (fheimes) ** Changed in: elfutils (Ubuntu Groovy) Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team) ** Changed in: elfutils (Ubuntu Hirsute) Status: New => In Progress -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: In Progress Status in elfutils package in Ubuntu: In Progress Status in elfutils source package in Groovy: New Status in elfutils source package in Hirsute: In Progress Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Merge proposal linked: https://code.launchpad.net/~fheimes/ubuntu/+source/elfutils/+git/elfutils/+merge/395663 -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: New Status in elfutils package in Ubuntu: New Status in elfutils source package in Groovy: New Status in elfutils source package in Hirsute: New Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. [Other] * The fix is upstream accepted with elfutils > 0.182. __ ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Description changed: + SRU Bug Template: + = + + [Impact] + + * There is an endianess problem in pid_memory_read that impacts s390x. + + * Due to this elfutils biarch test fails on s390x doing unwinding for a + 32 bit process. + + [Fix] + + * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" + + [Test Case] + + * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. + + * Run the test script: 'run-backtrace-native-biarch.sh' + + * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. + + [Where problems could occur] + + * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. + + * But in worst case the changes in 'pid_memory_read' of /libdwfl/linux-pid-attach.c could have a negative impact even on architectures other than s390x, in case the check for the endiness is wrong. + + * But the changes are quite traceable and the additional code that fixes the endianess problem is really only active on a big endian architecture. + + [Other] + + * The fix is upstream accepted with elfutils > 0.182. + __ + ---Problem Description--- libdw unwinding fails for 32 bit binaries. - - Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. + + Elfutils biarch test currently fails on s390x doing unwinding for a 32 + bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 - IBM Z: Fix endianess problem in pid_memory_read - - The cached reads lack the big endian adjustments done in the fallback - path. - - Signed-off-by: Andreas Krebbel + IBM Z: Fix endianess problem in pid_memory_read + The cached reads lack the big endian adjustments done in the fallback + path. + + Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: New Status in elfutils package in Ubuntu: New Status in elfutils source package in Groovy: New Status in elfutils source package in Hirsute: New Bug description: SRU Bug Template: = [Impact] * There is an endianess problem in pid_memory_read that impacts s390x. * Due to this elfutils biarch test fails on s390x doing unwinding for a 32 bit process. [Fix] * e4d985a3c1c873f77d20fa0cd421458cc2824996 e4d985a3 "IBM Z: Fix endianess problem in pid_memory_read" [Test Case] * Have an Ubuntu Server 20.10 system or newer installed on LPAR, z/VM or KVM that comes with elfutils 0.181 or 0.182. * Run the test script: 'run-backtrace-native-biarch.sh' * It either core dumps without the patch in place - look for "/test-subr.sh: line 84: 376822 Aborted (core dumped)" or succeeds. [Where problems could occur] * If the translation is not done right (shift of the upper 4 bytes + down on big endian 64 bit targets) the situation is broken in the same way, and things stay the same. * But in worst case the changes in
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Also affects: elfutils (Ubuntu Hirsute) Importance: Undecided Assignee: Skipper Bug Screeners (skipper-screen-team) Status: New ** Also affects: elfutils (Ubuntu Groovy) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: New Status in elfutils package in Ubuntu: New Status in elfutils source package in Groovy: New Status in elfutils source package in Hirsute: New Bug description: ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp
[Touch-packages] [Bug 1908756] Re: Ubuntu 20.10 - elfutils unwinding broken for s390 compat
** Also affects: ubuntu-z-systems Importance: Undecided Status: New ** Changed in: ubuntu-z-systems Importance: Undecided => Medium ** Changed in: ubuntu-z-systems Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to elfutils in Ubuntu. https://bugs.launchpad.net/bugs/1908756 Title: Ubuntu 20.10 - elfutils unwinding broken for s390 compat Status in Ubuntu on IBM z Systems: New Status in elfutils package in Ubuntu: New Bug description: ---Problem Description--- libdw unwinding fails for 32 bit binaries. Elfutils biarch test currently fails on s390x doing unwinding for a 32 bit process. FAIL: run-backtrace-native-biarch.sh 0x557e7000 0x557eb000 /root/elfutils/tests/backtrace-child-biarch 0x7dba4000 0x7dd51000 /usr/lib/libc-2.32.so 0x7dd53000 0x7dd7 /usr/lib/libpthread-2.32.so 0x7dd7f000 0x7dda6000 /usr/lib/ld-2.32.so TID 376858: # 0 0x7dd6668a raise # 1 0x7fd0ef60 - 1 /root/elfutils/tests/backtrace: dwfl_thread_getframes: No DWARF information found backtrace: backtrace.c:114: callback_verify: Assertion `symname != NULL && strcmp (symname, "sigusr2") == 0' failed. ./test-subr.sh: line 84: 376822 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" backtrace-child-biarch: no main FAIL run-backtrace-native-biarch.sh (exit status: 1) Patch has already been posted and upstream committed: https://sourceware.org/pipermail/elfutils-devel/2020q4/003149.html Please pick up the following commit for the next release: commit e4d985a3c1c873f77d20fa0cd421458cc2824996 Author: Andreas Krebbel Date: Thu Nov 19 20:32:24 2020 +0100 IBM Z: Fix endianess problem in pid_memory_read The cached reads lack the big endian adjustments done in the fallback path. Signed-off-by: Andreas Krebbel The patch applies cleanly ontop of elfutils_0.181-1. strace right now is not built with unwinding support for IBM Z although both variants should work - libdw and libunwind. Other distros use libdw from elfutils while Ubuntu on x86 appears to use libunwind. libdw and libunwind do support IBM Z. It would be good to build strace with unwinding support for Z. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1908756/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp