Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 408067 - =net-p2p/transmission-2.50-r1 crashes with segmentation fault
Summary: =net-p2p/transmission-2.50-r1 crashes with segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Peter Volkov (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-13 19:04 UTC by Elijah "Armageddon" El Lazkani (amd64 AT)
Modified: 2012-04-08 19:47 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
strace log (strace.log,611.87 KB, text/plain)
2012-03-13 19:04 UTC, Elijah "Armageddon" El Lazkani (amd64 AT)
Details
backtrace (backtrace.log,1.82 KB, text/plain)
2012-03-13 19:35 UTC, Elijah "Armageddon" El Lazkani (amd64 AT)
Details
backtrace (backtrace.log,3.61 KB, text/plain)
2012-03-16 03:31 UTC, Elijah "Armageddon" El Lazkani (amd64 AT)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Elijah "Armageddon" El Lazkani (amd64 AT) 2012-03-13 19:04:50 UTC
Created attachment 305243 [details]
strace log

Portage 2.1.10.44 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.13-r4, 3.2.1-gentoo-r2-Armageddon x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.1-gentoo-r2-Armageddon-x86_64-AMD_Turion-tm-_X2_Ultra_Dual-Core_Mobile_ZM-82-with-gentoo-2.0.3
Timestamp of tree: Tue, 13 Mar 2012 17:00:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo vmware zugaina sabayon x-portage
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en fr ar"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /var/lib/layman/zugaina /var/lib/layman/sabayon /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apng bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gdu gif gpm gstreamer gtk iconv ipv6 jpeg jpeg2k lame lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf png policykit ppds pppd pulseaudio qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb vorbis x264 xcb xft xinerama xml xorg xulrunner xv xvid zlib zsh-completion" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev synaptics keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr ar" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

net-p2p/transmission-2.50-r1 was built with the following:
USE="gtk (multilib) qt4 (-ayatana) -lightweight -xfs" LINGUAS="en -es -kk -lt -pt_BR -ru"
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2012-03-13 19:11:58 UTC
We need complete gdb backtrace with debugging symbols enabled[1] in transmission itself, and all of it's reverse dependencies.

[1] http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 2 Elijah "Armageddon" El Lazkani (amd64 AT) 2012-03-13 19:35:58 UTC
Created attachment 305251 [details]
backtrace

is this what you're looking for ?
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2012-03-13 19:59:07 UTC
Looking better but still need to increase verbosity. Throwing some ideas,

USE="debug" for dev-libs/glib

http://developer.gnome.org/glib/2.30/glib-running.html
http://trac.transmissionbt.com/wiki/EnvironmentVariables

export TR_DEBUG_FD=2
export G_DEBUG=fatal_warnings

gdb transmission
run
thread all apply bt

And those ?? usually indicate you've missed one or two dependencies of transmission and they are missing the debugging symbols.
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2012-03-13 20:10:47 UTC
Be sure to compile dev-libs/glib and gnome-base/gvfs as instructed by the gentoo backtrace guide. Without stripping and with debugging symbols, as in FEATURES="nostrip" and CFLAGS="-ggdb".
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2012-03-13 20:12:34 UTC
(In reply to comment #4)
> Be sure to compile dev-libs/glib and gnome-base/gvfs as instructed by the
> gentoo backtrace guide. Without stripping and with debugging symbols, as in
> FEATURES="nostrip" and CFLAGS="-ggdb".

And of course same for transmission itself. Same for CXXFLAGS and -ggdb since transmission has C++ pieces.
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-03-15 07:48:02 UTC
OK, reopen with more verbose backtrace showing the line numbers of the crash. Thank you
Comment 7 Elijah "Armageddon" El Lazkani (amd64 AT) 2012-03-16 03:31:26 UTC
Created attachment 305571 [details]
backtrace

alright, I did all that. This is what I got so far...
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-03-16 03:50:50 UTC
#3  0x0000000000433c9e in gtr_torrent_options_dialog_new (parent=0x810df0, 
    core=0x74a820, ctor=0xa40100) at open-dialog.c:284

    if( tr_ctorGetDownloadDir( ctor, TR_FORCE, &str ) )
        g_assert_not_reached( );

hmm, it's crashing while trying to determine download directory(?)

does transmission also crash for a new user? 
or alternatively can you try removing ~/.config/transmission and ~/.cache/transmission out of the way?
make sure to check also directory permissions inside your homedir, like for Downloads/ so that they are not owned by root and not writable by user
same for /tmp which should be 1777
Comment 9 Elijah "Armageddon" El Lazkani (amd64 AT) 2012-03-16 04:10:53 UTC
(In reply to comment #8) 
> hmm, it's crashing while trying to determine download directory(?)

Actually it crashes when I add links, it adds the torrent file successfully then when you start it crashes, if it works when you start it and you try to edit the settings it crashes.

> does transmission also crash for a new user? 
> or alternatively can you try removing ~/.config/transmission and
> ~/.cache/transmission out of the way?
> make sure to check also directory permissions inside your homedir, like for
> Downloads/ so that they are not owned by root and not writable by user
> same for /tmp which should be 1777

tried all this and it still crashed.

I forgot to mention that transmission-qt works perfectly with no problems at all...
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2012-03-16 05:46:43 UTC
Reported this to:

http://trac.transmissionbt.com

Ticket number:

#5959

It's waiting for moderation.
Comment 11 Sławomir Nizio 2012-04-07 20:31:49 UTC
Maybe it's this? https://trac.transmissionbt.com/ticket/4573
Comment 13 Elijah "Armageddon" El Lazkani (amd64 AT) 2012-04-08 19:47:11 UTC
I retested the =net-p2p/transmission-2.50-r2 and it works great.