When I run nicotine (soulseek p2p client) it crashes randomly. It doesn't depend on any desktop environment or programs running. * net-p2p/nicotine Latest version available: 1.0.8_rc1 Latest version installed: 1.0.8_rc1 Size of downloaded files: 298 kB Homepage: http://thegraveyard.org/nicotine/ Description: Soulseek client written in Python License: GPL-2 * sys-libs/glibc Latest version available: 2.3.4.20041102 Latest version installed: 2.3.4.20041102 Size of downloaded files: 17,128 kB Homepage: http://sources.redhat.com/glibc/ Description: GNU libc6 (also called glibc2) C library License: LGPL-2 * dev-lang/python Latest version available: 2.3.4 Latest version installed: 2.3.4 Size of downloaded files: 7,020 kB Homepage: http://www.python.org/ Description: A really great language License: PSF-2.2 Reproducible: Always Steps to Reproduce: 1. run nicotine 2. do something or just wait 3. it crashes Actual Results: subzero@powerpuff ~ $ nicotine Nicotine supports "psyco", an inline optimizer for python code, you can get it at http://sourceforge.net/projects/psyco/ Nicotine supports a country code blocker but that requires a (GPL'ed) library called GeoIP. You can find it here: C library: http://www.maxmind.com/app/c Python bindings: http://www.maxmind.com/app/python (the python bindings require the C library) /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:269: DeprecationWarning: use gtk.ComboBoxEntry self.combo1 = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/settings_glade.py:41: DeprecationWarning: use gtk.ComboBoxEntry self.Server = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/settings_glade.py:125: DeprecationWarning: use gtk.ComboBoxEntry self.Encoding = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/settings_glade.py:1194: DeprecationWarning: use gtk.ComboBoxEntry self.DecimalSep = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:768: DeprecationWarning: use gtk.ComboBox self.Encoding = gtk.OptionMenu() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:979: DeprecationWarning: use gtk.ComboBoxEntry self.FilterIn = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:998: DeprecationWarning: use gtk.ComboBoxEntry self.FilterOut = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:1017: DeprecationWarning: use gtk.ComboBoxEntry self.FilterSize = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:1037: DeprecationWarning: use gtk.ComboBoxEntry self.FilterBitrate = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:1057: DeprecationWarning: use gtk.ComboBoxEntry self.FilterCountry = gtk.Combo() *** glibc detected *** double free or corruption (!prev): 0x08555cf8 *** Killed Portage 2.0.51-r13 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.7-gentoo-r14 i686) ================================================================= System uname: 2.6.7-gentoo-r14 i686 AMD Duron(tm) Gentoo Base System version 1.6.8 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Jun 23 2004, 09:28:23)] dev-lang/python: 2.2.3-r5, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.4.22 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=i686 -pipe" CHOST="i586-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/home/subzero/devel/ebuild" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dfx 3dnow X aalib alsa apm arts artswrappersuid audiofile avi berkdb bitmap-fonts cdparanoia cdr crypt cups curl divx4linux dmx dvd dvdr dvdread encode f77 fam flac font-server foomaticdb fortran gdbm gif gimp-print gpm gtk2 imagemagick imlib ipv6 jack jack-tmpfs java jikes jpeg jpeg2k kde lcms libg++ libwww mad matroska matrox mikmod mmx mmx2 mng motif mozdevelop mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mysql ncurses nlsoggvorbis opengl oss pam pdflib perl png prelink python qt quicktime readline real sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff truetypetruetype-fonts type1-fonts wmf x86 xine xml xml2 xv zlib linguas_cs" Unset: LDFLAGS
Same here, *only* after adding shares on a seperate ext3 drive. Using pysoulseek also generates the same outcome, with an *almost* identical error message mark@bolsh ~ $ nicotine Nicotine supports "psyco", an inline optimizer for python code, you can get it at http://sourceforge.net/projects/psyco/ /usr/lib/python2.3/site-packages/pynicotine/gtkgui/nicotine_glade.py:269: DeprecationWarning: use gtk.ComboBoxEntry self.combo1 = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/settings_glade.py:41: DeprecationWarning: use gtk.ComboBoxEntry self.Server = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/settings_glade.py:125: DeprecationWarning: use gtk.ComboBoxEntry self.Encoding = gtk.Combo() /usr/lib/python2.3/site-packages/pynicotine/gtkgui/settings_glade.py:1194: DeprecationWarning: use gtk.ComboBoxEntry self.DecimalSep = gtk.Combo() *** glibc detected *** double free or corruption (out): 0xb6201a60 *** Aborted mark@bolsh ~ $ mark@bolsh ~ $ pyslsk *** glibc detected *** double free or corruption (!prev): 0x08685d60 *** Aborted * net-p2p/nicotine Latest version available: 1.0.8_rc1 Latest version installed: 1.0.8_rc1 Size of downloaded files: 298 kB Homepage: http://thegraveyard.org/nicotine/ Description: Soulseek client written in Python License: GPL-2 * net-p2p/pysoulseek Latest version available: 1.2.5 Latest version installed: 1.2.5 Size of downloaded files: 96 kB Homepage: http://www.sensi.org/~ak/pyslsk/... Description: client for SoulSeek filesharing License: GPL-2 * sys-libs/glibc Latest version available: 2.3.4.20041102 Latest version installed: 2.3.4.20041102 Size of downloaded files: 17,128 kB Homepage: http://sources.redhat.com/glibc/ Description: GNU libc6 (also called glibc2) C library License: LGPL-2 * sys-devel/gcc Latest version available: 3.4.3.20050110 Latest version installed: 3.4.3.20050110 Size of downloaded files: 28,693 kB Homepage: http://www.gnu.org/software/gcc/gcc.html Description: The GNU Compiler Collection........... License: GPL-2 LGPL-2.1 * dev-lang/python Latest version available: 2.3.4 Latest version installed: 2.3.4 Size of downloaded files: 7,020 kB Homepage: http://www.python.org/ Description: A really great language License: PSF-2.2 ***emerge info*** Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Feb 4 2005, 01:14:48)] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X aac aalib alsa apm avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups divx4linux dvd dvdr eds encode esd f77 fam flac font-server foomaticdb fortran gdbm gif gimpprint gnome gpm gstreamer gtk gtk2 hal hpijs imagemagick imlib java jpeg junit libg++ libwww mad matroska mikmod mmx mng motif mozilla mpeg ncurses nls nptl nptlonly nvidia offensive oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline real rtc samba sdl spell sse ssl svg svga tcpd tiff truetype truetype-fonts type1-fonts webmin-minimal xml2 xmms xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
I got the same errors/problems. The problem appears if there is at least one share/download directory in another drive/partition, at least for the test I did. Do you all got at least one share in another partition?
I've got all in one partition (everything is on /dev/hda3 here) in /home/share dir (reiserfs)
Yes, it is true, I have more than one share on a seperate partition. I had tried upgrading both glibc and python to the latest versions, to no avail. Searching the gentoo forums however, I found this, which temporarily fixes it for me... http://forums.gentoo.org/viewtopic-t-296258-highlight-nicotine+corruption.html [quote] try [code] export MALLOC_CHECK_=0 [/code] before executing nicotine. it did the trick for me. i know that it is only temporary fix but it works. P.S. more info here: http://forums.gentoo.org/viewtopic-p-1789105.html#1789105 [/quote]
yep. the malloc check hack removes "double free or corruption". Now we need something systematic ;) Nicotine fails again but it's another question why
I completely agree with the latest subik message.
I am getting this issue with other programs too, such as xmms. You can also remerge gblic with the "nomalloccheck" USE flag.
Created attachment 53249 [details] Ebuild of nicotine-1.0.8+unofficial patch. This is an ebuild that downloads Nicotine 1.0.8 (yes, I know is the same as 1.0.8rc1) and applies an unofficial patch, this appears to solve the problems for me at least. If still does not work, please notify here.
after applying all of points mentioned above (export MALOC_BLAH_ and new ebuild), nicotine crash for absolutely new bug ;) so this (subject) bug is imho fixed and we have new one now: Unhandled exception in thread started by Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/pynicotine/pynicotine.py", line 305, in RescanShares files, streams, wordindex, fileindex, mtimes = utils.rescandirs(msg.shared,self.config.sections["transfers"]["sharedmtimes"],self.config.sections["transfers"]["sharedfiles"],self.config.sections["transfers"]["sharedfilesstreams"],msg.yieldfunction) File "/usr/lib/python2.3/site-packages/pynicotine/utils.py", line 62, in rescandirs newsharedfiles = getFilesList(newmtimes, sharedmtimes, sharedfiles,yieldfunction) File "/usr/lib/python2.3/site-packages/pynicotine/utils.py", line 123, in getFilesList list[i].append(getFileInfo(f,pathname)) MemoryError Zabit (SIGKILL)
Do you need to do the export and then, in the same console window, run nicotine. Please note the patch added is NOT for resolve this bug specifically. It simply improves some things of nicotine, and this also. Just a question, do you had nicotine to check the files every time you start it? Thanks.
> Do you need to do the export and then, in the same console window, run nicotine. sure. I do it this way. > Just a question, do you had nicotine to check the files every time you start it? yes. (if you mean "rescan shares")
>> Just a question, do you had nicotine to check the files every time you start it? >yes. (if you mean "rescan shares") Yes, sorry, didn't remeber the name. Can you edit the config file of nicotine using a text editor (it's located on .nicotine/config) and change rescanonstartup = True to rescanonstartup = False and start it? It gives you the same result?
it's working without shares rescanning...
As I expected. I really don't know where the problem it's, but as a temporary fix, we can use this. You can try scanning shares from nicotine, it will proabyly crash, restart it, and enable scan shares and try again. I did this and worked, but not sure if this is going to work for you.
Created attachment 54283 [details] Just a small fix in the ebuild because it tries to unpack the .patch.
Created attachment 54284 [details, diff] Patch against current ebuild in portage for developer reference.
Im having this problem in 1.0.7 as well as 1.0.8, could it be lib/dependancy problem or so ??
I have this problem both in nicotine and pyslsk (I installed pyslsk cause i need soulseek and nicotine doesn't work), maybe it's problem with linux soulseek client and some libraries in gentoo (as far as i know other distros haven't got this problem, have them?).
I have this problem too. Any ideas?
Code: export MALLOC_CHECK_=0 works for me fine...
Same problem here. When I hit Rescan button, the application crashes after about 1-2 seconds. Setting MALLOC_CHECK_ to 0 doesn't help, either.
Has anyone tried to reproduce this bug with python-2.4?
I'm using 2.4.1 and the ebuild and patches in this ebuild and I have not problems. (Glibc 2.3.5) Perhaps people can try this. I still got the MALLOCK_CHECK_ set to 0 although I've not tried to change it to see if works.
Can you please try without the MALLOCK_CHECK hack and ebuild patch.
Tried with the patch applied but with MALLOC_CHECK_ unsetted fails. The message is the same as reported here: *** glibc detected *** double free or corruption (!prev): 0x08cb3c98 *** So, I think problem is with glibc. Glibc: 2.3.5-r1 Python: 2.4.1-r1
Please include the output of `emerge info`
Sure, here it is: Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.4.31-gentoo-r1 i686) ================================================================= System uname: 2.4.31-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.50GHz Gentoo Base System version 1.12.0_pre5 dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.11 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.4.22-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="es_ES@euro" LC_ALL="es_ES@euro" LINGUAS="es" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib adns aim alsa apache2 apm arts artswrappersuid atk avi bash-completion berkdb bindinst bitmap-fonts bmp cairo cdda cddb cdparanoia cdr cjk cle266 cpdflib crypt cups curl dba dedicated dga directfb divx4linux doc dvb dvd editor eds emboss encode esd estraier exif faad fam fbcon ffmpeg firefox flac font-server foomaticdb fortran freetts freetype gcc-libffi gcj gd gdbm geoip gg ggi gif glitz gnome gnustep gphoto2 gpm gstreamer gtk gtk2 guile httpd icq imagemagick imlib insecure-savers intl irc jabber java javascript joystick jpeg junit kde ldap libcaca libdsk libg++ libwww lirc live lj lzo lzw mad matroska mbrola mikmod mmx mmx2 mng mod motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mpeg msn mysql ncurses nls nsplugin objc ode offensive ogg oggvorbis old-eq opengl oss pam pdflib perl png ppds python qt quicktime readline real rss ruby samba scanner screen sdl server silc slang softmmu speex spell sse sse2 ssl stream subversion svg svga symlink tcltk tcpd tetex theora tiff tools truetype truetype-fonts type1-fonts usb vcd vidix vlm vorbis webcam win32codecs wxwindows xchatdccserver xchattext xine xinerama xml xml2 xmms xosd xv xvid xvmc yafray yahoo zlib video_cards_radeon linguas_es userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS By the way, I forgot to mention that nicotine does not fail until it scans files, approximately at the middle of the scan. I've noted it fails with some files are not properly codified (the name of the file. He thinks some characters are UTF-8 or something).
I have the same problem, I found that (for me) the problem is triggered when rescanning, on OGG Vorbis files, unmerging pyvorbis "fix" the problem.
I can confirm that unmerging pyvorbis fixes the problem. Thanks Pierre.
Created attachment 67577 [details, diff] pyvorbisfile.c.patch This patch attempts to fix the glibc error caused by pyvorbis (only 1.4 is affected). To try it, download the patch to your home dir and run the following commands: cd /usr/portage/dev-python/pyvorbis/ ebuild pyvorbis-1.4.ebuild clean unpack patch /var/tmp/portage/pyvorbis-1.4/work/pyvorbis-1.4/src/pyvorbisfile.c -p1 < ~/pyvorbisfile.c.patch ebuild pyvorbis-1.4.ebuild install qmerge Now start nicotine.
That pyvorbis patch fixed it here. Thanks. I've had this issue for months and months, but always assumed it was my fault.
Also, that patch suggested earlier is pretty darn nice. But it's not the latest. Newer versions (last is September 11, 2005) are coming out in full archives. Latest is here: http://thegraveyard.org/daelstorm/patches/nicotine-1.0.8-da.tar.bz2 I think it'd be a good idea to start using this in portage.
1.0.8 now depends on >=pyvorbis-1.4-r1 which includes the mentioned fix. Please upgrade to pyvorbis-1.4-r1. As for Daelstorm's patch, i'll not be including this in portage. If you want to see it in nicotine, please pester upstream. Sorry.