Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413331 - app-admin/gam-server (gam_server) hangs with dev-libs/glib-2.32.1
Summary: app-admin/gam-server (gam_server) hangs with dev-libs/glib-2.32.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: glib-2.32
  Show dependency tree
 
Reported: 2012-04-24 08:12 UTC by Per Pomsel
Modified: 2012-05-04 00:40 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
strace of gam_server (strace-gam_server.txt,8.50 KB, text/plain)
2012-04-24 08:13 UTC, Per Pomsel
Details
possible fix for server deadlock (0001-fix-possible-server-deadlock-in-ih_sub_cancel.patch,2.04 KB, patch)
2012-04-26 07:55 UTC, Per Pomsel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Per Pomsel 2012-04-24 08:12:07 UTC
Gamin with courier-imap isn't working with dev-libs/glib-2.32.1 .The process /usr/libexec/gam_server "hangs" after some time (minutes/hours).So login to courier-imap succeeds, but I can't see any mails.
Killing the process /usr/libexec/gam_server spawns a new gam_server-process and everything works fine (until it hangs again after minutes/hours).
This issue exists on x86 and x86_64.
The Problem doesn't occur with dev-libs/glib-2.30.3 (x86 and x86_64). Of course I rebuilt app-admin/gam-server, app-admin/gamin and dev-libs/libgamin after emerging dev-libs/glib-2.32.1.
I'm not sure if
  https://bugzilla.gnome.org/show_bug.cgi?id=669292
  https://bugzilla.gnome.org/show_bug.cgi?id=667230
are related to the problem.

ouput of emerge -vpq dev-libs/glib app-admin/gam-server app-admin/gamin dev-libs/libgamin net-mail/courier-imap net-libs/courier-authlib :

[ebuild   R   ] net-libs/courier-authlib-0.63.0-r1  USE="berkdb crypt gdbm pam postgres -debug -ldap -mysql -vpopmail" 
[ebuild   R   ] dev-libs/libgamin-0.1.10-r2  USE="-debug -python -static-libs" 
[ebuild  N    ] sys-devel/flex-2.5.35_p10  USE="nls -static -test" 
[ebuild  N    ] dev-libs/elfutils-0.153  USE="bzip2 lzma nls zlib -test" 
[ebuild   R   ] app-admin/gamin-0.1.10 
[ebuild   R   ] net-mail/courier-imap-4.8.0  USE="berkdb fam gdbm ipv6 -debug -gnutls (-selinux) -trashquota" 
[ebuild  N    ] dev-util/gtk-doc-am-1.18 
[ebuild     U ] dev-libs/glib-2.32.1 [2.30.3] USE="fam -debug -doc (-selinux) -static-libs* -systemtap -test -utils -xattr" 
[ebuild   R   ] app-admin/gam-server-0.1.10  USE="-debug"

emerge --info :
Portage 2.1.10.57 (default/linux/amd64/10.0/no-multilib, gcc-4.5.3, glibc-2.14.1-r3, 3.3.3-gentoo x86_64)
=================================================================
System uname: Linux-3.3.3-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5450_@_3.00GHz-with-gentoo-2.1
Timestamp of tree: Tue, 24 Apr 2012 05:00:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p24-r1
dev-lang/python:          2.7.3, 3.2.2-r1
dev-util/ccache:          3.1.7
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo pear-ath-cx
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe -mtune=generic -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe -mtune=generic -msse4.1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --quiet-build=y"
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.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j5"
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="/usr/local/overlays/pear.ath.cx"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cups cxx dri expat fam fontconfig fortran gd gdbm gif gmp gnutls gpm iconv idn ipv6 jpeg jpeg2k lzma mmx modules mudflap ncurses nls nptl nptlonly openmp openssl pam pcre png pppd readline session sftp slang sse sse2 ssl symlink sysfs tcpd threads unicode vhosts xml xorg 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 asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers ident imagemap include info log_config log_forensic logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http reqtimeout rewrite setenvif speling status substitute unique_id userdir usertrack version vhost_alias" APACHE2_MPMS="worker" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" 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, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Reproducible: Always
Comment 1 Per Pomsel 2012-04-24 08:13:04 UTC
Created attachment 309901 [details]
strace of gam_server
Comment 2 Pacho Ramos gentoo-dev 2012-04-24 18:44:43 UTC
Have you tried to apply that patches commented in your provided upstream bug reports?
Comment 3 Per Pomsel 2012-04-26 07:55:09 UTC
I'm testing the patch (https://bugzilla.gnome.org/show_bug.cgi?id=667230) since yesterday.
I'll report results on friday (until now gamin runs fine).
Comment 4 Per Pomsel 2012-04-26 07:55:55 UTC
Created attachment 310153 [details, diff]
possible fix for server deadlock
Comment 5 Per Pomsel 2012-04-30 08:30:04 UTC
I want to let you know that gam_server (patched) is running without problems for several days now.
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-05-04 00:40:28 UTC
(In reply to comment #5)
> I want to let you know that gam_server (patched) is running without problems
> for several days now.

Great to hear!
gam-server-0.1.10-r1, which includes this patch, is now in portage.

>*gam-server-0.1.10-r1 (04 May 2012)
>
>  04 May 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +gam-server-0.1.10-r1.ebuild,
>  +files/gam-server-0.1.10-ih_sub_cancel-deadlock.patch:
>  Fix hangs with glib-2.32 (bug #413331, thanks to Per Pomsel).