<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>155679</bug_id>
          
          <creation_ts>2006-11-19 07:13 0000</creation_ts>
          <short_desc>-fforce-addr breaks net-p2p/rtorrent</short_desc>
          <delta_ts>2006-11-20 01:41:54 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>2006.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>help@imtrappedininter.net</reporter>
          <assigned_to>x86@gentoo.org</assigned_to>
          <cc>flameeyes@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>help@imtrappedininter.net</who>
            <bug_when>2006-11-19 07:13:06 0000</bug_when>
            <thetext>Both x86 and ~x86 versions (i think all versions) segfaults after minute of running with this output:
Caught Segmentation fault, dumping stack:
0 rtorrent [0x8058364]
1 rtorrent [0x8071437]
2 [0xb7efc420]
3 /usr/lib/libtorrent.so.9(_ZN7torrent11RequestList9has_indexEj+0x32) [0xb7e741d2]
4 /usr/lib/libtorrent.so.9(_ZN7torrent19PeerConnectionLeech22receive_finished_chunkEi+0x50) [0xb7e6cc90]
5 /usr/lib/libtorrent.so.9(_ZN7torrent14ConnectionList19send_finished_chunkEj+0x5a) [0xb7e4ae2a]
6 /usr/lib/libtorrent.so.9(_ZN7torrent15DownloadWrapper17receive_hash_doneENS_11ChunkHandleEPKc+0x413) [0xb7e5b193]
7 /usr/lib/libtorrent.so.9(_ZN7torrent9HashQueue5checkEb+0x10a) [0xb7e3f84a]
8 /usr/lib/libtorrent.so.9(_ZN7torrent9HashQueue4workEv+0x49) [0xb7e3fa29]
9 /usr/lib/libtorrent.so.9 [0xb7e403bd]
10 /usr/lib/libtorrent.so.9(_ZN7torrent7performEv+0xfc) [0xb7e2ee3c]
11 rtorrent [0x80bc06e]
12 rtorrent [0x805a2f5]
13 /lib/libc.so.6(__libc_start_main+0xd8) [0xb79d2878]
14 rtorrent(_ZN7torrent18set_max_open_filesEj+0x89) [0x8050b31]
Filtering -fforce-addr in libtorrent and rtorrent helps (at least with ~x86 version).
emerge --info:
Portage 2.1.1-r1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18 i686)
=================================================================
System uname: 2.6.18 i686 Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 15 Nov 2006 21:30:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CBUILD=&quot;i686-pc-linux-gnu&quot;
CFLAGS=&quot;-O2 -march=pentium-m -msse3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/share/X11/xkb /var/bind&quot;
CONFIG_PROTECT_MASK=&quot;/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo&quot;
CXXFLAGS=&quot;-O2 -march=pentium-m -msse3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -pipe&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoconfig buildpkg ccache distlocks fixpackages parallel-fetch sandbox sfperms strict&quot;
GENTOO_MIRRORS=&quot;ftp://ftp.corbina.net/pub/Linux/gentoo ftp://mirror.aiya.ru/pub/gentoo/ ftp://ftp.chg.ru/pub/Linux/distributions/gentoo/&quot;
MAKEOPTS=&quot;-j3&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_RSYNC_OPTS=&quot;--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=&apos;/distfiles&apos; --exclude=&apos;/local&apos; --exclude=&apos;/packages&apos;&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.gentoo.org/gentoo-portage/&quot;
USE=&quot;x86 X adns alsa apache2 bash-completion berkdb bzip2 cdparanoia crypt cups dri dvd dvdr elibc_glibc encode expat fbcon flac foomaticdb ftp gdbm gif gpm gtk idn imap input_devices_keyboard input_devices_mouse ipv6 jpeg kernel_linux milter mmx mp3 mpeg mysql ncurses nls nptl nsplugin offensive ogg opengl pam pcre perl php pic png ppds python quicktime readline ruby sasl slang speex spell sse sse2 ssl svg tcpd threads tiff truetype unicode usb userland_GNU video_cards_i810 vorbis win32codecs xml xpm xvid zlib&quot;
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>flameeyes@gentoo.org</who>
            <bug_when>2006-11-19 07:43:07 0000</bug_when>
            <thetext>x86 team, feel free to filter it out if you consider this flag supported.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>fauli@gentoo.org</who>
            <bug_when>2006-11-20 01:41:54 0000</bug_when>
            <thetext>Filtered that in the latest testing version (0.10.4 and 0.6.4)</thetext>
          </long_desc>
      
    </bug>

</bugzilla>