首页 > 解决方案 > torsocks 分段错误 OSX

问题描述

我最近使用 brew 安装了 torsocks 但无法正常工作。tor 像往常一样在 localhost:9050 上运行。没有任何参数的 torsocks 本身也可以正常工作,但是每次我使用 torsocks/torify 执行命令时,都会出现分段错误。

编辑:csrutil 被禁用

➜  ~ tor
Jul 26 15:06:33.253 [notice] Tor 0.4.5.7 running on Darwin with Libevent 2.1.12-stable, OpenSSL 1.1.1k, Zlib 1.2.11, Liblzma N/A, Libzstd N/A and Unknown N/A as libc.
Jul 26 15:06:33.253 [notice] Tor can't help you if you use it wrong! Learn how to be safe at https://www.torproject.org/download/download#warning
Jul 26 15:06:33.256 [notice] Read configuration file "/usr/local/etc/tor/torrc".
Jul 26 15:06:33.264 [notice] Opening Socks listener on 127.0.0.1:9050
Jul 26 15:06:33.264 [notice] Opened Socks listener connection (ready) on 127.0.0.1:9050
Jul 26 15:06:33.264 [notice] Opening Control listener on 127.0.0.1:9051
Jul 26 15:06:33.265 [notice] Opened Control listener connection (ready) on 127.0.0.1:9051
Jul 26 15:06:33.000 [notice] Parsing GEOIP IPv4 file /usr/local/Cellar/tor/0.4.5.7/share/tor/geoip.
Jul 26 15:06:33.000 [notice] Parsing GEOIP IPv6 file /usr/local/Cellar/tor/0.4.5.7/share/tor/geoip6.
Jul 26 15:06:33.000 [notice] Bootstrapped 0% (starting): Starting
Jul 26 15:06:34.000 [notice] Starting with guard context "default"
Jul 26 15:06:35.000 [notice] Bootstrapped 5% (conn): Connecting to a relay
Jul 26 15:06:35.000 [notice] Bootstrapped 10% (conn_done): Connected to a relay
Jul 26 15:06:36.000 [notice] Bootstrapped 14% (handshake): Handshaking with a relay
Jul 26 15:06:36.000 [notice] Bootstrapped 15% (handshake_done): Handshake with a relay done
Jul 26 15:06:36.000 [notice] Bootstrapped 75% (enough_dirinfo): Loaded enough directory info to build circuits
Jul 26 15:06:36.000 [notice] Bootstrapped 90% (ap_handshake_done): Handshake finished with a relay to build circuits
Jul 26 15:06:36.000 [notice] Bootstrapped 95% (circuit_create): Establishing a Tor circuit
Jul 26 15:06:36.000 [notice] Bootstrapped 100% (done): Done

➜  ~ torsocks curl google.com
[1]    2755 segmentation fault  torsocks curl google.com
➜  ~ torify curl google.com
[1]    2763 segmentation fault  torify curl google.com
➜  ~ torsocks --version
Torsocks 2.3.0

尝试重新安装没有运气...

/usr/local/tor/torsocks.conf 看起来很默认。

有人知道这件事吗?非常感谢<3

标签: segmentation-faultlocalhosttortorsocks

解决方案


推荐阅读