Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177345 - net-p2p/rtorrentt segfault
Summary: net-p2p/rtorrentt segfault
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Timothy Redaelli (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-06 16:27 UTC by Andreas Eriksson
Modified: 2008-07-05 15:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Eriksson 2007-05-06 16:27:40 UTC
rtorrent seems to segfault with curl 7.15.5
upgrading to curl 7.16 seems to fix it, but 7.16 is masked in portage for some reason. I'm running ~amd64.

Here is the upstream bug report:
http://libtorrent.rakshasa.no/ticket/906

Here is the error rtorrent gives when it segfaults:

Caught Segmentation fault, dumping stack:
0 rtorrent [0x411943]
1 rtorrent [0x41318e]
2 rtorrent [0x425b76]
3 /lib/libc.so.6 [0x2b77b7b395f0]
4 /usr/lib/libcurl.so.3(curl_multi_perform+0x4c) [0x2b77b6ad7c89]
5 rtorrent [0x4688ac]
6 rtorrent [0x45fa47]
7 rtorrent [0x412fec]
8 /lib/libc.so.6(__libc_start_main+0xf4) [0x2b77b7b26374]
9 rtorrent(_ZNK7torrent8Download13creation_dateEv+0xd1) [0x40c4f9]
Aborted (SIGABRT)

Here is the backtrace:
#0  curl_multi_perform (multi_handle=<value optimized out>, running_handles=0x7fffcb16729c) at multi.c:957
#1  0x00000000004688ac in core::CurlStack::perform (this=0x5bf560) at curl_stack.cc:74
#2  0x000000000045fa47 in core::PollManagerEPoll::poll (this=0x5bf550, timeout={m_time = 1000}) at poll_manager_epoll.cc:92
#3  0x0000000000412fec in main (argc=1, argv=0x7fffcb1675a8) at main.cc:265
Comment 1 Andreas Eriksson 2007-05-06 16:35:57 UTC
I take that back, it still segfaulted with latest libcurl. I also tried 7.16.3-pre20070418 and it segfaulted with that too. It just took longer until it segfaulted for some reason.
Comment 2 ebfe 2007-05-06 17:49:35 UTC
emerge --info please
Comment 3 Andreas Eriksson 2007-05-06 18:00:39 UTC
Here ya go.

Portage 2.1.2.6 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.5-r2, 2.6.21-ck-tpc1 x86_64)
=================================================================
System uname: 2.6.21-ck-tpc1 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+
Gentoo Base System release 1.12.10
Timestamp of tree: Sun, 06 May 2007 07:50:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.32
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/terminfo"
CXXFLAGS="-march=k8 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ds.thn.htu.se/linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="sv_SE.UTF-8"
LC_ALL="sv_SE.UTF-8"
LINGUAS="sv sv_SE"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://193.10.192.105/gentoo-portage"
USE="3dnow 3dnowext X a52 aac alsa amd64 ares bash-completion berkdb bzip2 cairo cddb cdparanoia cracklib crypt curl dri ds2490 dv dvd dvdnav dvdread dynamic encode fam flac ftp gdbm gif gimp glibc-omitfp glitz gs hpn idn iontruetype ithreads java jpeg jpeg2k kdeenablefinal kdehiddenvisibility lcms libwww live lua mad midi mmap mmx mmxext mp2 mp3 mpeg mysql ncurses network-cron nls no-old-linux noflagstrip nptl nptlonly ntpl ntplonly offensive ogg opengl pam pcre pdf perl png pnm python quicktime rar readline rtc sdl smp speex spell sqlite sse sse2 ssl svg theora threads tiff truetype unicode usb v4l2 vim-syntax vim-with-x vorbis x264 xanim xml xorg xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="sv sv_SE" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 4 Timothy Redaelli (RETIRED) gentoo-dev 2007-05-06 20:51:17 UTC
Which version of rtorrent?
Comment 5 Andreas Eriksson 2007-05-06 21:29:49 UTC
rtorrent 0.7.4, libtorrent 0.11.4.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2008-02-08 16:01:05 UTC
Stale bug; if you have issues with 0.7.9, then please reopen.
Comment 7 Wim Muskee 2008-07-05 15:31:11 UTC
Tested rtorrent-0.7.9 and libtorrent-0.11.9 with curl-7.16.4 and curl-7.17.1. Installed like a charm.

On the following configuration (only relevant info from emerge --info):

Portage 2.1.4.4 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.23-gentoo-r9 i686)
=================================================================
System uname: 2.6.23-gentoo-r9 i686 Intel(R) Pentium(R) M processor 1400MHz
Timestamp of tree: Sat, 05 Jul 2008 11:00:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer"
MAKEOPTS="-j2"
USE="gnutls ipv6 ldap ssl -ares -debug -idn -kerberos -nss -tes -xmlrpc"