Deluge segfaulting in libcrypto on Ubuntu 12.04

General support for problems installing or using Deluge
asensio
Member
Member
Posts: 11
Joined: Sun Nov 11, 2012 1:59 pm

Deluge segfaulting in libcrypto on Ubuntu 12.04

Post by asensio »

Hi,

I always installed Deluge from the Ubuntu repos and had no problem until a couple of days. Now Deluge keeps crashing with Segmentation Fault 5 to 10 minutes after it starts. I read another topic http://forum.deluge-torrent.org/viewtop ... t=segfault but it didn't help.

Here's what I've done:
I've purged Deluge and libtorrent-rasterbar6 and searched for remaing files or folders to delete, and reinstalled it
I deleted my configurations and tried with default configs.

Debugging:

Code: Select all

deluge --loglevel=debug
[DEBUG   ] 19:25:25 torrentmanager:727 Opening torrents fastresume file for load.
[DEBUG   ] 19:25:25 torrentmanager:767 Saving fastresume file: /home/asensio/.config/deluge/state/torrents.fastresume
Fatal Python error: (pygame parachute) Segmentation Fault
Abortado (imagem do núcleo gravada)
Thinking that the problem would be the python-pygame package I purged it (is it a Deluge dependency? Deluge seems to work without it) and searched for remainig files. But Deluge keeps segfaulting.

Reinstalled Deluge from apt-get (it asked for python-pygame) and backtraced it (these are some of the last lines):

Code: Select all

strace deluge
...
recv(8, 0x9960a88, 4096, 0)             = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {3295, 428888}) = 0
poll([{fd=6, events=POLLIN}, {fd=8, events=POLLIN}, {fd=15, events=POLLIN|POLLPRI}, {fd=3, events=POLLIN|POLLPRI}, {fd=4, events=POLLIN}, {fd=13, events=POLLIN}, {fd=18, events=POLLIN}, {fd=20, events=POLLIN}, {fd=60, events=POLLIN}, {fd=5, events=POLLIN}, {fd=19, events=POLLIN}], 11, 2) = 0 (Timeout)
read(6, 0xbfabd87c, 16)                 = -1 EAGAIN (Resource temporarily unavailable)
clock_gettime(CLOCK_MONOTONIC, {3295, 2722967}) = 0
gettimeofday({1352642273, 772924}, NULL) = 0
open("/home/asensio/.config/deluge/state/torrents.state.new", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 88
fstat64(88, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
fstat64(88, {st_mode=S_IFREG|0664, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7080000
write(88, "(ideluge.core.torrentmanager\nTor"..., 4096) = 4096
write(88, "0\nsS'url'\np179\nS'udp://tracker.i"..., 4096) = 4096
write(88, "0986fa7\np339\nsg20\nI-1\nsg21\nS'/ar"..., 4096) = 4096
write(88, "VTV%5D.torrent\np506\nsg20\nI-1\nsg2"..., 4096) = 4096
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {0xa974d520, [SEGV], SA_RESTART}, 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {SIG_DFL, [SEGV], SA_RESTART}, 8) = 0
rt_sigaction(SIGSEGV, {SIG_DFL, [SEGV], SA_RESTART}, {SIG_DFL, [SEGV], SA_RESTART}, 8) = 0
rt_sigaction(SIGBUS, {SIG_DFL, [BUS], SA_RESTART}, {0xa974d520, [BUS], SA_RESTART}, 8) = 0
rt_sigaction(SIGFPE, {SIG_DFL, [FPE], SA_RESTART}, {0xa974d520, [FPE], SA_RESTART}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL, [QUIT], SA_RESTART}, {0xa974d520, [QUIT], SA_RESTART}, 8) = 0
write(2, "Fatal Python error: (pygame para"..., 58Fatal Python error: (pygame parachute) Segmentation Fault
) = 58
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
write(88, "5D.torrent\np673\nsg20\nI-1\nsg21\nS'"..., 2493) = 2493
tgkill(9283, 9283, SIGABRT)             = 0
--- SIGABRT (Aborted) @ 0 (0) ---
+++ killed by SIGABRT (core dumped) +++
Abortado (imagem do núcleo gravada)
I don't have deluged installed nor the webui, just gtk. I'm using two third party plugins, YaRSS2 and Autoshutdown, but I've been using these without problems from some time...

Hope someone can help.
Thanks.
Cas
Top Bloke
Top Bloke
Posts: 3679
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by Cas »

pygame is a dependency of the notification plugin and it is listed in the DEPENDS file. Are you using this plugin?

The strace does not seem to have any information other than pygame segfaulted, can you get a gdb backtrace and what happens when you uninstall pygame?
asensio
Member
Member
Posts: 11
Joined: Sun Nov 11, 2012 1:59 pm

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by asensio »

Thank you Cas for your reply.

Everything seems to be fine now. I tried to do the backtrace, but now deluge isn't crashing, it's been up and running for 12+ hours. The only thing I did was install it again with all the deps. Yes, i'm using the notification plugin.

I'll keep an eye on it and if, in the next few days, it starts to crash again I'll post the backtrace.

Again, thanks for your replay.
Cheers
8Kuula
Member
Member
Posts: 10
Joined: Sun Jan 16, 2011 9:45 am

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by 8Kuula »

From syslog:

Code: Select all

Nov 14 01:00:13 gatekeeper kernel: [1119170.149850] deluged[27491]: segfault at f6ac780b ip 00007f138822bc14 sp 00007fffc8915b70 error 4 in libz.so.1.2.3.4[7f1388227000+16000]
If this info helps...
I think something is updated in past week in Ubuntu 12.04, first this kind crash I got November 12th.
Lazybones
Leecher
Leecher
Posts: 62
Joined: Sat Dec 31, 2011 11:00 pm

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by Lazybones »

I am getting regular deluge crashes in Ubuntu 12.04.1 LTS, haven't had a chance to turn up the logs or do a trace yet.
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by abubin »

my deluge also starting to crash every few days:

Code: Select all

Dec 15 02:33:55 ubu12 kernel: [8136301.061048] deluged[31749]: segfault at 31cf000 ip 00007fed16de4d86 sp 00007fed129dbfa0 error 4 in libcrypto.so.1.0.0[7fed16d5c000+19f000]
Any idea?
mozster

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by mozster »

I have the same segfault...

Code: Select all

Dec 17 04:51:53 linuxserver kernel: [1266683.693035] deluged[11845]: segfault at 7fc40e0d7f58 ip 00007fc4101fc73c sp 00007fc40e0d7f60 error 6 in libtorrent-rasterbar.so.6.0.0[7fc41009d000+28b000]
Dec 17 04:51:53 linuxserver kernel: [1266683.769867] init: deluge main process (11816) killed by SEGV signal
I can send the other logs if needed, but there doesn't seem to be anything untoward happening in them...
rahul12

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by rahul12 »

I have the EXACT same issues using 1.3.3. Torrents get stuck checking, refuse to dowload, etc. The program also hangs and will not shut down. I have to force terminate the process to get it to close. Reverted to 1.3.1 and things seem to be ok.
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by abubin »

anyone found the solution to segfault caused by libcrypto.so.1.0.0? I am getting is very often now. Everyday it is crashing. I turned on debug log but it is not showing anything about the crash.
abubin
Seeder
Seeder
Posts: 217
Joined: Thu Sep 13, 2007 6:03 am

Re: Deluge segfaulting in Ubuntu 12.04 (precise)

Post by abubin »

The crash has stopped.

Here is what happened. The crash is getting so bad that it happen every few hour. I was gonna remove the whole software and compile them manually. The I removed all the torrents in my deluge to clear everything before reconfiguring the whole thing. After removing all the seeding and completed torrent, I was left with 2 torrent still downloading. I let it continue to run to finish up the download. This is when it doesn't crash anymore. Somehow removing the 5-6 non-active torrents did the trick. It would possibly mean one of the torrent is causing the segmentation fault. But strange that it is an INACTIVE torrent. These are all PAUSED torrent.

Right now, no more crashes. Stable for 5 days already.

For those having similar problem with mine, try what I have done. Remove all the torrents.

Edit:
Strange thing when I check the log:

Code: Select all

Dec 30 19:20:34 ubu12 kernel: [1107194.405803] deluged[3200]: segfault at 2682000 ip 00007fc803c98d86 sp 00007fc7ff88bfa0 error 4 in libcrypto.so.1.0.0[7fc803c10000+19f000]
Dec 30 19:33:36 ubu12 kernel: [1107976.395273] deluged[4742]: segfault at 2e3c000 ip 00007f29f9d5ad86 sp 00007f29f594dfa0 error 4 in libcrypto.so.1.0.0[7f29f9cd2000+19f000]
Dec 30 20:21:51 ubu12 kernel: [1110870.914805] deluged[6223]: segfault at 2b29000 ip 00007f1420dc8d86 sp 00007f141c9bbfa0 error 4 in libcrypto.so.1.0.0[7f1420d40000+19f000]
Dec 30 20:29:53 ubu12 kernel: [1111352.787678] deluged[6555]: segfault at 3e21000 ip 00007f16db8c2d86 sp 00007f16d74b5fa0 error 4 in libcrypto.so.1.0.0[7f16db83a000+19f000]
Dec 30 20:35:01 ubu12 kernel: [1111661.624831] deluged[7050]: segfault at 5a12000 ip 00007fb8add5ad86 sp 00007fb8a994dfa0 error 4 in libcrypto.so.1.0.0[7fb8adcd2000+19f000]
I can still see the segfault. Just that deluge didn't crash.
Post Reply