Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52900 - net-p2p/xmule-1.8.2-r2 always crashes with a segmentation fault
Summary: net-p2p/xmule-1.8.2-r2 always crashes with a segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo net-p2p team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 11:05 UTC by Carolina Feher
Modified: 2004-06-29 11:28 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 Carolina Feher 2004-06-03 11:05:39 UTC
The following errors occur:

$ xmule
Initialising xMule
try to open: resource/newprefs01.pm ... not found
try to open: /home/mirrorball/.xMule/resource/newprefs01.pm ... not found -> copy 'resource'-directory from xmule/src to $HOME/.xMule/
try to open: resource/newprefs03.pm ... not found
try to open: /home/mirrorball/.xMule/resource/newprefs03.pm ... not found -> copy 'resource'-directory from xmule/src to $HOME/.xMule/
try to open: resource/newprefs04.pm ... not found
try to open: /home/mirrorball/.xMule/resource/newprefs04.pm ... not found -> copy 'resource'-directory from xmule/src to $HOME/.xMule/
Segmentation fault

Reproducible: Always
Steps to Reproduce:
1. Execute xmule

Actual Results:  
Segmentation fault


Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo-r1)
=================================================================
System uname: 2.6.5-gentoo-r1 i686 AMD Athlon(TM) XP 2800+
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /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="-march=athlon-xp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://open-systems.ufl.edu/mirrors/gentoo
http://gentoo.mirrors.pair.com/ http://gentoo.chem.wisc.edu/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X aalib acpi aim alsa apache2 arts avi berkdb cdr crypt cups encode
esd flac foomaticdb gd gdbm gif gphoto2 gpm gstreamer gtk gtk2 guile icq
imagemagick imlib innodb jabber java jpeg kde lcms ldap libg++ libwww mad
maildir mikmod mmx motif mozilla mpeg msn mysql ncurses nls oggvorbis opengl oss
pam pcmcia pdflib perl png postgres python qt quicktime readline sdl slang spell
sse ssl svga tcltk tcpd tetex tiff truetype unicode usb x86 xml2 xmms xv yahoo zlib"
Comment 1 unl 2004-06-03 17:30:07 UTC
have the same problem 
Portage 2.0.50-r7 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3_pre20040420-r0, 2.6.6-love4)
=================================================================
System uname: 2.6.6-love4 i686 AMD Athlon(tm) XP
Gentoo Base System version 1.4.15
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -fforce-addr -s -DNDEBUG -DG_DISABLE_ASSERT"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -funroll-loops -fprefetch-loop-arrays -pipe -mmmx -msse -m3dnow -fforce-addr -s -DNDEBUG -DG_DISABLE_ASSERT"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs buildpkg ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X alsa apm arts avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 imlib java jpeg kde ldap libg++ libwww linguas_pl mad mikmod mmx motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell sse ssl svga tcpd truetype x86 xml2 xmms xv zlib"

Comment 2 Evert 2004-06-04 08:14:12 UTC
same problem here, r1 works without problems

Gentoo Base System version 1.4.15
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.26)
=================================================================
System uname: 2.4.26 i686 AMD Athlon(tm) XP 2600+
distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
FEATURES="autoaddcvs buildpkg ccache sandbox"
MAKEOPTS="-j2"
USE="X apm arts avi berkdb cdr crypt cups directfb encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses oggvorbis opengl oss pam pdflib perl png python qt quicktime readline ruby sdl slang sse ssl svga tcpd tiff truetype x86 xml2 xmms xv zlib"
Comment 3 Nick Hadaway 2004-06-07 06:57:55 UTC
I have experienced the same thing.

copy the ${WORKDIR}/xmule/src/resources directory into ~/.xMule and things work just fine.

Maybe this directory needs to be put into /etc/skel? bad idea... 

Or maybe the world's tiniest shell script called "xmule-setup" that a user runs to add those files to their home directory xmule configuration... 

And my last thought for now... does xmule support a central configuration directory as well as per-user?  /etc/xMule?  If so just have the ebuild dump the directory there.
Comment 4 Jon Hood (RETIRED) gentoo-dev 2004-06-28 19:53:24 UTC
please try the latest xmule in portage by doing the following:
# emerge =xmule-1.8.2-r3 -u
$ rm -rf ~/.xMule (MAKE SURE THERE IS NOTHING IN THERE YOU WANTED TO BACK UP)
$ xmule

That should work :)
Comment 5 Evert 2004-06-29 09:05:48 UTC
With the xmule script like below, the user wouldn't have to remove the .xMule directory.
Furthermore, xmule-bin can better be called with exec, this way, the shell would be taken over by xmule-bin and not keep an unneeded process...


#!/bin/sh
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-p2p/xmule/files/xmule.sh,v 1.1 2004/06/28 16:20:57 squinky86 Exp $
                                                                                                                                                             
if [ ! -d ~/.xMule ]; then
        echo "Creating ~/.xMule..."
        mkdir ~/.xMule || exit 1
fi
if [ ! -d ~/.xMule/resource ]; then
        echo "Copying required files to ~/.xMule..."
        mkdir ~/.xMule/resource || exit 1
        cp /usr/share/xmule/*.pm ~/.xMule/resource/ || exit 1
        echo "Starting xMule..."
fi
exec xmule-bin
Comment 6 Jon Hood (RETIRED) gentoo-dev 2004-06-29 09:35:00 UTC
Thank you, that is a much better script and it is now in portage.
Comment 7 Evert 2004-06-29 11:28:34 UTC
Great! :-D