Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Deluge segfaults with python2.7
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
piejagr
n00b
n00b


Joined: 28 Jan 2008
Posts: 35
Location: Oborniki, Poland

PostPosted: Mon Nov 14, 2011 8:01 pm    Post subject: [SOLVED] Deluge segfaults with python2.7 Reply with quote

Hi

I just migrated back to gentoo after using for long time ubuntu distro. However I couldn't solve one problem which is affecting my box from the succesfull emerge of gnome3.2 and other programs. I just need a good torrent client and my favorite is deluge.

However when I try to run it I get a segfault. I was trying to debug and reemerged all python packages with the "nostrip" feature and gddb CFLAG but still I cannot find where the problem lies.

dmesg says:
Code:
[81305.610417] deluge[10235]: segfault at 1c1e6 ip 000000000001c1e6 sp 00007fffade3bab8 error 14 in python2.7[400000+1000]


output from emerge --info
Code:
Portage 2.1.10.34 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.3, glibc-2.13-r4, 3.1.0-gentoo x86_64)
=================================================================
System uname: Linux-3.1.0-gentoo-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_5000+-with-gentoo-2.1
Timestamp of tree: Mon, 14 Nov 2011 16:15:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.2.2
dev-util/cmake:           2.8.6-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo mozilla gnome
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://gentoo.mirror.pw.edu.pl/"
LANG="pl_PL.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en pl"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mozilla /var/lib/layman/gnome"
SYNC="rsync://rsync6.pl.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acl acpi alsa amd64 banshee bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt cups cvs cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam fat ffmpeg firefox flac fortran fuse gcj gdbm gdu gif git gnome gnome-keyring gpm gstreamer gtk gtk3 iconv introspection ipv6 java jpeg lame lcms ldap libffi libnotify lm_sensors mad mms mmx mmxext mng modules mono mp3 mp4 mpeg mudflap multilib musepack nautilus ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python python3 qt3support qt4 quicktime raw readline sdl session socialweb spell sqlite sse sse2 ssl ssse3 startup-notification subversion svg sysfs taglib tcpd theora tiff truetype udev unicode upnp usb v4l vala vcd vorbis wavpack webgl wifi wmf x264 xcb xml xorg xulrunner xv xvid 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 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en pl" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I tried all deluge version available in portage, I downgraded python2.7 from python-2.7.2-r3 to python-2.7.1.

gdb isn't getting me anywhere
Code:
GNU gdb (Gentoo 7.3.1 p1) 7.3.1
Copyright (C) 2011 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 "x86_64-pc-linux-gnu".
For bug reporting instructions, please see:
<http://bugs.gentoo.org/>...
Reading symbols from /usr/bin/python2.7...done.
(gdb) run
Starting program: /usr/bin/python2.7 /usr/bin/deluge
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
0x000000000001c1e6 in ?? ()
(gdb)


I would appreciate any suggestion (any package to merge with nostrip option to get better gdb results)?


Last edited by piejagr on Tue Nov 15, 2011 11:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
franzf
Advocate
Advocate


Joined: 29 Mar 2005
Posts: 4547

PostPosted: Tue Nov 15, 2011 8:54 am    Post subject: Reply with quote

Did you get python-updates and forgot to run python-updater?
Back to top
View user's profile Send private message
piejagr
n00b
n00b


Joined: 28 Jan 2008
Posts: 35
Location: Oborniki, Poland

PostPosted: Tue Nov 15, 2011 7:16 pm    Post subject: Reply with quote

That was the first thing that I done. Every time I run the python-updater when I was trying each of the 2.7 version from portage.
Back to top
View user's profile Send private message
piejagr
n00b
n00b


Joined: 28 Jan 2008
Posts: 35
Location: Oborniki, Poland

PostPosted: Tue Nov 15, 2011 11:35 pm    Post subject: Reply with quote

Ok, I found the solution.

I selected the python2.7 in eselect python (I had previously selected 3.2 as default) and run python-updater. It has reemerged dev-libs/boost against the python2.7 and then I reemerged again deluge and it is working without a problem now. No segfaults.[/quote]
Back to top
View user's profile Send private message
Arctic
Apprentice
Apprentice


Joined: 04 Jul 2011
Posts: 207

PostPosted: Sun May 13, 2012 12:58 am    Post subject: Reply with quote

piejagr wrote:
Ok, I found the solution.

I selected the python2.7 in eselect python (I had previously selected 3.2 as default) and run python-updater. It has reemerged dev-libs/boost against the python2.7 and then I reemerged again deluge and it is working without a problem now. No segfaults.
[/quote]

The solution works but you dont need to run python-updater ,only compile setting old python and when finally you can set the newest again.I dont know why deluge develpers dont fix it , its something that they can skip much time.
_________________
ln -s /user/artic /user/arctic
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum