autoaway plugin crashs

Bug #39461 reported by aamukahvi
16
Affects Status Importance Assigned to Milestone
xchat-gnome (Ubuntu)
Fix Released
High
Ubuntu Desktop Bugs

Bug Description

Here is the output of "Inform the Developers":
--------------------------------------------------------------------------------------------
From: <>
To: <email address hidden>
X-Mailer: bug-buddy 2.14.0
Subject: X-Chat Gnome crashes when connecting

Distribution: Ubuntu 6.06 (dapper)
Package: xchat-gnome
Severity: Normal
Version: GNOME2.14.1 0.11
Gnome-Distributor: Ubuntu
Synopsis: X-Chat Gnome crashes when connecting
Bugzilla-Product: xchat-gnome
Bugzilla-Component: general
Bugzilla-Version: 0.11
BugBuddy-GnomeVersion: 2.0 (2.14.1)
Description:
Description of the crash:
Shortly after a connection with the server is made, X-Chat Gnome
crashes.

Steps to reproduce the crash:
1. Connect to network (any network will do, I tried with Ubuntu &
irc1.inet.fi [IRCnet] )
2. wait 1-2 seconds
3. CRASH

Expected Results:
program crashes (restart, close, inform devs)

How often does this happen?
Every time.

Additional Information:
No plugins were in use at the time of the crash.

Debugging Information:

Backtrace was generated from '/usr/bin/xchat-gnome'

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1226676544 (LWP 28381)]
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
0xffffe410 in __kernel_vsyscall ()
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7ded463 in __waitpid_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0xb7ee4746 in libgnomeui_module_info_get ()
   from /usr/lib/libgnomeui-2.so.0
#3 <signal handler called>
#4 0xb69c4fbf in get_xss_screensaver_active ()
   from /usr/lib/xchat-gnome/plugins/autoaway.so
#5 0xb69c5317 in get_gs_screensaver_active ()
   from /usr/lib/xchat-gnome/plugins/autoaway.so
#6 0xb69c5381 in get_gs_screensaver_active ()
   from /usr/lib/xchat-gnome/plugins/autoaway.so
#7 0x0808e140 in plugin_load ()
#8 0xb773c448 in g_main_context_is_owner () from
/usr/lib/libglib-2.0.so.0
#9 0xb773a876 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#10 0xb773d936 in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
#11 0xb773dc58 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#12 0xb7ab3495 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#13 0x080607ca in fe_main ()
#14 0x08098a90 in main ()

Thread 1 (Thread -1226676544 (LWP 28381)):
#0 0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7ded463 in __waitpid_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#2 0xb7ee4746 in libgnomeui_module_info_get ()
   from /usr/lib/libgnomeui-2.so.0
No symbol table info available.
#3 <signal handler called>
No symbol table info available.
#4 0xb69c4fbf in get_xss_screensaver_active ()
   from /usr/lib/xchat-gnome/plugins/autoaway.so
No symbol table info available.
#5 0xb69c5317 in get_gs_screensaver_active ()
   from /usr/lib/xchat-gnome/plugins/autoaway.so
No symbol table info available.
#6 0xb69c5381 in get_gs_screensaver_active ()
   from /usr/lib/xchat-gnome/plugins/autoaway.so
No symbol table info available.
#7 0x0808e140 in plugin_load ()
No symbol table info available.
#8 0xb773c448 in g_main_context_is_owner () from
/usr/lib/libglib-2.0.so.0
No symbol table info available.
#9 0xb773a876 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0xb773d936 in g_main_context_check () from
/usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0xb773dc58 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0xb7ab3495 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
No symbol table info available.
#13 0x080607ca in fe_main ()
No symbol table info available.
#14 0x08098a90 in main ()
No symbol table info available.
#0 0xffffe410 in __kernel_vsyscall ()

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

Thanks for the bug report. Unfortunately, that stack trace is not very useful in determining the cause of the crash. Can you get us one with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so.

Could you also try to disable the autoaway plugin and test if it still crash?

Changed in xchat-gnome:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
aamukahvi (aamukahvi) wrote :

As I wrote in the report, I have no plugins in use, but I'll try and see if I can produce the debug symbols. :)

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

Ohh sorry, i missed that.

If you can't, i'll build tonight a package with debug symbols.

Revision history for this message
aamukahvi (aamukahvi) wrote :

Yeah that would be great, as I don't have much experience of compiling (just the ./configure, make, make install routine)

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

Try with this one: http://www.cerkinfo.be/~kujo/xchat-gnome_0.11-0ubuntu1_i386.deb

Install libgtk2.0-0-dbg and libsexy2-dbg could be a good idea to.

Revision history for this message
aamukahvi (aamukahvi) wrote :

I installed the deb and also the packages you recommended.
Here's the debug info now:
--------------------------------------------------------------------
Backtrace was generated from '/usr/bin/xchat-gnome'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1226631488 (LWP 30031)]
0xffffe410 in __kernel_vsyscall ()
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7df8463 in __waitpid_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
#2 0xb7eef746 in libgnomeui_module_info_get ()
   from /usr/lib/libgnomeui-2.so.0
#3 <signal handler called>
#4 0xb69cdfbf in get_xss_screensaver_active () at xscreensaver.c:38
#5 0xb69ce317 in get_screensaver_active () at autoaway.c:83
#6 0xb69ce381 in timeout_cb (user_data=0x0) at autoaway.c:163
#7 0x0808e140 in plugin_timeout_cb (hook=0x840ad90) at plugin.c:626
#8 0xb7747448 in g_main_context_is_owner () from /usr/lib/libglib-2.0.so.0
#9 0xb7745876 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#10 0xb7748936 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#11 0xb7748c58 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#12 0xb7abe495 in IA__gtk_main () at gtkmain.c:1026
#13 0x080607ca in fe_main () at fe-gnome.c:180
#14 0x08098a90 in main (argc=-1231230709, argv=0xb69ce90b) at xchat.c:1017

Thread 1 (Thread -1226631488 (LWP 30031)):
#0 0xffffe410 in __kernel_vsyscall ()
No symbol table info available.
#1 0xb7df8463 in __waitpid_nocancel ()
   from /lib/tls/i686/cmov/libpthread.so.0
No symbol table info available.
#2 0xb7eef746 in libgnomeui_module_info_get ()
   from /usr/lib/libgnomeui-2.so.0
No symbol table info available.
#3 <signal handler called>
No symbol table info available.
#4 0xb69cdfbf in get_xss_screensaver_active () at xscreensaver.c:38
No locals.
#5 0xb69ce317 in get_screensaver_active () at autoaway.c:83
No locals.
#6 0xb69ce381 in timeout_cb (user_data=0x0) at autoaway.c:163
No locals.
#7 0x0808e140 in plugin_timeout_cb (hook=0x840ad90) at plugin.c:626
 ret = <value optimized out>
#8 0xb7747448 in g_main_context_is_owner () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#9 0xb7745876 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#10 0xb7748936 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#11 0xb7748c58 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
No symbol table info available.
#12 0xb7abe495 in IA__gtk_main () at gtkmain.c:1026
 tmp_list = (GList *) 0x0
 functions = (GList *) 0x0
 init = (GtkInitFunction *) 0x0
 loop = (GMainLoop *) 0x83de970
#13 0x080607ca in fe_main () at fe-gnome.c:180
No locals.
#14 0x08098a90 in main (argc=-1231230709, argv=0xb69ce90b) at xchat.c:1017
 ret = <value optimized out>
#0 0xffffe410 in __kernel_vsyscall ()

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

Strange, it seems to crash in the autoaway plugin.
Are you it is not loaded ?

Could you put your output of "gconftool-2 -g /apps/xchat/plugins/loaded"?

Revision history for this message
aamukahvi (aamukahvi) wrote :

Here:
[/usr/lib/xchat-gnome/plugins/netmonitor.so,
/usr/lib/xchat-gnome/plugins/dbus.so,
/usr/lib/xchat-gnome/plugins/notification.so,
/usr/lib/xchat-gnome/plugins/notification.so,
/usr/lib/xchat-gnome/plugins/soundnotification.so,
/usr/lib/xchat-gnome/plugins/notifyosd.so,
/usr/lib/xchat-gnome/plugins/autoaway.so,
/usr/lib/xchat-gnome/plugins/dbus.so,
/usr/lib/xchat-gnome/plugins/soundnotification.so, /usr/lib/xchat-gnome/plugins/soundnotification.so]

No plugins are selected in xchat-gnome preferences, though. Some, including auto-away, were selected when the first crash occurred. I then tried without the plugins. When it crashed again, with (seemingly) no plugins, I thought it wasn't the plugins.

Revision history for this message
aamukahvi (aamukahvi) wrote :

I deleted the key using gconf-editor and it seems fine now. I'm going to test using the plugins again.

Revision history for this message
aamukahvi (aamukahvi) wrote :

Having deleted the gconf key, I only enabled Auto Away plugin, and it crashed as reliably as before. =)

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

It seems he's not using gnome-screensaver.
Do you have any idea why?

Could you launch x-g in a term and paste the output?

Revision history for this message
aamukahvi (aamukahvi) wrote :

There was no output, I crashed x-g but no output on terminal. As for gnome-screensaver, I have no idea. ubuntu-desktop is installed as is gnome-screensaver.

I tried with the screensaver enabled and disabled. No effect.

Revision history for this message
Isak Savo (isak-savo) wrote :

I've emailed Guillaume a patch that fixes this issue. The patch also fixes a bug which caused autoaway to not work on some non-english systems.

/Isak - Autoaway author

Revision history for this message
Isak Savo (isak-savo) wrote : Fix crash patch

This is the patch that has been mailed upstream. Attaching it here for the sake of completeness.

This patch also fixes two strings that were incorrectly marked for translation - Makes autoaway work on non-english systems...

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

Thanks for your patch Isak!

I rebuild a package with it : http://www.cerkinfo.be/~kujo/xchat-gnome_0.11-0ubuntu1_i386.deb
aamukahvi, could you test it to be sure than it fixes your crash?

Revision history for this message
aamukahvi (aamukahvi) wrote :

*thumbs up*

That patched deb works for me. No more crashing on connect.

Good work, guys! =)

Revision history for this message
Guillaume Desmottes (cassidy) wrote :

Nice!
We still don't know why it doesn't use gnome-screensaver but at least it doesn't crash anymore.

I will commit this patch upstream.
Sébastien, maybe it would be a good idea to integrate it into Dapper's package.

Revision history for this message
aamukahvi (aamukahvi) wrote :

It does use screensaver, now that it doesn't crash immediately. And works great!

Here's the server window output:
[15:30]--- Unknown MODE flag
[15:30]--- [NickServ] is away (Gone, for more info use WHOIS NickServ NickServ)
[15:30]-NickServ- NickServ does NOT exist on this net!
[15:31] Screensaver activated, going away.
[15:31]--- You have been marked as being away
[15:32] Screensaver is off, welcome back
[15:32]--- You are no longer marked as being away

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

This upload fixes the issue:

 xchat-gnome (0.11-0ubuntu2) dapper; urgency=low
 .
   * debian/patches/05_fix_set_no_password.patch:
     - patch from SVN, fix "Tries to contact nickserv on gimpnet"
       (GNOME: #338060)
   * debian/patches/06_fix_nickname_alternative.patch:
     - patch from SVN, fix "Uses vuntz__ instead of vuntz_" (GNOME: #338061)
   * debian/patches/07_fix_crash_on_not_connected_right_click.patch:
     - patch from SVN, fix "Crash on right click if no server connected"
       (Ubuntu: #39192)
   * debian/patches/08_fix_xscreensaver_autoaway.patch:
     - patch by Isak Savo <email address hidden>, fix autoaway plugin crasher
       (Ubuntu: #39461)

Changed in xchat-gnome:
status: Needs Info → Fix Released
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.