xchat-gnome crashes on 'save transcript' on blank screen

Bug #52692 reported by Stevie Beth Mhaol
2
Affects Status Importance Assigned to Milestone
xchat-gnome (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: xchat-gnome

Steps to reproduce the crash:
1. load xchat-gnome
2. type ctrl-s OR discussion->save transcript

Expected result:
A save dialog, or maybe that the option is disabled until there's some text in the buffer.

Actual result:
Segfaults every time.

Revision history for this message
Stevie Beth Mhaol (kormat) wrote : Gdb backtrace

Here is the gdb backtrace i get when this bug is triggered.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. Which version of Ubuntu do you use? Can you get another backtrace with libgtk2.0-0-dbg libglib2.0-0-dbg and libc6-dbg installed?

Changed in xchat-gnome:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
importance: Untriaged → Medium
Revision history for this message
Guillaume Desmottes (cassidy) wrote :

I can't reproduce this bug.
Is there any other people here having this issue?

Revision history for this message
Stevie Beth Mhaol (kormat) wrote :

Sorry, really should have included those details. I'm using ubuntu 6.06. xchat-gnome version 0.11-0ubuntu6. It is 100% reproducible on the two dapper machines i have here.

Revision history for this message
Stevie Beth Mhaol (kormat) wrote :

Crud. That last attachment seems to have gotten eaten. Attaching again with a less launchpad-hostile name.

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

Could you give us a trace using a xchat-gnome with debug symbols please?
If needed you can use this package http://www.cerkinfo.be/~kujo/xchat-gnome_0.11-0ubuntu5_i386.deb

Do you have this crash with a fresh user?
What's your locales?
Did you try with C as locales?

Revision history for this message
Stevie Beth Mhaol (kormat) wrote :

I tried with the above linked debug xchat-gnome package, same crash, and the backtrace (attached) looks very similar. I've just tried this with a fresh user, same crash every time. My locale is LANG=en_IE.UTF-8. Trying with LANG=C made no difference.

Revision history for this message
Stevie Beth Mhaol (kormat) wrote :

I'm attaching the output from bug buddy too in case that's more informative, also generated from the debug xchat-gnome package.

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

Thanks for all these backtraces Stephen. :)

Could you try to run this little test program please?

Revision history for this message
Stevie Beth Mhaol (kormat) wrote :

Sure:

diamond@weasel:~/Desktop(0)$ ./test
2006-07-15-10h10

Revision history for this message
Stevie Beth Mhaol (kormat) wrote :

Found the issue, here's a patch that fixes it. It's been a while since i last did gtk programming, so it may not be the cleanest way to handle this. Disabling the menu entry (and keyboard shortcut) until there is something to save would probably be best.

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

Ahhhh i just understood than you haven't any session launched!
Sorry for noise, i was looking at the wrong line for the bug.

Thanks a lot for your patch but i don't think a error popup is useful here. I prefer to just don't do anything if there is no session (like with others functionnalities).

Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.

Sat Jul 15 21:42:52 CEST 2006 Guillaume Desmottes <email address hidden>

 * src/fe-gnome/conversation-panel.c:
   - Fix a crash when saving transcript without current
     session. (Launchpad: #52692)
 * src/fe-gnome/main-window.c:
   - Fix a crash when leaving discussion without current
     session.

Changed in xchat-gnome:
status: Needs Info → Fix Committed
Revision history for this message
Sebastien Bacher (seb128) wrote :

This upload fixes the issue:

 xchat-gnome (1:0.13-0ubuntu1) edgy; urgency=low
 .
   * New upstream version, UVF granted by Colin Watson:
     - Add the ability to auto-join keyed channels (Ubuntu: #29856)
     - Add the red-line unread indicator (Ubuntu: #30642)
     - Lots and lots of major bug fixes
     - Fix a crash when saving transcript without current session
       (Ubuntu: #52692)
     - Fix crasher when using /server <servername> (Ubuntu: #45312)
   * debian/control.in:
     - Build-Depends on libssl-dev instead of libssl0.9.8 (Ubuntu: #52746)
   * debian/patches/03_autoconf.patch:
     - updated

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