Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Jun 2017 13:09:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 220381] net/torsocks: sometimes crashes on 12.0-CURRENT
Message-ID:  <bug-220381-13-JbLlz4fQ8P@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-220381-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-220381-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220381

--- Comment #4 from Jan Beich <jbeich@FreeBSD.org> ---
Comment on attachment 183939
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D183939
Initialize libthr if cleanup handler is called.

Assertion failed: (!ret), function tsocks_mutex_unlock, file compat.c, line=
 72.

Program received signal SIGABRT, Aborted.
thr_kill () at thr_kill.S:3
3       RSYSCALL(thr_kill)
(gdb) bt
#0  thr_kill () at thr_kill.S:3
#1  0x0000000801ff7ff4 in __raise (s=3D6) at /usr/src/lib/libc/gen/raise.c:=
52
#2  0x0000000801ff7f69 in abort () at /usr/src/lib/libc/stdlib/abort.c:65
#3  0x000000080207b1f1 in __assert (func=3D<optimized out>, file=3D<optimiz=
ed out>,
    line=3D<optimized out>, failedexpr=3D<optimized out>) at
/usr/src/lib/libc/gen/assert.c:51
#4  0x00000008008fa1c3 in tsocks_mutex_unlock (m=3D0x800b047d0 <init_once+8=
>) at
compat.c:72
#5  0x00000008008fa2a0 in tsocks_once (o=3D0x800b047c8 <init_once>,
    init_routine=3D0x8008f20b0 <tsocks_init>) at compat.c:97
#6  0x00000008008f2089 in tsocks_initialize () at torsocks.c:702
#7  0x00000008008feea2 in __do_global_ctors_aux () from
/usr/local/lib/torsocks/libtorsocks.so
#8  0x00000008008f0c96 in _init () from /usr/local/lib/torsocks/libtorsocks=
.so
#9  0x00007fffffffe220 in ?? ()
#10 0x00000008006ce8a8 in objlist_call_init (list=3D<optimized out>,
lockstate=3D<optimized out>)
    at rtld.c:2633
#11 0x00000008006cd9ec in _rtld (sp=3D0x7fffffffed50, exit_proc=3D<optimize=
d out>,
    objp=3D<optimized out>) at rtld.c:759
#12 0x00000008006cb669 in .rtld_start () at
/usr/src/libexec/rtld-elf/amd64/rtld_start.S:39
#13 0x0000000000000000 in ?? ()
(gdb) f 4
#4  0x00000008008fa1c3 in tsocks_mutex_unlock (m=3D0x800b047d0 <init_once+8=
>) at
compat.c:72
72              assert(!ret);
(gdb) l
67              ret =3D pthread_mutex_unlock(&m->mutex);
68              /*
69               * Unable to unlock the mutex could lead to undefined behav=
ior
and potential
70               * security issues. Stop everything so torsocks can't conti=
nue.
71               */
72              assert(!ret);
73      }
74
75      /*
76       * Call the given routine once, and only once. tsocks_once returning

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220381-13-JbLlz4fQ8P>