Gaim can't connect to any jabber server

Bug #24787 reported by realwhz
8
Affects Status Importance Assigned to Milestone
gaim (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

Hi,

I encountered this problem when I tried to connect to gtalk (google talk) server
with gaim in Ubuntu 5.10 "The Breezy Badger". I setupped a new jabber account
exactly following the instructions given by Google on web site:
http://www.google.com/support/talk/bin/answer.py?answer=24073
But when I tried to login in, after the stage of initializing stream, an error
of "Read Error" occured.

Furthermore, not only gtalk server, gaim can not connect to other jabber server,
for example jabber.org too. A similar error occured. I got some debug info
with gdb:
Program received signal SIGABRT, Aborted.
[Switching to Thread -1219414336 (LWP 29328)]
0xffffe410 in __kernel_vsyscall ()
(gdb) bt
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb76569b1 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb76582c9 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb768a6ea in __fsetlocking () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7690f54 in malloc_trim () from /lib/tls/i686/cmov/libc.so.6
#5 0xb76912ca in free () from /lib/tls/i686/cmov/libc.so.6
#6 0xb779c054 in g_free () from /usr/lib/libglib-2.0.so.0
#7 0xb6aa0295 in jabber_register_parse () from /usr/lib/gaim/libjabber.so
#8 0x08072443 in gaim_connection_disconnect ()
#9 0x08072535 in gaim_connection_disconnect_cb ()
#10 0xb7797006 in g_main_context_wakeup () from /usr/lib/libglib-2.0.so.0
#11 0xb77954ee in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#12 0xb77984f6 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#13 0xb77987e3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#14 0xb7c84e65 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#15 0x080f4827 in main ()

In order to verify if it is a bug of gaim itself, I also tried psi, another
jabber client. It works well. So, it may be really a bug of gaim shipped with
Ubuntu 5.10. By the way, the gaim in gnome 2.12 livecd (ubuntu) has the same
problem.

Thank you.

Revision history for this message
Luke Schierer (lschiere) wrote :

This stack trace is showing a smashed or currupted stack, the function calls it
relates are not possible. I talked with Nathan, our jabber guy (upstream) and
he asks for the output of gaim -d, the last 10 or 15 lines before the crash.

Revision history for this message
realwhz (wanghz) wrote :
Download full text (4.3 KiB)

Hi,

The output of gaim -d is:

$ gaim -d
sound: Initializing sound output drivers.
plugins: registering plugin-load signal
plugins: registering plugin-unload signal
plugins: probing /usr/lib/gaim/autorecon.so
plugins: probing /usr/lib/gaim/docklet.so
plugins: probing /usr/lib/gaim/extplacement.so
plugins: probing /usr/lib/gaim/gaim-remote.so
plugins: probing /usr/lib/gaim/gestures.so
plugins: probing /usr/lib/gaim/gevolution.so
plugins: probing /usr/lib/gaim/history.so
plugins: probing /usr/lib/gaim/iconaway.so
plugins: probing /usr/lib/gaim/idle.so
plugins: probing /usr/lib/gaim/libgg.so
plugins: probing /usr/lib/gaim/libirc.so
plugins: probing /usr/lib/gaim/libjabber.so
plugins: probing /usr/lib/gaim/libmsn.so
plugins: probing /usr/lib/gaim/libnapster.so
plugins: probing /usr/lib/gaim/libnovell.so
plugins: probing /usr/lib/gaim/liboscar.so
plugins: probing /usr/lib/gaim/libyahoo.so
plugins: probing /usr/lib/gaim/libzephyr.so
plugins: /usr/lib/gaim/libzephyr.so is unloadable: libzephyr.so.3: cannot open
shared object file: No such file or directory
plugins: probing /usr/lib/gaim/notify.so
plugins: probing /usr/lib/gaim/relnot.so
plugins: probing /usr/lib/gaim/spellchk.so
plugins: probing /usr/lib/gaim/ssl-gnutls.so
plugins: probing /usr/lib/gaim/ssl-nss.so
plugins: probing /usr/lib/gaim/ssl.so
plugins: probing /usr/lib/gaim/statenotify.so
plugins: probing /usr/lib/gaim/tcl.so
plugins: probing /usr/lib/gaim/ticker.so
plugins: probing /usr/lib/gaim/timestamp.so
plugins: probing /usr/lib/gaim/nautilus.so
plugins: probing /home/hzwang/.gaim/icons
plugins: probing /home/hzwang/.gaim/accounts.xml
plugins: probing /home/hzwang/.gaim/blist.xml
plugins: probing /home/hzwang/.gaim/accels
plugins: probing /home/hzwang/.gaim/prefs.xml
plugins: probing /home/hzwang/.gaim/smileys
plugins: registering plugin-load signal
plugins: registering plugin-unload signal
blist import: Reading /home/hzwang/.gaim/blist.xml
blist import: Finished reading /home/hzwang/.gaim/blist.xml
prefs: Reading /home/hzwang/.gaim/prefs.xml
prefs: Finished reading /home/hzwang/.gaim/prefs.xml
plugins: Loading saved plugin /usr/lib/gaim/docklet.so
tray icon: plugin loaded
tray icon: created
plugins: Loading saved plugin /usr/lib/gaim/notify.so
pounces: Error reading pounces: Failed to open file
'/home/hzwang/.gaim/pounces.xml': No such file or directory
status: Error reading statuses: Failed to open file
'/home/hzwang/.gaim/status.xml': No such file or directory
Session Management: ICE initialized.
Session Management: Connecting with no previous ID
Session Management: Handling new ICE connection... done.
Session Management: Connected to manager (GnomeSM) with client ID
1045bce167000113073531800000077820015
Session Management: Using gaim as command
Session Management: Received first save_yourself
Session Management: Received save_complete
tray icon: embedded
accounts: Writing accounts to disk.
account: Connecting to account 0x81ea658. gc = 0x8389dc8
connection: Connecting. gc = 0x8389dc8
connection: Calling serv_login
server: gaim 1.5.0 logging in <email address hidden>/Gaim using Jabber
dns: Created new DNS child 8130, there are now 1 children.
dns: Host 'talk.google.com' resolved
proxy: C...

Read more...

Revision history for this message
Luke Schierer (lschiere) wrote :

the debug output below does not appear to be a case where gaim crashed? just
where it failed to connect?

when you connect to gtalk, you aren't hitting "register" correct? you do have
your settings set as per the gtalk help pages?

Revision history for this message
realwhz (wanghz) wrote :

Hi,

When I connect to gtalk (or jabber.org) server, gaim will report "Read Error"
and ask me whether to reconnect it. If I try several times, gaim will crash. I
have just reproduce it and the gaim -d output is (I only post the last part):

account: Connecting to account 0x81ea658. gc = 0x837f660
connection: Connecting. gc = 0x837f660
connection: Requesting password
connection: Destroying connection 0x837f660
accounts: Writing accounts to disk.
account: Connecting to account 0x81ea658. gc = 0x83a9a60
connection: Connecting. gc = 0x83a9a60
connection: Calling serv_login
server: gaim 1.5.0 logging in <email address hidden>/Gaim using Jabber
dns: Successfully sent DNS request to child 15754
dns: Host 'talk.google.com' resolved
proxy: Connecting to talk.google.com:5222 with no proxy
proxy: Connect would have blocked.
proxy: Connected.
jabber: Sending: <?xml version='1.0' ?>
jabber: Sending: <stream:stream to='gmail.com' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
jabber: Recv (176): <?xml version="1.0" encoding="UTF-8"?><stream:stream
from="gmail.com" id="430EE3CA392A2848" version="1.0"
xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">
jabber: Recv (189): <stream:features><starttls
xmlns="urn:ietf:params:xml:ns:xmpp-tls"/><mechanisms
xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><mechanism>X-GOOGLE-TOKEN</mechanism></mechanisms></stream:features>
jabber: Sending: <starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
accounts: Writing accounts to disk.
jabber: Recv (50): <proceed xmlns="urn:ietf:params:xml:ns:xmpp-tls"/>
gnutls: Handshaking
gnutls: Handshake failed. Error -9
account: Disconnecting account 0x81ea658
connection: Disconnecting connection 0x83a9a60
jabber: Sending (ssl): <presence type='unavailable'><status>Logged
out</status></presence>
Gaim 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.

It is possible that this bug is already fixed in CVS.
If you can reproduce the crash, please notify the gaim
maintainers by reporting a bug at
http://gaim.sourceforge.net/bug.php

Please make sure to specify what you were doing at the time,
and post the backtrace from the core file. If you do not know
how to get the backtrace, please get instructions at
http://gaim.sourceforge.net/gdb.php. If you need further
assistance, please IM either SeanEgn or LSchiere and
they can help you.
dns[15754]: Oops, father has gone, wait for me, wait...!
Aborted

For the account setup, I think I do follow the official instructions exactly. I
have installed gaim for windows and setup it to connect to gtalk server
sucessfully :-)

Revision history for this message
Sebastien Bacher (seb128) wrote :

Maybe a gnutls issue, does it happen if you don't use the ssl option?

Revision history for this message
Rocco Stanzione (trappist) wrote :

This "works for me" in dapper, and there has been no activity on this bug since it went "needs info" almost 7 months ago. Closing.

Changed in gaim:
status: Needs Info → Fix Released
Revision history for this message
realwhz (wanghz) wrote : Re: [Bug 24787] Re: Gaim can't connect to any jabber server

Yes, it seems that this bug has been fixed in both Debian and Ubuntu.

Thanks.

On 8/27/06, Rocco Stanzione <email address hidden> wrote:
> This "works for me" in dapper, and there has been no activity on this
> bug since it went "needs info" almost 7 months ago. Closing.
>
> ** Changed in: gaim (Ubuntu)
> Status: Needs Info => Fix Released
>
> --
> Gaim can't connect to any jabber server
> https://launchpad.net/bugs/24787
>

--
Hongzheng Wang

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.