Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152944 - net-p2p/bittorrent-4.26.0 core initialization failure
Summary: net-p2p/bittorrent-4.26.0 core initialization failure
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High critical (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-26 23:21 UTC by Andy Holmes
Modified: 2006-12-28 10:44 UTC (History)
2 users (show)

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 Andy Holmes 2006-10-26 23:21:34 UTC
When starting bittorrent an error dialog appears then eventually BitTorrent crashes. The error dialog reads:

"BitTorrent core initialization failed!"


Terminal output is:

>>> unable to setrlimit  not allowed to raise maximum limit
Exception in thread bittorrent:259 in ?: threading.Thread(target=init_core, args=(mainloop,)).start():
Traceback (most recent call last):
  File "/usr/bin/bittorrent", line 259, in ?
    threading.Thread(target=init_core, args=(mainloop,)).start()
  File "/usr/bin/bittorrent", line 211, in init_core
    init_torrents=False)
  File "/usr/lib64/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 167, in __init__
    self._restore_state(init_torrents)
  File "/usr/lib64/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 816, in _restore_state
    t = decode_line(line)
  File "/usr/lib64/python2.4/site-packages/BitTorrent/MultiTorrent.py", line 751, in decode_line
    t.working_path = t.working_path.decode('utf-8')
  File "/usr/lib64/python2.4/site-packages/BitTorrent/Torrent.py", line 256, in _set_working_path
    self.config['working_path'] = value
  File "/usr/lib64/python2.4/site-packages/BitTorrent/prefs.py", line 49, in __setitem__
    assert not isinstance(self._options[option], str) or \
AssertionError: 'working_path' is not str
non-daemon threads not shutting down in a timely fashion:
  <StackThread(disk_thread-1, started)>
  <StackThread(disk_thread-10, started)>
  <StackThread(disk_thread-2, started)>
  <StackThread(disk_thread-3, started)>
  <StackThread(disk_thread-4, started)>
  <StackThread(disk_thread-9, started)>
  <StackThread(disk_thread-5, started)>
  <StackThread(disk_thread-6, started)>
  <StackThread(disk_thread-7, started)>
  <StackThread(disk_thread-8, started)>
You have no chance to survive make your time.
Killed


emerge --info:

Portage 2.1.2_pre3-r9 (default-linux/amd64/2006.0, gcc-3.4.6, glibc-2.5-r0, 2.6.18-gentoo-r1 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r1 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Fri, 27 Oct 2006 00:50:01 +0000
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:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -fomit-frame-pointer -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/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=k8 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.gentoo.no/ http://ftp.romnet.org/gentoo/ http://gentoo.scphost.com"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac acpi alsa apache2 avahi berkdb bzip2 cairo cdr dbus dlloader dmi dri dvd dvdr dvdread eds elibc_glibc encode ffmpeg firefox flac gcc64 gif gnome gnutls gstreamer gtk gtk2 hal howl-compat input_devices_keyboard input_devices_mouse jpeg kernel_linux libnotify mad matroska mp3 mpeg mpm-worker msn nautilus ncurses nptl nptlonly ogg opengl pcre pdf physfs png python readline reiserfs samba sdl spell ssl startup-notification svg symlink tcpd theora threads totem truetype unicode usb userland_GNU userlocales vcd video_cards_nvidia vorbis xforms xml xorg xv xvid zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Andreas Westin 2006-10-27 11:26:56 UTC
I'm getting the same error on x86.
Comment 2 Jeremy Green 2006-10-27 16:51:52 UTC
The offending code starting at line 43 in /usr/lib/python2.4/site-packages/BitTorrent/prefs.py:

        if self._options.has_key(option):
            # The next two asserts are a short-term hack.  A more general 
            # solution is to associate allowed type(s) for each option, and 
            # then have the Preferences object enforce those types.  --Dave.
            assert not isinstance(self._options[option], unicode) or \
                isinstance(value, unicode), "'%s' is not unicode" % option
            assert not isinstance(self._options[option], str) or \
                isinstance(value, str), "'%s' is not str" % option

Note that the comment states this is a hack.  As a quick fix to get Bittorrent working, just commment it out thus: 

        #if self._options.has_key(option):
            ## The next two asserts are a short-term hack.  A more general 
            ## solution is to associate allowed type(s) for each option, and 
            ## then have the Preferences object enforce those types.  --Dave.
            #assert not isinstance(self._options[option], unicode) or \
            #    isinstance(value, unicode), "'%s' is not unicode" % option
            #assert not isinstance(self._options[option], str) or \
            #    isinstance(value, str), "'%s' is not str" % option
Comment 3 Priit Laes (IRC: plaes) 2006-10-28 03:25:03 UTC
I'm getting this problems on stable x86:
with bittorrent-curses:
>>> unable to setrlimit  not allowed to raise maximum limit
Traceback (most recent call last):
  File "/usr/bin/bittorrent-curses", line 45, in ?
    from BitTorrent.RawServer_twisted import RawServer, task
ImportError: cannot import name task

and launchmany-curses:

>>> unable to setrlimit  not allowed to raise maximum limit
Traceback (most recent call last):
  File "/usr/bin/launchmany-curses", line 318, in ?
    config['torrent_dir'] = \
AttributeError: 'module' object has no attribute 'decode_from_filesystem'


Portage 2.1.1 (default-linux/x86/no-nptl/2.4, gcc-3.4.6, glibc-2.3.6-r4, 2.4.25 i686)
=================================================================
System uname: 2.4.25 i686 Celeron (Coppermine)
Gentoo Base System version 1.12.5
Last Sync: Wed, 25 Oct 2006 09:00:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 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.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -fforce-addr"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.linux.ee/pub/gentoo/distfiles/ ftp://ftp.linux.ee/pub/gentoo/distfiles/ http://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.uninett.no/pub/linux/Gentoo"
LANG="et_EE.utf-8"
LINGUAS=""
MAKEOPTS="-j2"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 apache2 apm berkdb bitmap-fonts bzip2 cli cracklib crypt curl dlloader dri eds elibc_glibc emboss encode ethereal exif expat foomaticdb ftp gd gdbm gif gmp gstreamer gtk2 hardened idn imap imlib innodb input_devices_keyboard input_devices_mouse isdnlog jpeg kernel_linux libg++ libwww logrotate mad maildir mcal memlimit mikmod milter mmx motif mp3 mysql ncurses no-htdocs ogg oss pam pcre pdflib perl php pic png postfix pppd python quicktime readline reflection sasl session snmp spamassassin spl sse ssl tcpd tiff truetype truetype-fonts type1-fonts unicode userland_GNU vhosts video_cards_apm video_cards_ark video_cards_ati video_cards_chips video_cards_cirrus video_cards_cyrix video_cards_dummy video_cards_fbdev video_cards_glint video_cards_i128 video_cards_i740 video_cards_i810 video_cards_imstt video_cards_mga video_cards_neomagic video_cards_nsc video_cards_nv video_cards_rendition video_cards_s3 video_cards_s3virge video_cards_savage video_cards_siliconmotion video_cards_sis video_cards_sisusb video_cards_tdfx video_cards_tga video_cards_trident video_cards_tseng video_cards_v4l video_cards_vesa video_cards_vga video_cards_via video_cards_vmware video_cards_voodoo vorbis webdav xml xml2 xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLA
Comment 4 Scott M. Likens 2006-10-28 11:28:13 UTC
I had the same problem until I did a rm -rf .bittorrent*

Seemed to work, sadly thought it does not seem to honor my upstream limit.  I set it to 30k/s and it's pushing 70k/s :(

Comment 5 SpanKY gentoo-dev 2006-10-30 16:44:20 UTC
> I'm getting this problems on stable x86:
> with bittorrent-curses:

this is unrelated to original bug report ... ive filed a new one: Bug 153482
Comment 6 Loïc Ludwig 2006-12-09 07:46:46 UTC
According to mainstream, and from what I saw, this bug is fixed in release 5.0.3
Comment 7 SpanKY gentoo-dev 2006-12-28 10:44:59 UTC
fixed with 5.0.3 now in portage