From owner-freebsd-ports-bugs@freebsd.org Fri Jun 30 12:18:32 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 5E432D90594 for ; Fri, 30 Jun 2017 12:18:32 +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 498F666B27 for ; Fri, 30 Jun 2017 12:18:32 +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 v5UCIVUd035120 for ; Fri, 30 Jun 2017 12:18:32 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 12:18:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: bug_id short_desc product version rep_platform op_sys bug_status keywords bug_severity priority component assigned_to reporter cc flagtypes.name Message-ID: 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 12:18:32 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220381 Bug ID: 220381 Summary: net/torsocks: sometimes crashes on 12.0-CURRENT Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Keywords: crash, needs-qa Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: freebsd-ports-bugs@FreeBSD.org Reporter: jbeich@FreeBSD.org CC: kib@FreeBSD.org, nobutaka@FreeBSD.org, yuri@rawbw.com Flags: maintainer-feedback?(yuri@rawbw.com) After base r320472 net/torsocks started to crash when torifying www/w3m-img= but not other apps. $ pkg install gdb torsocks w3m-img ca_root_nss $ env -i LD_PRELOAD=3D/usr/local/lib/torsocks/libtorsocks.so \ /usr/local/bin/gdb /usr/local/bin/w3m https://freebsd.org [...] Program received signal SIGSEGV, Segmentation fault. __pthread_cleanup_push_imp (routine=3D0x80208ff30 <__stdio_cancel_cleanup>, arg=3D0x0, info=3D0x7fffffffd7b0) at /usr/src/lib/libthr/thread/thr_clean.c:60 60 newbuf->prev =3D curthread->cleanup; (gdb) bt f #0 __pthread_cleanup_push_imp (routine=3D0x80208ff30 <__stdio_cancel_clean= up>, arg=3D0x0, info=3D0x7fffffffd7b0) at /usr/src/lib/libthr/thread/thr_clean.c:60 curthread =3D 0x0 #1 0x000000080207275e in fgets (buf=3D0x7fffffffd850 "i\a", n=3D1024, fp=3D0x8022f2020) at /usr/src/lib/libc/stdio/fgets.c:59 __cleanup_info__ =3D {pthread_cleanup_pad =3D {140737488346208, 34393882416, 0, 18446735337746071552, 18446741944445842436, 20, 140737488345168, 1024}} s =3D 0x7fffffffd850 "i\a" p =3D len =3D t =3D ret =3D #2 0x00000008008f8fa2 in parse_config_file (fp=3D0x8022f2020, config=3D0x8= 00b04960 ) at config-file.c:209 ret =3D -1 line =3D "i\a\000\000\000\000\000\000X\332\377\377\377\177\000\000\000\332\377\377\3= 77\177", '\000' , "\b\000\000\000X\333\377\377\377\177\000\000T\213\362\001\b\000\000\000\276= ff\000\000\000\000\000\366\337\364\016\377\177\000\000\300\346n\000\b\000\0= 00\000\001\000\000\000\b\000\000\000\000do\000\b\000\000\000P\346\361\001\b= \000\000\000\003\000\000\000\377\177\000\000\000\331\377\377\377\177\000\00= 0\000\000\000\000\000\000\000\000\016\000\000\000\000\000\000\000\016\000\0= 00\000\000\000\000\000X\332\377\377\377\177\000\000@\332\377\377\377\177\00= 0\000\317\364l\000\b\000\000\000\000\360n\000\b\000\000\000\000\364n\000\b\= 000\000\000\000\370n\000\b\000\000\000\000"... #3 0x00000008008f8a92 in config_file_read ( filename=3D0x800900e38 "/usr/local/etc/tor/torsocks.conf", config=3D0x8= 00b04960 ) at config-file.c:567 ret =3D 8 fp =3D 0x8022f2020 #4 0x00000008008f267b in init_config () at torsocks.c:163 ret =3D 0 filename =3D 0x0 #5 0x00000008008f20f6 in tsocks_init () at torsocks.c:328 ret =3D 8 #6 0x00000008008fa285 in tsocks_once (o=3D0x800b047c8 , init_routine=3D0x8008f20b0 ) at compat.c:94 No locals. #7 0x00000008008f2089 in tsocks_initialize () at torsocks.c:702 No locals. #8 0x00000008008feea2 in __do_global_ctors_aux () from /usr/local/lib/torsocks/libtorsocks.so No symbol table info available. #9 0x00000008008f0c96 in _init () from /usr/local/lib/torsocks/libtorsocks= .so No symbol table info available. #10 0x00007fffffffe210 in ?? () No symbol table info available. #11 0x00000008006ce8a8 in objlist_call_init (list=3D, lockstate=3D) at rtld.c:2633 obj =3D elm =3D 0x800b04210 <__CTOR_LIST__> init_addr =3D saved_msg =3D #12 0x00000008006cd9ec in _rtld (sp=3D0x7fffffffed48, exit_proc=3D, objp=3D) at rtld.c:759 aux_info =3D {0x0, 0x0, 0x0, 0x7fffffffed70, 0x7fffffffed80, 0x7fffffffed90, 0x7fffffffeda0, 0x7fffffffedd0, 0x7fffffffedb0, 0x7fffffffedc0, 0x0, 0x0, 0x0, 0x= 0, 0x0, 0x7fffffffede0, 0x7fffffffee00, 0x7fffffffee10, 0x7fffffffedf0, 0x7fffffffee20, 0x7fffffffee30, 0x7fffffffee40, 0x7fffffffee50, 0x7fffffffee60} buf =3D '\000' mib =3D {0, 0} argcp =3D argc =3D 7270400 argv0 =3D len =3D 0 fd =3D phdr =3D rtld_argc =3D search_in_path =3D st =3D {st_dev =3D 0, st_ino =3D 0, st_nlink =3D 0, st_mode =3D 0, = st_padding0 =3D 0, st_uid =3D 0, st_gid =3D 0, st_padding1 =3D 0, st_rdev =3D 0, st_atim =3D {tv_s= ec =3D 0, tv_nsec =3D 0}, st_mtim =3D {tv_sec =3D 0, tv_nsec =3D 0}, st_ctim =3D {tv_sec = =3D 0, tv_nsec =3D 0}, st_birthtim =3D { tv_sec =3D 0, tv_nsec =3D 0}, st_size =3D 0, st_blocks =3D 0, s= t_blksize =3D 0, st_flags =3D 0, st_gen =3D 0, st_spare =3D {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}} dir_enable =3D library_path_rpath =3D phnum =3D kexecpath =3D obj =3D last_interposer =3D entry =3D aux =3D preload_tail =3D initlist =3D {stqh_first =3D 0x8006ed6a0, stqh_last =3D 0x8006ed9e0} lockstate =3D {lockstate =3D 2, env =3D {{_sjb =3D {0 }}}} #13 0x00000008006cb669 in .rtld_start () at /usr/src/libexec/rtld-elf/amd64/rtld_start.S:39 No locals. #14 0x0000000000000000 in ?? () No symbol table info available. --=20 You are receiving this mail because: You are the assignee for the bug.=