Closed topazus closed 6 months ago
We are now experiencing it in Nixpkgs.
The build log looks the same until running tests:
@@ -499,7 +502,7 @@
xz mtest.mdbg
objcopy --add-section .gnu_debugdata=mtest.mdbg.xz mtest.strip
mv mtest.strip mtest_minidebug
-PASS: mtest_minidebug
+FAIL: mtest_minidebug
PASS: test_elf_32
PASS: test_elf_64
PASS: test_macho
@@ -531,52 +534,67 @@
PASS: mtest
PASS: xztest
PASS: xztest_alloc
+=====================================================
+ package-unused version-unused: ./test-suite.log
+=====================================================
+
+# TOTAL: 35
+# PASS: 34
+# SKIP: 0
+# XFAIL: 0
+# FAIL: 1
+# XPASS: 0
+# ERROR: 0
+
+.. contents:: :depth: 2
+
+FAIL: mtest_minidebug
+=====================
+
+test1: [0]: syminfo did not find name
+test1: [1]: syminfo did not find name
+test1: [2]: syminfo did not find name
+test1: [0]: missing function name
+test1: [1]: missing function name
+test1: [2]: missing function name
+test3: [0]: NULL syminfo name
+test3: [1]: NULL syminfo name
+test3: [2]: NULL syminfo name
+test5: NULL syminfo name
+FAIL: backtrace_full noinline
+FAIL: backtrace_simple noinline
+FAIL: backtrace_syminfo variable
+FAIL mtest_minidebug (exit status: 1)
+
============================================================================
Testsuite summary for package-unused version-unused
============================================================================
# TOTAL: 35
-# PASS: 35
+# PASS: 34
# SKIP: 0
# XFAIL: 0
-# FAIL: 0
+# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
+See ./test-suite.log
+============================================================================
+make[2]: *** [Makefile:2028: test-suite.log] Error 1
The test-suite.log
just contains the same thing as above:
FAIL: mtest_minidebug
=====================
test1: [0]: syminfo did not find name
test1: [1]: syminfo did not find name
test1: [2]: syminfo did not find name
test1: [0]: missing function name
test1: [1]: missing function name
test1: [2]: missing function name
test3: [0]: NULL syminfo name
test3: [1]: NULL syminfo name
test3: [2]: NULL syminfo name
test5: NULL syminfo name
FAIL: backtrace_full noinline
FAIL: backtrace_simple noinline
FAIL: backtrace_syminfo variable
FAIL mtest_minidebug (exit status: 1)
The test does pass for me on x86_64 on Ubuntu Rodete. Tell me more about the environment in which it fails.
I could bisect this error to our (nixpkgs) xz upgrade from 5.4.6 to 5.6.0.
https://github.com/tukaani-project/xz/commit/6daa4d0ea46a8441f21f609149f3633158bf4704 xz: Use threaded mode by defaut (as if --threads=0 was used).
upstream change caused the test failures in libbacktrace
.
Using XZ_OPT="--trheads=2"
environment variable I was able to reproduce the test failures on xz-5.4.6
as well.
Thanks for finding out how to reproduce the problem. Should be fixed now.
the source code: https://github.com/ianlancetaylor/libbacktrace/commit/14818b7783eeb9a56c3f0fca78cefd3143f8c5f6
used the patch of https://github.com/ianlancetaylor/libbacktrace/pull/99
detaild build log: https://kojipkgs.fedoraproject.org/work/tasks/3313/111733313/build.log