Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
gtk-gnutella won't start, strange mutex assertion failure
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
penetrode
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 269
Location: Calgary, Alberta

PostPosted: Thu Apr 19, 2012 7:24 pm    Post subject: gtk-gnutella won't start, strange mutex assertion failure Reply with quote

When I try to start gtk-gnutella, I get this error:

Code:

12-04-19 19:17:00 (FATAL): Assertion failure in src/lib/mutex.c:54: "MUTEX_MAGIC == mutex->magic"
12-04-19 19:17:00 WARNING: crashing before any crash_init() call
        0x8084cb4
        0x82b21c9
        0x82b23d2
        0x82eaa12
        0x82ec82e
        0x82ecb9a
        0xb5a8a1b9
        0xb5da43ad
        0xb5da4467
        0xb5e69125
        0xb5cddfad
        0xb788e080
        0xb788e1b1
        0xb787e92f
Abgebrochen


I have done revdep-rebuild, and everything checks out as consistent. Scarier still is that searches for this or similar errors turn up nothing. I don't even know what library or interpreter is throwing this error. Is this a kernel problem?

emerge -1 gtk-gnutella didn't help either.


Here's the version of gtk-gnutella in question:

Code:
$ eix gtk-gnutella
[I] net-p2p/gtk-gnutella
     Available versions:  0.98.2 (~)0.98.2-r1 {dbus +gtk nls ssl}
     Installed versions:  0.98.2-r1(21:13:36 19.04.2012)(dbus gtk nls ssl)
     Homepage:            http://gtk-gnutella.sourceforge.net/
     Description:         A GTK+ Gnutella client


Here's emerge --info:

Code:
emerge --info
Portage 2.1.10.49 (default/linux/x86/10.0, gcc-4.4.5, glibc-2.13-r4, 2.6.38-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.38-gentoo-r6-i686-Intel-R-_Pentium-R-_M_processor_2.00GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 19 Apr 2012 18:30:02 +0000
ccache version 3.1.6 [enabled]
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/ccache:          3.1.6
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.5, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo sunrise lisp wish
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en fr nb en_GB en_CA"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/lisp /var/lib/layman/wish"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib accessibility acl acpi aim alsa ao apm arts audiofile bash-completion berkdb branding bzip2 cairo calendar cdda cddb cdinstall cdparanoia cdr clamav cli consolekit cracklib crypt css cups curl curlwrappers cxx dbus dga dri dv dvb dvd dvdr encode exif expat fbcon festival ffmpeg firefox flac fontconfig foomaticdb fortran ftp gdbm gif gimp ginac glut gnuplot gphoto2 gpm gsm gtk handbook hddtemp iconv icq icu idn imagemagick imap imlib ipv6 jabber java jingle joystick jpeg jpeg2k kde kontact lame lcms libnotify lm_sensors mad mbrola mmx mng modules mp3 mp4 mpeg mplayer msn mudflap musicbrainz mysql ncurses nls nptl nptlonly nsplugin odbc offensive ofx ogg opengl openmp oscar oss pam pcmcia pcre pda pdf perl plasma plotutils png policykit posix ppds pppd python qt3support qt4 raw rdesktop readline samba scanner sdl session sql sse sse2 ssl startup-notification svg svga sysfs syslog tcpd theora threads tiff truetype udev unicode usb v4l v4l2 vcd vim-syntax vnc vorbis webkit wifi win32codecs wmf wxwidgets x264 x86 xine xinerama xinetd xml xorg xscreensaver xulrunner xv xvid yahoo zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en fr nb en_GB en_CA" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="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, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

Back to top
View user's profile Send private message
ram4
n00b
n00b


Joined: 20 Apr 2012
Posts: 2

PostPosted: Fri Apr 20, 2012 7:48 am    Post subject: Reply with quote

No, what you're seeing is a gtk-gnutella message and it is extremely important to be able to diagnose exactly who is the culprit so that this bug can be fixed upstream. Unfortunately since your executable is stripped of debugging symbols, the hexadecimal stack dump is useless.

My recommendation at this stage is to attempt a local rebuild directly from the source tree of gtk-gnutella to make sure this bug has not already been fixed:

Code:

    git clone https://github.com/gtk-gnutella/gtk-gnutella.git
    cd gtk-gnutella
    git checkout -b devel origin/devel
    ./build.sh --unofficial

This should leave you with an executable, which you can launch:

Code:
src/gtk-gnutella --log-stderr gtkg.err --log-stdout gtkg.out


You can then launch this executable directly. Let me know if you have the same error, or if it is working.

In order to be able to properly compile gtk-gnutlella, you may have to install the -dev version of some packages like GTK or glib, or even the libc, if not already present.

It would also help to install binutils-dev prior to the configuration to make sure you get the BFD library for symbolic remapping of addresses.

Let me know how this goes.
Back to top
View user's profile Send private message
penetrode
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 269
Location: Calgary, Alberta

PostPosted: Fri Apr 20, 2012 8:44 am    Post subject: Reply with quote

ram4 wrote:

In order to be able to properly compile gtk-gnutlella, you may have to install the -dev version of some packages like GTK or glib, or even the libc, if not already present.

It would also help to install binutils-dev prior to the configuration to make sure you get the BFD library for symbolic remapping of addresses.


Welcome to Gentoo! I see this is your first post. How did you find us? Do you have a Google Alert set up?

In any case, I am honoured to have been the reason :)

The central feature of Gentoo Linux is that (nearly) all packages (called ebuilds) are built from source automatically by portage, the Gentoo package manager. This means that a package won't build unless all of the dev libraries are present.

Also, binutils-dev is not a package in the portage tree, for the same reason listed above. Installed packages generally contain everything that would normally be found in the source tarball.

To make a long story short: it built just fine with your instructions.

I launched it and it runs. I did a couple of junk searches, to see if it was actually functioning, and it delivered some results, so it is working as near as I can tell.

It sounds like you are a gtk-gnutella developer, am I right? I also generated those log files you specified. Will you be needing them?

Since it works, it means that the bug was fixed in development. This won't affect upstream, but it does mean that all the ebuilds currently in portage have it, and so I will file a bug at bugs.gentoo.org.
Back to top
View user's profile Send private message
ram4
n00b
n00b


Joined: 20 Apr 2012
Posts: 2

PostPosted: Fri Apr 20, 2012 1:41 pm    Post subject: Thanks for the validation Reply with quote

penetrode wrote:

Welcome to Gentoo! I see this is your first post. How did you find us? Do you have a Google Alert set up?


Indeed, I do.


penetrode wrote:

I launched it and it runs. I did a couple of junk searches, to see if it was actually functioning, and it delivered some results, so it is working as near as I can tell.

It sounds like you are a gtk-gnutella developer, am I right? I also generated those log files you specified. Will you be needing them?


Good, then it means it is urgent to prepare the release of 0.98.3. I'm working on it but there are still some rough edges to polish. I'm also working on a huge memory leak happening mysteriously on a 64-bit system, which does not seem to happen anywhere else.

I won't need the logs, it was just in case something bad happened.

Thanks for the confirmation, and stay tuned for an upgrade in the weeks to come.
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