Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 433942 - net-p2p/amule - amule fails to start when an empty ~/.aMule/statistics.dat file is present
Summary: net-p2p/amule - amule fails to start when an empty ~/.aMule/statistics.dat fi...
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-04 14:52 UTC by Drunkard Zhang
Modified: 2016-10-01 14:19 UTC (History)
1 user (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 Drunkard Zhang 2012-09-04 14:52:27 UTC
aMule won't start with empty ~/.aMule/statistics.dat file, this should be upstream bug. Just remove ~/.aMule/statistics.dat to workaround.

Reproduce: Always.
21:43:37 ~/.aMule $ amule
Gtk-Message: Failed to load module "gnomesegvhandler"
 2012-09-04 21:43:42: Initialising aMule 2.3.1 compiled with wxGTK2 v2.8.12
 2012-09-04 21:43:42: Checking if there is an instance already running...
 2012-09-04 21:43:42: No other instances are running.
 2012-09-04 21:43:42: ListenSocket: Ok.
 2012-09-04 21:43:43: Loading temp files from /home/mj/.aMule/Temp.
 2012-09-04 21:43:43: Loading PartFile 1 of 32
 2012-09-04 21:43:43: Loading PartFile 2 of 32

...., All OK. Now destroy it:
21:44:10 ~/.aMule $ mv statistics.dat /tmp/
‘statistics.dat’ -> ‘/tmp/statistics.dat’
removed ‘statistics.dat’
21:44:16 ~/.aMule $ touch statistics.dat
21:44:22 ~/.aMule $ amule
Gtk-Message: Failed to load module "gnomesegvhandler"
 2012-09-04 21:44:26: Initialising aMule 2.3.1 compiled with wxGTK2 v2.8.12
 2012-09-04 21:44:26: Checking if there is an instance already running...
 2012-09-04 21:44:26: No other instances are running.
	aMule Version: aMule 2.3.1 compiled with wxGTK2 v2.8.12

Terminated after throwing an instance of 'CEOFException'
	what(): SafeIO::EOF: Attempt to read past end of file.
	backtrace:
[2] ?? in amule[0x45929a]
[3] wxEntry(int&, wchar_t**) in /usr/lib64/libwx_baseu-2.8.so.0[0x7f7c773f8e0b]
[4] ?? in amule[0x44b472]
[5] __libc_start_main in /lib64/libc.so.6[0x363642134d]
[6] ?? in amule[0x450575]

Aborted

Use 'strace -e trace=open /usr/bin/amule' can identify files caused the problem.
Why there's empty statistics.dat?

emerge --info amule
Portage 2.3.4-r7 (default/linux/amd64/2008.0/desktop, gcc-4.6.2, glibc-2.13-r4, 3.4.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.4.5-gentoo-x86_64-AMD_A8-3500M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2.0
Timestamp of tree: Sat, 25 Aug 2012 18:00:01 +0000
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12-r1000
dev-lang/python:          2.7.3-r1000, 3.2.3-r1000
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2.0-r1
sys-apps/openrc:          0.10.5-r1::pentoo
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.6.2-r1
sys-devel/gcc-config:     1.5
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2-r1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo science ltsp hacking-gentoo sunrise pentoo gentoo-zh
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-mtune=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles mini-manifest news nodoc parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.163.com/gentoo/ http://mirrors.sohu.com/gentoo/ http://gentoo.gwbnsh.net.cn/ "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
LINGUAS="zh_CN zh_TW zh en ru de bo ug"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /var/lib/layman/ltsp /var/lib/layman/hacking-gentoo /var/lib/layman/sunrise /var/lib/layman/pentoo /var/lib/layman/gentoo-zh"
SYNC="git://github.com/funtoo/portage-mini-2011.git"
SYNC_USER="root"
USE="3dnow 3dnowext X a52 aac acl acpi aio alac alsa amd64 bash-completion berkdb branding bzip2 cairo cdda cjk cli consolekit cracklib crypt cups cxx dbus djvu dri dts dvd dvdr dvdread emboss encode exif fam ffmpeg firefox flac fortran gconf gdbm geoip gif gimp gmp gnome gpm gstreamer gtk gtk3 iconv icu idn introspection ipv6 jpeg jpeg2k lame lcms libass libnotify libsamplerate mad mmap mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib ncurses nls nptl ogg opengl openmp pam pango pch pcre pdf perl png postgres postscript ppds pppd pulseaudio python readline sdl session smp sse sse2 ssl startup-notification svg theora threads tiff truetype udev udisks unicode upower usb vim-syntax vorbis wavpack wifi wxwidgets x264 xcb xft xinerama xml xorg xv xvid xvmc zlib" ALSA_CARDS="hda-intel" 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 sheets 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 synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver presenter-console presenter-minimizer" LINGUAS="zh_CN zh_TW zh en ru de bo ug" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 mips mips64 mips64el mipsel sparc sparc64 x86_64" QEMU_USER_TARGETS="arm i386 mips mipsel sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fglrx radeon" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

=================================================================
                        Package Settings
=================================================================

net-p2p/amule-2.3.1 was built with the following:
USE="X geoip (multilib) nls stats unicode -daemon -debug -remote -upnp"
Comment 1 Pacho Ramos gentoo-dev 2016-10-01 14:19:15 UTC
please try with 2.3.2