Date: Fri, 30 Jun 2017 12:18:31 +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@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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 <optimized out> len =3D <optimized out> t =3D <optimized out> ret =3D <optimized out> #2 0x00000008008f8fa2 in parse_config_file (fp=3D0x8022f2020, config=3D0x8= 00b04960 <tsocks_config>) 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' <repeats 22 times>, "\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 <tsocks_config>) 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_once>, init_routine=3D0x8008f20b0 <tsocks_init>) 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<optimized out>, lockstate=3D<optimized out>) at rtld.c:2633 obj =3D <optimized out> elm =3D 0x800b04210 <__CTOR_LIST__> init_addr =3D <optimized out> saved_msg =3D <optimized out> #12 0x00000008006cd9ec in _rtld (sp=3D0x7fffffffed48, exit_proc=3D<optimize= d out>, objp=3D<optimized out>) 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' <repeats 1023 times> mib =3D {0, 0} argcp =3D <optimized out> argc =3D 7270400 argv0 =3D <optimized out> len =3D 0 fd =3D <optimized out> phdr =3D <optimized out> rtld_argc =3D <optimized out> search_in_path =3D <optimized out> 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 <error reading variable dir_enable (Cannot access me= mory at address 0x1)> library_path_rpath =3D <optimized out> phnum =3D <optimized out> kexecpath =3D <optimized out> obj =3D <optimized out> last_interposer =3D <optimized out> entry =3D <optimized out> aux =3D <optimized out> preload_tail =3D <optimized out> initlist =3D {stqh_first =3D 0x8006ed6a0, stqh_last =3D 0x8006ed9e0} lockstate =3D {lockstate =3D 2, env =3D {{_sjb =3D {0 <repeats 12 t= imes>}}}} #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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-220381-13>