马春杰杰 Exit Reader Mode

rtorrent: Caught Segmentation fault, dumping stack

rtorrent突然提示:

Caught Segmentation fault, dumping stack:
0   rtorrent                            0x0000000104ffe0d1 _Z8do_panici + 398
1   libsystem_platform.dylib            0x00007fff68fd742d _sigtramp + 29
2   ???                                 0x0000000000001400 0x0 + 5120
3   libcurl.4.dylib                     0x00007fff668b493a curl_multi_socket_action + 38
4   rtorrent                            0x0000000105061d39 _ZN4core9CurlStack14receive_actionEPNS_10CurlSocketEi + 59
5   libtorrent.21.dylib                 0x00000001052a6e36 _ZN7torrent10PollKQueue7performEv + 252
6   libtorrent.21.dylib                 0x00000001052ce9cf _ZN7torrent11thread_base10event_loopEPS0_ + 333
7   rtorrent                            0x0000000104ffd954 main + 4640
8   libdyld.dylib                       0x00007fff68dde7fd start + 1
9   ???                                 0x0000000000000001 0x0 + 1
Abort trap: 6

基本上过30秒左右就会自动崩溃。。。

解决方法:

brew install curl

更新完curl之后会提示:

curl is keg-only, which means it was not symlinked into /usr/local,
because macOS already provides this software and installing another version in
parallel can cause all kinds of trouble.

If you need to have curl first in your PATH, run:
  echo 'export PATH="/usr/local/opt/curl/bin:$PATH"' >> /Users/mcj/.bash_profile

For compilers to find curl you may need to set:
  export LDFLAGS="-L/usr/local/opt/curl/lib"
  export CPPFLAGS="-I/usr/local/opt/curl/include"

For pkg-config to find curl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig"

然后打开终端,输入:

export PKG_CONFIG_PATH="/usr/local/opt/curl/lib/pkgconfig"

之后正常输入rtorrent打开即可。

本文最后更新于2021年9月1日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!