Trac issueshttps://gitlab.torproject.org/legacy/trac/-/issues2020-06-13T15:32:28Zhttps://gitlab.torproject.org/legacy/trac/-/issues/27948Backtrace does not work on NetBSD2020-06-13T15:32:28ZTracBacktrace does not work on NetBSDI've run the self-tests on NetBSD-8.99.25/amd64, and I see two issues:
# TOTAL: 19
# PASS: 12
# SKIP: 5
# XFAIL: 0
# FAIL: 2
# XPASS: 0
# ERROR: 0
... ...I've run the self-tests on NetBSD-8.99.25/amd64, and I see two issues:
# TOTAL: 19
# PASS: 12
# SKIP: 5
# XFAIL: 0
# FAIL: 2
# XPASS: 0
# ERROR: 0
...
FAIL: src/test/test
===================
....
util/thread/conditionvar_timeout: [forking]
FAIL src/test/test_threads.c:285: assert(ti->n_timeouts OP_EQ 2): 1 vs 2Sep 10 14:30:54.789 [err] Error 16 destroying a mutex.
Sep 10 14:30:54.789 [err] tor_assertion_failed_(): Bug: src/common/compat_pthreads.c:172: tor_mutex_uninit: Assertion 0 failed; aborting. (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: Assertion 0 failed in tor_mutex_uninit at src/common/compat_pthreads.c:172. Stack trace: (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefe62985 <log_backtrace+0x4e> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefe7d021 <tor_assertion_failed_+0xa0> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefe80e3d <tor_mutex_uninit+0xa6> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefe693ff <tor_mutex_free_+0x2e> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefc92ee2 <test_threads_conditionvar+0xefa001f3> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefcedd21 <testcase_run_bare_+0xefa00051> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefcedecd <testcase_run_one+0x158> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefcee51c <tinytest_main+0x107> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
Sep 10 14:30:54.793 [err] Bug: 0xefe99621 <main+0x2d1> at ./src/test/test (on Tor 0.3.4.8 da95b91355248ad8)
[Lost connection!]
[conditionvar_timeout FAILED]
util/handle/basic: OK
...
FAIL: src/test/test_bt.sh
=========================
OK
[1] Abort trap "${builddir:-.}/src/test/test-bt-cl" assert 2>&1 |
Done "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/...
BAD
============================================================ T= 1536589911
Tor died: Caught signal 11
0x94a0aa3d <crash_handler+0x94a00043> at ./src/test/test-bt-cl
0x94a0a8cd <crash+0x45> at ./src/test/test-bt-cl
[1] Abort trap "${builddir:-.}/src/test/test-bt-cl" crash 2>&1 |
Done(1) "${PYTHON:-python}" "${abs_top_srcdir:-.}/src/...
-158318
FAIL src/test/test_bt.sh (exit status: 1)
# gdb src/test/test test.core
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from src/test/test...done.
[New process 1]
[New process 5]
[New process 2]
bCore was generated by `test'.
Program terminated with signal SIGABRT, Aborted.
#0 0x00007500d531eeca in _lwp_kill () from /usr/lib/libc.so.12
[Current thread is 1 (process 1)]
(gdb) bt
#0 0x00007500d531eeca in _lwp_kill () from /usr/lib/libc.so.12
#1 0x00007500d531eb57 in abort () at /usr/src/lib/libc/stdlib/abort.c:74
#2 0x00000000efe80e42 in tor_mutex_uninit (m=m@entry=0x7500d3e0b080) at src/common/compat_pthreads.c:172
#3 0x00000000efe693ff in tor_mutex_free_ (m=0x7500d3e0b080) at src/common/compat_threads.c:55
#4 0x00000000efc92ee2 in cv_testinfo_free (i=0x7500d3e09080) at src/test/test_threads.c:186
#5 test_threads_conditionvar (arg=<optimized out>) at src/test/test_threads.c:290
#6 0x00000000efcedd21 in testcase_run_bare_ (testcase=testcase@entry=0xf0263850 <thread_tests+80>) at src/ext/tinytest.c:106
#7 0x00000000efcedecd in testcase_run_forked_ (group=<optimized out>, testcase=0xf0263850 <thread_tests+80>) at src/ext/tinytest.c:190
#8 testcase_run_one (group=<optimized out>, testcase=0xf0263850 <thread_tests+80>) at src/ext/tinytest.c:248
#9 0x00000000efcee51c in tinytest_main (c=<optimized out>, v=<optimized out>, groups=<optimized out>) at src/ext/tinytest.c:435
#10 0x00000000efe99621 in main (c=1, v=0x7f7fffc611d8) at src/test/testing_common.c:319
**Trac**:
**Username**: wizTor: 0.3.5.x-finalteorteorhttps://gitlab.torproject.org/legacy/trac/-/issues/23250tor-0.3.0.10: test failure on NetBSD2020-06-13T15:12:44ZTractor-0.3.0.10: test failure on NetBSDWhen running the self tests on NetBSD, there is one problem:
```
===> Testing for tor-0.3.0.10
/usr/bin/make check-TESTS check-local
PASS: src/test/test
PASS: src/test/test-slow
PASS: src/test/test-memwipe
PASS: src/test/test_workqueue...When running the self tests on NetBSD, there is one problem:
```
===> Testing for tor-0.3.0.10
/usr/bin/make check-TESTS check-local
PASS: src/test/test
PASS: src/test/test-slow
PASS: src/test/test-memwipe
PASS: src/test/test_workqueue
PASS: src/test/test_keygen.sh
PASS: src/test/test-timers
SKIP: src/test/fuzz_static_testcases.sh
PASS: src/test/test_zero_length_keys.sh
PASS: src/test/test_workqueue_cancel.sh
SKIP: src/test/test_workqueue_efd.sh
SKIP: src/test/test_workqueue_efd2.sh
PASS: src/test/test_workqueue_pipe.sh
PASS: src/test/test_workqueue_pipe2.sh
PASS: src/test/test_workqueue_socketpair.sh
SKIP: src/test/test_switch_id.sh
PASS: src/test/test_ntor.sh
FAIL: src/test/test_bt.sh
============================================================================
Testsuite summary for tor 0.3.0.10
============================================================================
# TOTAL: 17
# PASS: 12
# SKIP: 4
# XFAIL: 0
# FAIL: 1
# XPASS: 0
# ERROR: 0
============================================================================
See ./test-suite.log
============================================================================
```
The test log:
```
# less ./src/test/test_bt.sh.log
OK
[1] Abort trap (core dumped) "${builddir:-.}/... |
Done "${PYTHON:-pytho...
BAD
============================================================ T= 1502824395
Tor died: Caught signal 11
0x73c0a4bd <crash_handler+0x73c00041> at ./src/test/test-bt-cl
[1] Abort trap (core dumped) "${builddir:-.}/... |
Done(1) "${PYTHON:-pytho...
-158318
FAIL src/test/test_bt.sh (exit status: 1)
```
**Trac**:
**Username**: wizTor: unspecifiedDavid Gouletdgoulet@torproject.orgDavid Gouletdgoulet@torproject.org