[tor-bugs] #27948 [Core Tor]: tor-0.3.4.8: self test failures on NetBSD

Tor Bug Tracker & Wiki blackhole at torproject.org
Wed Oct 3 20:19:02 UTC 2018


#27948: tor-0.3.4.8: self test failures on NetBSD
--------------------+--------------------------
 Reporter:  wiz     |          Owner:  (none)
     Type:  defect  |         Status:  new
 Priority:  Medium  |      Component:  Core Tor
  Version:          |       Severity:  Normal
 Keywords:          |  Actual Points:
Parent ID:          |         Points:
 Reviewer:          |        Sponsor:
--------------------+--------------------------
 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 at 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 at 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

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/27948>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list