Crash on ubuntu server

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
skin.at.home
Posts: 4
Joined: Fri Oct 21, 2011 3:54 pm

Crash on ubuntu server

Post by skin.at.home »

The whole year it worked fine. But the last two days of flights arbitrary number of minutes.
In /var/log/syslog message Oct 21 22:50:20 NAS kernel: [17152.714196] transmission-da[4024]: segfault at 10 ip b784ae85 sp b719d530 error 4 in libevent-2.0.so.5.0.1[b781c000+39000]
On the disk space a lot. The file system ext4.
Sorry on my bad english.

/etc/default/transmission-daemon

Code: Select all

# defaults for transmission-daemon
# sourced by /etc/init.d/transmission-daemon

# Change to 0 to disable daemon
ENABLE_DAEMON=1

# This directory stores some runtime information, like torrent files 
# and links to the config file, which itself can be found in 
# /etc/transmission-daemon/settings.json
CONFIG_DIR="/home/config/transmission-daemon" 

# Default options for daemon, see transmission-daemon(1) for more options
OPTIONS="--config-dir $CONFIG_DIR --no-auth"
/root/.config/transmission-daemon/settings.json

Code: Select all

{
    "alt-speed-down": 50, 
    "alt-speed-enabled": false, 
    "alt-speed-time-begin": 540, 
    "alt-speed-time-day": 127, 
    "alt-speed-time-enabled": false, 
    "alt-speed-time-end": 1020, 
    "alt-speed-up": 50, 
    "bind-address-ipv4": "0.0.0.0", 
    "bind-address-ipv6": "::", 
    "blocklist-enabled": false, 
    "blocklist-url": "http://www.example.com/blocklist", 
    "cache-size-mb": 2, 
    "dht-enabled": true, 
    "download-dir": "/root/Downloads", 
    "encryption": 1, 
    "idle-seeding-limit": 30, 
    "idle-seeding-limit-enabled": false, 
    "incomplete-dir": "/root/Downloads", 
    "incomplete-dir-enabled": false, 
    "lazy-bitfield-enabled": true, 
    "lpd-enabled": false, 
    "message-level": 3, 
    "open-file-limit": 32, 
    "peer-congestion-algorithm": "", 
    "peer-limit-global": 240, 
    "peer-limit-per-torrent": 60, 
    "peer-port": 51413, 
    "peer-port-random-high": 65535, 
    "peer-port-random-low": 49152, 
    "peer-port-random-on-start": false, 
    "peer-socket-tos": "default", 
    "pex-enabled": true, 
    "port-forwarding-enabled": true, 
    "preallocation": 1, 
    "prefetch-enabled": 1, 
    "proxy": "", 
    "proxy-auth-enabled": false, 
    "proxy-auth-password": "", 
    "proxy-auth-username": "", 
    "proxy-enabled": false, 
    "proxy-port": 80, 
    "proxy-type": 0, 
    "ratio-limit": 2, 
    "ratio-limit-enabled": false, 
    "rename-partial-files": true, 
    "rpc-authentication-required": false, 
    "rpc-bind-address": "0.0.0.0", 
    "rpc-enabled": true, 
    "rpc-password": "{103d500c409ec79ec0be4e0b5f0a3e753cea81a7B6KllAcJ", 
    "rpc-port": 9091, 
    "rpc-url": "/transmission/", 
    "rpc-username": "", 
    "rpc-whitelist": "127.0.0.1", 
    "rpc-whitelist-enabled": true, 
    "script-torrent-done-enabled": false, 
    "script-torrent-done-filename": "", 
    "speed-limit-down": 100, 
    "speed-limit-down-enabled": false, 
    "speed-limit-up": 100, 
    "speed-limit-up-enabled": false, 
    "start-added-torrents": true, 
    "trash-original-torrent-files": false, 
    "umask": 18, 
    "upload-slots-per-torrent": 14, 
    "utp-enabled": true
}

Code: Select all

root@NAS:~# apt-cache show transmission
Package: transmission
Priority: optional
Section: net
Installed-Size: 20
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Version: 2.33-0ubuntu0.10.04.1
Depends: transmission-gtk (>= 2.33-0ubuntu0.10.04.1) | transmission-qt (>= 2.33-0ubuntu0.10.04.1) | transmission-cli (>= 2.33-0ubuntu0.10.04.1), transmission-common (>= 2.33-0ubuntu0.10.04.1)
Filename: pool/main/t/transmission/transmission_2.33-0ubuntu0.10.04.1_all.deb
Size: 946
MD5sum: 8572d6a899424f6b68253f6e0b1a6274
SHA1: 8ebd9c35778116fad44eb0c659c24cfa30263064
Description: lightweight BitTorrent client
 Transmission is a set of lightweight BitTorrent clients (in GUI, CLI
 and daemon form). All its incarnations feature a very simple, intuitive
 interface on top on an efficient, cross-platform back-end.
 .
 This is just a metapackage depending on one of the front-end
 alternatives
Original-Maintainer: Leo Costela <costela@debian.org>

Package: transmission
Priority: optional
Section: universe/net
Installed-Size: 20
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Leo Costela <costela@debian.org>
Architecture: all
Version: 1.93-0ubuntu0.10.04.1
Replaces: clutch
Provides: clutch
Depends: transmission-cli (>= 1.93-0ubuntu0.10.04.1), transmission-gtk (>= 1.93-0ubuntu0.10.04.1), transmission-common (= 1.93-0ubuntu0.10.04.1)
Filename: pool/universe/t/transmission/transmission_1.93-0ubuntu0.10.04.1_all.deb
Size: 928
MD5sum: a817542e7b41979e667675aa88374c9e
SHA1: 9e80f2b6aae560f58d872fcbc2f0fbd3654f18f6
SHA256: 5259cba3e861a71f13363b4ab5bfadbdcddc2f21efaaea37c0fb61164d46d767
Description: lightweight BitTorrent client
 Transmission is a simple BitTorrent client. It features a very simple,
 intuitive interface (gui and command-line) on top on an efficient,
 cross-platform back-end.
 .
 This package installs both CLI and GUI versions of transmission.
Homepage: http://www.transmissionbt.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

Package: transmission
Priority: optional
Section: universe/net
Installed-Size: 20
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Leo Costela <costela@debian.org>
Architecture: all
Version: 1.92-0ubuntu2
Replaces: clutch
Provides: clutch
Depends: transmission-cli (>= 1.92-0ubuntu2), transmission-gtk (>= 1.92-0ubuntu2), transmission-common (= 1.92-0ubuntu2)
Filename: pool/universe/t/transmission/transmission_1.92-0ubuntu2_all.deb
Size: 918
MD5sum: 6992791c8bc14cf73ee924e022892146
SHA1: 88fc289127c6513f4f7cecf97028f7966fce7698
SHA256: 986254b10ea5abb3dd58084850b365d193a873d6e59ac45944e68c2c54fb6c82
Description: lightweight BitTorrent client
 Transmission is a simple BitTorrent client. It features a very simple,
 intuitive interface (gui and command-line) on top on an efficient,
 cross-platform back-end.
 .
 This package installs both CLI and GUI versions of transmission.
Homepage: http://www.transmissionbt.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

skin.at.home
Posts: 4
Joined: Fri Oct 21, 2011 3:54 pm

Re: Crash on ubuntu server

Post by skin.at.home »

Code: Select all

root@NAS:~# gdb transmission-daemon
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/transmission-daemon...(no debugging symbols found)...done.
(gdb) handle SIGPIPE nostop noprint nopass
Signal        Stop      Print   Pass to program Description
SIGPIPE       No        No      No              Broken pipe
(gdb) show args
Argument list to give program being debugged when it is started is "".
(gdb) set args --config-dir /home/config/transmission-daemon --no-auth
(gdb) show args
Argument list to give program being debugged when it is started is "--config-dir /home/config/transmission-daemon --no-auth".
(gdb) r
Starting program: /usr/bin/transmission-daemon --config-dir /home/config/transmission-daemon --no-auth
[Thread debugging using libthread_db enabled]

Program exited normally.
(gdb)
The daemon does not crash. I can not connect to the daemon client. Probably when you start the debugger is not using the settings.
skin.at.home
Posts: 4
Joined: Fri Oct 21, 2011 3:54 pm

Re: Crash on ubuntu server

Post by skin.at.home »

Attach works, but after the launch of a web interface can not join the demon. I can not be sure that the daemon runs as needed.

Code: Select all

(gdb) attach 16444
Attaching to program: /usr/bin/transmission-daemon, process 16444
Reading symbols from /lib/tls/i686/cmov/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /usr/lib/libevent-2.0.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libevent-2.0.so.5
Reading symbols from /usr/lib/libcurl-gnutls.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcurl-gnutls.so.4
Reading symbols from /lib/i686/cmov/libssl.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libssl.so.0.9.8
Reading symbols from /lib/i686/cmov/libcrypto.so.0.9.8...(no debugging symbols found)...done.
Loaded symbols for /lib/i686/cmov/libcrypto.so.0.9.8
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/tls/i686/cmov/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...(no debugging symbols found)...done.
[Thread debugging using libthread_db enabled]
[New Thread 0xb619cb70 (LWP 16448)]
[New Thread 0xb699db70 (LWP 16447)]
[New Thread 0xb719eb70 (LWP 16446)]
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libidn.so.11...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libidn.so.11
Reading symbols from /usr/lib/liblber-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/liblber-2.4.so.2
Reading symbols from /usr/lib/libldap_r-2.4.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libldap_r-2.4.so.2
Reading symbols from /usr/lib/libgssapi_krb5.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgssapi_krb5.so.2
Reading symbols from /usr/lib/libgnutls.so.26...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgnutls.so.26
Reading symbols from /lib/libgcrypt.so.11...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcrypt.so.11
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libresolv.so.2
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /usr/lib/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5.so.3
Reading symbols from /usr/lib/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libk5crypto.so.3
Reading symbols from /lib/libcom_err.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcom_err.so.2
Reading symbols from /usr/lib/libkrb5support.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libkrb5support.so.0
Reading symbols from /lib/libkeyutils.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libkeyutils.so.1
Reading symbols from /usr/lib/libtasn1.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libtasn1.so.3
Reading symbols from /lib/libgpg-error.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libgpg-error.so.0
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Reading symbols from /lib/libnss_mdns4_minimal.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_mdns4_minimal.so.2
Reading symbols from /lib/tls/i686/cmov/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_dns.so.2
0xb7868430 in __kernel_vsyscall ()
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) n
Program not restarted.
(gdb)
Jordan
Transmission Developer
Posts: 2312
Joined: Sat May 26, 2007 3:39 pm
Location: Titania's Room

Re: Crash on ubuntu server

Post by Jordan »

skin.at.home wrote:

Code: Select all

root@NAS:~# gdb transmission-daemon
GNU gdb (GDB) 7.1-ubuntu
(gdb) r
Starting program: /usr/bin/transmission-daemon --config-dir /home/config/transmission-daemon --no-auth
[Thread debugging using libthread_db enabled]

Program exited normally.
(gdb)
The daemon does not crash. I can not connect to the daemon client. Probably when you start the debugger is not using the settings.
The trick to running the daemon in gdb is that you want to run it in the foreground, so pass "-f" to transmission daemon:

(gdb) r -f
skin.at.home
Posts: 4
Joined: Fri Oct 21, 2011 3:54 pm

Re: Crash on ubuntu server

Post by skin.at.home »

It's magic. The demon stopped falling. Already day trying to get him to fall.

Code: Select all

(gdb) r -f
Does not work. Web interface to connect to the daemon, but does not show torrents.
nrwiersma
Posts: 2
Joined: Sun Nov 20, 2011 11:18 am

Re: Crash on ubuntu server

Post by nrwiersma »

Hi,

I am having the same problem. I am running Ubuntu Server 11.10 and Transmission 2.42 installed from the transmissionbt PPA. The crash happens randomly and I have no way of reproducing it. The error is get in syslog is:
media-server kernel: [64380.759876] transmission-da[2408]: segfault at 18 ip 00007fc3967f54b4 sp 00007fc392c51080 error 4 in libevent-2.0.so.5.1.1[7fc3967c3000+43000]

Will try running gdb and post results as I get them.

Thanks,
Nick
nrwiersma
Posts: 2
Joined: Sun Nov 20, 2011 11:18 am

Re: Crash on ubuntu server

Post by nrwiersma »

Hi,

I have opened a trac ticket like you suggested. It took me forever to finally get the crash through gdb. Here is the ticket with the attached gdb output:
http://trac.transmissionbt.com/ticket/4646

Thanks,
Nick
BorderBoetie
Posts: 11
Joined: Thu Mar 22, 2012 8:11 pm

Re: Crash on ubuntu server

Post by BorderBoetie »

Anyone have a work around?

How do I get it working on my PC?
Post Reply