Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195494 - net-im/pidgin-2.2.1 segfault
Summary: net-im/pidgin-2.2.1 segfault
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High critical (vote)
Assignee: Gentoo Net-im project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 13:44 UTC by Alex Efros
Modified: 2008-02-16 19:54 UTC (History)
0 users

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


Attachments
patch from ubuntu (pidgin-2.2.1-yahoo-icon-crash.diff,1.22 KB, patch)
2007-10-28 00:10 UTC, Olivier Crete (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Efros 2007-10-11 13:44:18 UTC
pidgin just segfault without any actions from me, so it probably related to incoming message or some internal issue.

pidgin compiled with USE=debug, as http://developer.pidgin.im/wiki/GetABacktrace recommend, but backtrace still contain ?? instead of function names. I'll try to recompile pidgin using 'CFLAGS="-O2 -ggdb" FEATURES="splitdebug" emerge pidgin' recommended in bug 186256.

looks like issue related to oscar protocol, and here is last messages from pidgin stderr output about oscar (NOTE: I've translated Gtk error message from russian to english, so it may look non-standard):

(06:47:24) oscar: Scheduling destruction of FLAP connection of type 0x0018
(06:47:24) oscar: Destroying oscar connection of type 0x0018.  Disconnect reason is 4
[Invalid UTF-8] (06:47:24) oscar: Disconnected.  Code is 0x0000 and msg is \xf3\xcf\xc5\xc4\xc9\xce\xc5\xce\xc9\xc5 \xd3\xc2\xd2\xcf\xdb\xc5\xce\xcf \xc4\xd2\xd5\xc7\xcf\xca \xd3\xd4\xcf\xd2\xcf\xce\xcf\xca
(06:47:24) oscar: Scheduling destruction of FLAP connection of type 0x0002
(06:47:24) oscar: Destroying oscar connection of type 0x0002.  Disconnect reason is 4
[Invalid UTF-8] (06:47:24) oscar: Disconnected.  Code is 0x0000 and msg is \xf3\xcf\xc5\xc4\xc9\xce\xc5\xce\xc9\xc5 \xd3\xc2\xd2\xcf\xdb\xc5\xce\xcf \xc4\xd2\xd5\xc7\xcf\xca \xd3\xd4\xcf\xd2\xcf\xce\xcf\xca
(06:47:24) Gtk: Failed to set text from markup due to error parsing markup: Error in line 2 char 1: Text encoded in UTF-8 in wrong way

Program received signal SIGPIPE, Broken pipe.
...
(06:47:38) autorecon: do_signon called
(06:47:38) autorecon: calling purple_account_connect
(06:47:38) account: Connecting to account powermanASDF
(06:47:38) idle: Setting powermanASDF idle 1383 seconds
(06:47:38) connection: Connecting. gc = 0x134306a0
...
(06:47:38) oscar: oscar_login: gc = 0x134306a0
(06:47:38) dns: DNS query for 'login.oscar.aol.com' queued
(06:47:38) autorecon: done calling purple_account_connect
(06:47:38) dns: Created new DNS child 9007, there are now 1 children.
(06:47:38) dns: Successfully sent DNS request to child 9007
(06:47:49) dns: Got response for 'login.oscar.aol.com'
(06:47:49) dnsquery: IP resolved for login.oscar.aol.com
(06:47:49) proxy: Attempting connection to 64.12.161.185
(06:47:49) proxy: Connecting to login.oscar.aol.com:5190 with no proxy
(06:47:49) proxy: Connection in progress
(06:50:58) proxy: Connected to login.oscar.aol.com:5190.
[Invalid UTF-8] (06:50:58) proxy: Error connecting to login.oscar.aol.com:5190 (\xf7\xd2\xc5\xcd\xd1 \xcf\xd6\xc9\xc4\xc1\xce\xc9\xd1 \xd3\xcf\xc5\xc4\xc9\xce\xc5\xce\xc9\xd1 \xc9\xd3\xd4\xc5\xcb\xcc\xcf).
[Invalid UTF-8] (06:50:58) proxy: Connection attempt failed: \xf7\xd2\xc5\xcd\xd1 \xcf\xd6\xc9\xc4\xc1\xce\xc9\xd1 \xd3\xcf\xc5\xc4\xc9\xce\xc5\xce\xc9\xd1 \xc9\xd3\xd4\xc5\xcb\xcc\xcf
(06:50:58) oscar: unable to connect FLAP server of type 0x0017

Program received signal SIGSEGV, Segmentation fault.
0x502a4b60 in ?? ()

Reproducible: Always




Portage 2.1.3.9 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r4, 2.6.20-hardened-r10 i686)
=================================================================
System uname: 2.6.20-hardened-r10 i686 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz
Timestamp of tree: Wed, 10 Oct 2007 14:30:01 +0000
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.7, 2.1.1
dev-lang/python:     2.3.5-r3, 2.4.4-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
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 /etc/udev/rules.d"
CXXFLAGS="-march=pentium-m -O2 -pipe"
DISTDIR="/usr/portage-distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.lug.ro/gentoo/ http://mirror.qubenet.net/mirror/gentoo/"
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 dbus dga divx4linux dlloader dri dts dvd dvdr dvdread encode ffmpeg flac flash gd gdbm gif gnutls gpgme gtk gtk2 hardened hddtemp 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 slang spell sse sse2 ssl svg sysfs tcltk tcpd tiff truetype truetype-fonts type1-fonts urandom vim-pager vim-syntax 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 1 Alex Efros 2007-10-12 06:32:59 UTC
Ok, I've compiled piding using recommended:
  USE="debug" CFLAGS="-O2 -ggdb" FEATURES="splitdebug" emerge pidgin
and after several hours it crashes again, but stack trace is still doesn't contain function names. Here is a log (I've removed records non-related to ICQ&AIM protocols):

(05:59:52) idle: Setting 105083775 unidle
(05:59:52) idle: Setting powermanASDF unidle
...
(06:05:05) idle: Setting powermanASDF idle 302 seconds
(06:05:05) idle: Setting 105083775 idle 302 seconds
...
(06:19:47) oscar: Scheduling destruction of FLAP connection of type 0x0002
(06:19:47) oscar: Destroying oscar connection of type 0x0002.  Disconnect reason is 4
[Invalid UTF-8] (06:19:47) oscar: Disconnected.  Code is 0x0000 and msg is \xf7\xd2\xc5\xcd\xd1 \xcf\xd6\xc9\xc4\xc1\xce\xc9\xd1 \xd3\xcf\xc5\xc4\xc9\xce\xc5\xce\xc9\xd1 \xc9\xd3\xd4\xc5\xcb\xcc\xcf

Program received signal SIGSEGV, Segmentation fault.
0x5265db60 in ?? ()
(gdb) bt full
#0  0x5265db60 in ?? ()
No symbol table info available.
#1  0x1659a320 in ?? ()
No symbol table info available.
#2  0x16740fff in ?? ()
No symbol table info available.
#3  0x00000001 in ?? ()
No symbol table info available.
#4  0x5272851e in ?? ()
No symbol table info available.
#5  0x16718348 in ?? ()
No symbol table info available.
#6  0x530eb968 in ?? ()
No symbol table info available.
#7  0x15f8845c in ?? ()
No symbol table info available.
#8  0x1659a320 in ?? ()
No symbol table info available.
#9  0x00000000 in ?? ()
No symbol table info available.

Any ideas how to get stack trace with function names?
Comment 2 Olivier Crete (RETIRED) gentoo-dev 2007-10-26 01:46:35 UTC
Please try 2.2.2
Comment 3 Vadim 2007-10-27 22:01:37 UTC
Same for me. 2.2.1, 2.2.2, as well as any previous version I tried crashes on Yahoo login. I recall previous version displayed notification window like "you have to use new version with video (or voice) chat..." and crashed after that. 2.2.1 does not display it. Version shipped with Ubuntu works with my account just fine.

Output with -d:

(14:27:33) yahoo: 668 bytes to read, rxlen is 688
(14:27:33) yahoo: Yahoo Service: 0x55 Status: 0
(14:27:33) yahoo: Ignoring unrecognized cookie 'C'
(14:27:33) util: requested to fetch (http://address.yahoo.com/yab/us?v=XM&prog=ymsgr&.intl=us&diffs=1&t=0&tags=short&rt=0&prog-ver=8.1.0.249&useutf8=1&legenc=codepage-1252), full=0, user_agent=((null)), http11=1
(14:27:34) yahoo: No Aliases to process
(14:27:34) yahoo: 282 bytes to read, rxlen is 500
(14:27:34) yahoo: Yahoo Service: 0xf1 Status: 0
Pidgin has segfaulted and attempted to dump a core file.
This is a bug in the software and has happened through
no fault of your own.

If you can reproduce the crash, please notify the developers
by reporting a bug at:
http://developer.pidgin.im/simpleticket/
Comment 4 Olivier Crete (RETIRED) gentoo-dev 2007-10-28 00:10:16 UTC
Created attachment 134522 [details, diff]
patch from ubuntu

Can you try the patch I've just attached..

To do so:
Add the file into the pidgin/files and then add the following lines to the ebuild:

src_unpack() {
	unpack ${A}
	cd ${S}
	epatch ${FILESDIR}/pidgin-2.2.1-yahoo-icon-crash.diff
}
Comment 5 Alex Efros 2007-11-29 17:31:03 UTC
I just got an idea about this bug. I think problem is in non-UTF8 encoding: I'm using ru_RU.KOI8-R.

If I'll reconnect my ADSL after starting pidgin, and receive different dynamic IP, pidgin lost connection to server. But pidgin notice this only after 20 minutes timeout (at least - for OSCAR). Then it try to reconnect, output this and crash:

(19:21:06) oscar: Scheduling destruction of FLAP connection of type 0x0002
(19:21:06) oscar: Destroying oscar connection of type 0x0002.  Disconnect reason is 4
[Invalid UTF-8] (19:21:06) oscar: Disconnected.  Code is 0x0000 and msg is \xf7\xd2\xc5\xcd\xd1 \xcf\xd6\xc9\xc4\xc1\xce\xc9\xd1 \xd3\xcf\xc5\xc4\xc9\xce\xc5\xce\xc9\xd1 \xc9\xd3\xd4\xc5\xcb\xcc\xcf
Hi, user.  We need to talk.
I think something's gone wrong here.  It's probably my fault.
No, really, it's not you... it's me... no no no, I think we get along well
it's just that.... well, I want to see other people.  I... what?!?  NO!  I 
haven't been cheating on you!!  How many times do you want me to tell you?!  And
for the last time, it's just a rash!
Аварийный останов

This bugreport in Pidgin's trac probably related to my issue: http://developer.pidgin.im/ticket/2247
Looks like it fixed in 2.3.0 while I'm using now 2.2.2.

P.S. I'll try to start pigdin with "LANG= pidgin" and see what happens after 20 minutes...
Comment 6 Alex Efros 2007-11-29 18:26:22 UTC
Yeah, it works! After 20 minutes I got in logs:

(20:11:48) oscar: Scheduling destruction of FLAP connection of type 0x0002
(20:11:48) oscar: Destroying oscar connection of type 0x0002.  Disconnect reason is 4
(20:11:48) oscar: Disconnected.  Code is 0x0000 and msg is Connection timed out

Pidgin doesn't crash. But it also doesn't reconnect. Instead, it show notification messagebox to me, saying (protocol ICQ):

 [MY UIN HERE] disconnected
 Lost connection with server:
 Connection reset by peer

After clicking 'Connect' button it show same messagebox after short delay. But after repeating this several times it finally connected to server, so maybe this was some issue with ICQ server or network.
Comment 7 Olivier Crete (RETIRED) gentoo-dev 2008-02-16 19:54:00 UTC
I guess this is fixed by 2.3.x