From owner-freebsd-ports-bugs@freebsd.org Fri Jun 30 13:09:46 2017 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6A151D91703 for ; Fri, 30 Jun 2017 13:09:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3F26E68E80 for ; Fri, 30 Jun 2017 13:09:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v5UD9joq088186 for ; Fri, 30 Jun 2017 13:09:46 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 220381] net/torsocks: sometimes crashes on 12.0-CURRENT Date: Fri, 30 Jun 2017 13:09:45 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: crash, needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jbeich@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jun 2017 13:09:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220381 --- Comment #4 from Jan Beich --- 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, file=3D, line=3D, failedexpr=3D) at /usr/src/lib/libc/gen/assert.c:51 #4 0x00000008008fa1c3 in tsocks_mutex_unlock (m=3D0x800b047d0 ) at compat.c:72 #5 0x00000008008fa2a0 in tsocks_once (o=3D0x800b047c8 , init_routine=3D0x8008f20b0 ) 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, lockstate=3D) at rtld.c:2633 #11 0x00000008006cd9ec in _rtld (sp=3D0x7fffffffed50, exit_proc=3D, objp=3D) 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 ) 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.=