dig, libsocks5_sh & libpthread problem

Andrew N. Below defan at zenon.net
Thu Aug 25 23:01:44 GMT 2005


 Hello.

  I have to use socks5 server for outgoing connections
from office LAN. After updating to FreeBSD 5.4-RELEASE-p6
dig stops working via runsocks:

defbsd# runsocks dig
Bus error (core dumped)

defbsd# uname -sr
FreeBSD 5.4-RELEASE-p6

in logs:

Aug 26 00:14:51 defbsd libsocks5[7549]: NEC NWSL Socks5 v1.0r11  library
Aug 26 00:14:51 defbsd kernel: pid 7549 (dig), uid 0: exited on signal 10
(core dumped)
Aug 26 00:14:51 defbsd kernel: Aug 26 00:14:51 defbsd kernel: pid 7549
(dig), uid 0: exited on signal 10 (core dumped)

in core:

defbsd# gdb -c ./dig.core /usr/bin/dig
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `dig'.
Program terminated with signal 10, Bus error.
Reading symbols from /usr/local/lib//libsocks5_sh.so...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib//libsocks5_sh.so
Reading symbols from /lib/libcrypto.so.3...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/lib/libpthread.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/libpthread.so.1
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /lib/libcrypt.so.2...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x282af31b in pthread_testcancel () from /usr/lib/libpthread.so.1
(gdb)
(gdb) bt full
#0  0x282af31b in pthread_testcancel () from /usr/lib/libpthread.so.1
No symbol table info available.
#1  0x282a7902 in pthread_mutexattr_init () from /usr/lib/libpthread.so.1
No symbol table info available.
#2  0x00000000 in ?? ()
No symbol table info available.

 dig without runsocks works fine.

 runsocks is from socks5-1.0.11_3 port (/usr/ports/net/socks5).

 dig version is 9.3.1.

 FreeBSD has been cvsup'ed from 5.2.1 to 5.4-RELEASE-p6.

--
Andrew N. Below, Zenon N.S.P., technical support department
Moscow: +7 095 2323736, SPb: +7 812 3264468, http://www.zenon.net



More information about the freebsd-stable mailing list