Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 189245 - net-im/pidgin-2.1.0 segfaults upon startup
Summary: net-im/pidgin-2.1.0 segfaults upon startup
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-17 15:45 UTC by Alan Mosca
Modified: 2007-09-27 04:58 UTC (History)
2 users (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 Alan Mosca 2007-08-17 15:45:27 UTC
Every time I start pidgin it segfaults. I even tried upgrading. I believe it *could* be cause by some wierd combination of use flags and config (?).
My use flags are:

net-im/pidgin-2.1.0  USE="bonjour crypt dbus debug eds gstreamer gtk ncurses networkmanager nls perl prediction spell startup-notification xscreensaver -avahi -doc -gadu -gnutls -groupwise -meanwhile -qq -sasl -silc -tcl -tk -zephyr"

Reproducible: Always

Steps to Reproduce:
1.Start pidgin
2.
3.




gdb backtrace:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 805466000 (LWP 32168)]
0x0eeae4bc in free () from /lib/tls/libc.so.6
(gdb) bt full
#0  0x0eeae4bc in free () from /lib/tls/libc.so.6
No symbol table info available.
#1  0x0f168cc8 in g_free () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#2  0x0d6d0f70 in jabber_gmail_poke () from /usr/lib/purple-2/libjabber.so.0
No symbol table info available.
#3  0x0d6d17d8 in jabber_iq_parse () from /usr/lib/purple-2/libjabber.so.0
No symbol table info available.
#4  0x0d6d75f8 in jabber_process_packet ()
   from /usr/lib/purple-2/libjabber.so.0
No symbol table info available.
#5  0x0d6da030 in jabber_parser_process ()
   from /usr/lib/purple-2/libjabber.so.0
No symbol table info available.
#6  0x0fa583c0 in xmlIOParseDTD () from /usr/lib/libxml2.so.2
No symbol table info available.
#7  0x0fa5f30c in xmlParseChunk () from /usr/lib/libxml2.so.2
No symbol table info available.
#8  0x0d6d9f10 in jabber_parser_process ()
   from /usr/lib/purple-2/libjabber.so.0
No symbol table info available.
#9  0x0d6d7000 in jabber_login () from /usr/lib/purple-2/libjabber.so.0
No symbol table info available.
#10 0x0f096894 in purple_sound_play_file () from /usr/lib/libpurple.so.0
No symbol table info available.
#11 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#12 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#13 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#14 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#15 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#16 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#17 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#18 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#19 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
#20 0x10052c48 in pidgin_eventloop_get_ui_ops ()
No symbol table info available.
Previous frame inner to this frame (corrupt stack?)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-08-17 15:49:45 UTC
emerge --info please...
Comment 2 Alan Mosca 2007-08-20 18:01:44 UTC
Whoops sorry, must've missed it! I also noticed that it works if I run it as root, so it might be related to my account settings as well?

Portage 2.1.3.4 (default-linux/ppc/ppc32/2006.0/G4, gcc-4.1.2, glibc-2.5-r1, 2.6.21-gentoo-r4 ppc)
=================================================================
System uname: 2.6.21-gentoo-r4 ppc 7447A, altivec supported
Gentoo Base System version 1.12.6
Timestamp of tree: Sun, 15 Oct 2006 11:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.20-r2
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O3 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/spool/PBS /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O3 -mcpu=7400 -mtune=G4 -maltivec -mabi=altivec -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.virginmedia.com/ ftp://gentoo.virginmedia.com/sites/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/xeffects /usr/portage/local/layman/java-gcj-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aiglx alsa altivec apache2 apm arts berkdb bitmap-fonts bluetooth bonobo cdr cli cracklib crypt cups divx dri dvd eds emboss encode esd fbcon foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtkhtml iconv imlib ipv6 isdnlog jpeg libwww mad midi mikmod motif mozilla mp3 mpeg mudflap ncurses nls nptl ogg opengl openmp pam pbbuttonsd pcre perl png ppc pppd python qt3 qt4 quicktime radeon readline reflection ruby sdl session spell spl ssl tcpd truetype truetype-fonts type1-fonts unicode vorbis xgl xml xorg xv xvid zlib" ALSA_CARDS="powermac" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Alex Efros 2007-08-25 00:08:33 UTC
I've same issue.

$ pidgin
Segmentation fault

And this was added into logs:

2007-08-24_23:59:13.10546 kern.alert: grsec: denied resource overstep by requesting 8392704 for RLIMIT_STACK against limit 8388608 for /usr/bin/pidgin[pidgin:6399] uid/euid:1000/1000 gid/egid:100/100, parent /bin/bash[bash:7487] uid/euid:1000/1000 gid/egid:100/100
2007-08-24_23:59:13.10560 kern.alert: grsec: signal 11 sent to /usr/bin/pidgin[pidgin:6399] uid/euid:1000/1000 gid/egid:100/100, parent /bin/bash[bash:7487] uid/euid:1000/1000 gid/egid:100/100
2007-08-24_23:59:13.10562 kern.alert: grsec: denied resource overstep by requesting 8392704 for RLIMIT_STACK against limit 8388608 for /usr/bin/pidgin[pidgin:6399] uid/euid:1000/1000 gid/egid:100/100, parent /bin/bash[bash:7487] uid/euid:1000/1000 gid/egid:100/100
2007-08-24_23:59:13.10564 kern.alert: grsec: signal 11 sent to /usr/bin/pidgin[pidgin:6399] uid/euid:1000/1000 gid/egid:100/100, parent /bin/bash[bash:7487] uid/euid:1000/1000 gid/egid:100/100
2007-08-24_23:59:13.10569 kern.alert: grsec: denied resource overstep by requesting 4096 for RLIMIT_CORE against limit 0 for /usr/bin/pidgin[pidgin:6399] uid/euid:1000/1000 gid/egid:100/100, parent /bin/bash[bash:7487] uid/euid:1000/1000 gid/egid:100/100

I've tried to increase stack with ulimit -s from 8MB to 32MB, but this won't help.

Actually, I was able to run pidgin 2-3 times after emerge, it load all gaim contacts, let me work for a few minutes (I just learning it menu and features, no messages was sent or received), then crash and never run again. Re-emerge with different USE flags won't help. Removing ~/.gaim/ also won't help.

Here is my USE flags (only pidgin package installed, no other plugins for pidgin installed):

[ebuild   R   ] net-im/pidgin-2.1.0  USE="gnutls gtk nls perl silc spell -avahi -bonjour -dbus -debug -doc -eds -gadu -groupwise -gstreamer -meanwhile -ncurses -networkmanager -prediction -qq -sasl -startup-notification -tcl -tk -xscreensaver -zephyr" 0 kB 

Portage 2.1.2.12 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r4, 2.6.20-hardened-r6 i686)
=================================================================
System uname: 2.6.20-hardened-r6 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 24 Aug 2007 17:30:01 +0000
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /service /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://130.59.10.34/mirror/gentoo/ http://gentoo.zie.pg.gda.pl"
LANG="ru_RU.KOI8-R"
LINGUAS="en ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage-packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/musicbrainz /usr/portage/local/layman/berkano /usr/portage/local/layman/vmware /usr/local/portage /usr/local/portage-power /usr/local/portage-rusxmms"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aac acpi aim alsa apache2 arts asf avi bash-completion berkdb bitmap-fonts bzip2 cdr cracklib crypt cscope curl dga divx4linux dlloader dri dts dvd dvdr dvdread encode ffmpeg flac flash gd gdbm gif gnutls gpgme gtk gtk2 hardened icq idn imagemagick imap imlib irc jabber javascript jpeg kdeenablefinal lirc lm_sensors lzo mad mailbox mbox midi mmx mng motif mp3 mpeg msn mysql ncurses nls nptl nptlonly ogg opengl oss pam pcre perl pic png pwdb qt quicktime rcc readline real rss rtc samba sdl silc slang spell sse sse2 ssl ssse3 svg sysfs tcltk tcpd tiff truetype truetype-fonts type1-fonts urandom vim-pager vim-with-x vorbis win32codecs x86 xinetd xorg xv xvid yahoo zlib" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" LIRC_DEVICES="serial" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Evan Deaubl 2007-09-26 21:28:00 UTC
I think I have a workaround for this.

In $HOME/.purple/prefs.xml, search for this block:

                <pref name='savedstatus'>
                        <pref name='default' type='int' value='1190748733'/>
                        <pref name='startup' type='int' value='0'/>
                        <pref name='startup_current_status' type='bool' value='1'/>
                        <pref name='idleaway' type='int' value='1190749035'/>
                        <pref name='isidleaway' type='bool' value='1'/>
                </pref>

If 'isidleaway' is set to 1, pidgin seg faults.  Set it to 0, and pidgin works again.  This seems to record idle status on exit, which would explain why it works for a while, then blows up permanently.

This of course is not a permanent fix. ;-)
Comment 5 Olivier Crete (RETIRED) gentoo-dev 2007-09-26 22:09:42 UTC
This clearly seems like an upstream bug, if you can reproduce it on the latest version, please file it upstream.
Comment 6 Alex Efros 2007-09-26 23:24:41 UTC
Proposed workaround works for me, thanks.
Comment 7 Evan Deaubl 2007-09-27 04:58:44 UTC
Found a resolved upstream ticket already: http://developer.pidgin.im/ticket/2716 .  Switched to ~amd64 and installed 2.2.0, and bug is indeed resolved.