Sonarr keeps giving a SIGSEGV error when searching for a torrent

Hello! I am having some trouble with Sonarr. It starts up fine, and will run. However, whenever I try to search for a torrent, it crashes. Here is the console from the crash:

[Info] NzbSearchService: Searching 2 indexers for [Better Call Saul : S01E07]
Stacktrace:

Native stacktrace:

    mono() [0x4b20bc]
    mono() [0x5086ee]
    mono() [0x428f7d]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f60c88ce340]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x39fb3) [0x7f608ecd0fb3]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x101af) [0x7f608eca71af]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x116cf) [0x7f608eca86cf]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x22f9b) [0x7f608ecb9f9b]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x32ad7) [0x7f608ecc9ad7]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(curl_multi_perform+0x91) [0x7f608ecca101]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(curl_easy_perform+0x103) [0x7f608ecc1733]
    [0x40e45a80]

Debug info from gdb:

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

What is the problem? Are there other logs that can give me some more information? Thanks!

Sonarr version, kernel version, mono version, libcurl version, libssl version… please. :wink:

Tricky one, seems to be crashing inside libcurl.

Thanks for the reply!

Sonarr version: 2.0.0.3316
Mono version: 4.0.2 (Stable 4.0.2.5/c99aa0c Wed Jun 24 10:04:37 UTC 2015)
Kernal version: Linux 3.16.0-30-generic x86_64
Libcurl: libcurl 7.35.0
OpenSSL: OpenSSL 1.0.1f 6 Jan 2014

Thanks!

Update your kernel! (and reboot)

Lemme know if it still happens after that.

OK,so i have updated the kernal to Linux 3.19.8-992-lowlatency x86_64. I then rebooted the server, and then ran Sonarr with

mono /opt/NzbDrone/NzbDrone.exe
It ran, and it worked until I tried searching for a show. Then it gave this error:
[Info] NzbSearchService: Searching 2 indexers for [Better Call Saul : S01E07]
Stacktrace:

Native stacktrace:

    mono() [0x4b20bc]
    mono() [0x5086ee]
    mono() [0x428f7d]
    /lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7fbe51ae6340]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x3a023) [0x7fbe032d3023]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x1021f) [0x7fbe032a921f]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x1173f) [0x7fbe032aa73f]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x2301b) [0x7fbe032bc01b]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(+0x32b57) [0x7fbe032cbb57]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(curl_multi_perform+0x91) [0x7fbe0                                                                                                                                                             32cc181]
    /usr/lib/x86_64-linux-gnu/libcurl.so.3(curl_easy_perform+0x103) [0x7fbe0                                                                                                                                                             32c37b3]
    [0x41c11890]

Debug info from gdb:

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

Aborted (core dumped)

What is going on?

On further experimentation, it only seems to do this if I do an automatic search. It also crashed when it starts the automatic RSS sync. If I click manual search and then choose a torrent, then it works fine and sends the download to deluge. Are there more detailed logs that I could access?

Probably not important, but why did you update from utopic generic kernel to vivid lowlatency?

Which indexer are we talking about?

Could be some multithreading issue. are both indexers configured with https?

Yeah, updating to the low latency kernal was an accident. I copied the wrong link for wget. Could that be causing the issue?
I have kickass and rarbg as indexers. Regarding https, both of them have the links as https://thename.whatever, so I believe that means that they are configured as https.

kickass blows up curl. not sure why yet.

#0  Curl_raw_nequal (first=0x7fc700000001 <error: Cannot access memory at address 0x7fc700000001>, second=second@entry=0x7fc78dde40b9 "User-Agent:", max=max@entry=11) at rawstr.c:115
#1  0x00007fc78dda421f in Curl_checkheaders (data=data@entry=0x7fc764037300, thisheader=thisheader@entry=0x7fc78dde40b9 "User-Agent:") at http.c:178
#2  0x00007fc78dda573f in Curl_http (conn=0x7fc76404e810, done=<optimized out>) at http.c:1733
#3  0x00007fc78ddb701b in Curl_do (connp=connp@entry=0x7fc764037310, done=done@entry=0x7fc78e3fb046) at url.c:5856
#4  0x00007fc78ddc6b57 in multi_runsingle (multi=multi@entry=0x7fc764044a10, now=..., data=data@entry=0x7fc764037300) at multi.c:1241
#5  0x00007fc78ddc7181 in curl_multi_perform (multi_handle=0x7fc764044a10, running_handles=0x7fc78e3fb104) at multi.c:1752
#6  0x00007fc78ddbe7b3 in easy_transfer (multi=0x7fc764044a10) at easy.c:705
#7  easy_perform (events=false, data=0x7fc764037300) at easy.c:784
#8  curl_easy_perform (easy=0x7fc764037300) at easy.c:803

Ok, so I disabled the kickass indexer, and it was able to automatically grab the show. However, it crashed when the 15 minute automatic RSS sync occurred. I disabled this as a temporary measure. Is there anything I can do to help?

Get the latest develop version. should work now.

1 Like

It works! Awesome, thanks! I am definitely going to donate a few bucks for this. Thanks!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.