Bugs item #1639916, was opened at 2007-01-19 16:42
Message generated for change (Comment added) made by ciran
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100235&aid=1639916&group_id=235

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: segfault
Group: 2.0.0 beta 6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dima Ryazanov (dima_r)
Assigned to: Mark Doliner (thekingant)
>Summary: Crash with blank empty Available status message

Initial Comment:
Come on guys... I crashed Gaim within the first 10 seconds of using it :-/

I changed the status to "Available" for my AIM account (though it already had 
that status), typed nothing, and pressed enter.

Some output and backtrace:

dbus: Need to register an object with the dbus subsystem.
g_log: file dbus-server.c: line 118 (gaim_dbus_pointer_to_id): should not be 
reached
g_log: gaim_status_type_get_id: assertion `status_type != NULL' failed

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1222694368 (LWP 13334)]
0xb73726a8 in strcmp () from /lib/tls/i686/cmov/libc.so.6
(gdb) bt
#0  0xb73726a8 in strcmp () from /lib/tls/i686/cmov/libc.so.6
#1  0x080d0a2d in activate_currently_selected_status (status_box=0x84c9008) at 
gtkstatusbox.c:2122
#2  0x080d1119 in remove_typing_cb (status_box=0x84c9008) at gtkstatusbox.c:2253
#3  0xb7689b29 in g_cclosure_marshal_VOID__VOID () from 
/usr/lib/libgobject-2.0.so.0
#4  0xb767c79b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#5  0xb768cb93 in g_signal_chain_from_overridden () from 
/usr/lib/libgobject-2.0.so.0
#6  0xb768e418 in g_signal_emitv () from /usr/lib/libgobject-2.0.so.0
#7  0xb7b4841b in _gtk_binding_reset_parsed () from /usr/lib/libgtk-x11-2.0.so.0
#8  0xb7b487c8 in _gtk_binding_reset_parsed () from /usr/lib/libgtk-x11-2.0.so.0
#9  0xb7b4899b in _gtk_binding_reset_parsed () from /usr/lib/libgtk-x11-2.0.so.0
#10 0xb7b48bb7 in gtk_bindings_activate () from /usr/lib/libgtk-x11-2.0.so.0
#11 0x080761d0 in gtk_blist_window_key_press_cb (w=0x814f3f0, event=0x84c8d90, 
gtkblist=0x82294b8)
    at gtkblist.c:3738
#12 0xb7c1bb00 in _gtk_marshal_BOOLEAN__BOXED () from 
/usr/lib/libgtk-x11-2.0.so.0
#13 0xb767c79b in g_closure_invoke () from /usr/lib/libgobject-2.0.so.0
#14 0xb768cb93 in g_signal_chain_from_overridden () from 
/usr/lib/libgobject-2.0.so.0
#15 0xb768de7f in g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
#16 0xb768e279 in g_signal_emit () from /usr/lib/libgobject-2.0.so.0
#17 0xb7d2f5f8 in gtk_widget_get_default_style () from 
/usr/lib/libgtk-x11-2.0.so.0
#18 0xb7c14f2a in gtk_propagate_event () from /usr/lib/libgtk-x11-2.0.so.0
#19 0xb7c160f7 in gtk_main_do_event () from /usr/lib/libgtk-x11-2.0.so.0
#20 0xb7a9f7ea in _gdk_events_init () from /usr/lib/libgdk-x11-2.0.so.0
#21 0xb75ef802 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#22 0xb75f27df in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#23 0xb75f2b89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#24 0xb7c16574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#25 0x080ae103 in main (argc=1767994977, argv=0xbfbbbbe4) at gtkmain.c:817


----------------------------------------------------------------------

>Comment By: Megan Schneider (ciran)
Date: 2007-02-16 13:30

Message:
Logged In: YES 
user_id=801517
Originator: NO

Has duplicate 1603961 with another trace

----------------------------------------------------------------------

Comment By: Megan Schneider (ciran)
Date: 2007-02-14 23:55

Message:
Logged In: YES 
user_id=801517
Originator: NO

Has duplicates: 1650161, 1656422
first one has another trace

----------------------------------------------------------------------

Comment By: newyawka (newyawka)
Date: 2007-01-27 15:37

Message:
Logged In: YES 
user_id=1703296
Originator: NO

What I did (to save my away messages) was to edit the status.xml file and
remove all "Auto-Cached" status messages.

For example, I deleted anything that had a stats name equal to
'Auto-Cached' and a "substatus" tag like this one:

        <status name='Auto-Cached' transient='true' created='1169932350'
lastused='1169932350' usage_count='1'>
                <state>available</state>
                <message> </message>
                <substatus>
                        <account protocol='prpl-aim'>MYSCREENNAME</account>
                        <state>available</state>
                        <message> </message>
                </substatus>
        </status>

If you delete the whole tree for each status involving "Available", I
found it to fix mine from crashing (I had about 4, one or two with text in
the <message> area).  Just remember to make a backup.


----------------------------------------------------------------------

Comment By: Mike Nuss (nmx)
Date: 2007-01-26 14:48

Message:
Logged In: YES 
user_id=117471
Originator: NO

The phrase "prpl-oscar" doesn't exist in my status.xml file, but it still
crashes. Was there another suggestion I missed? (Besides deleting
status.xml completely)

----------------------------------------------------------------------

Comment By: Dima Ryazanov (dima_r)
Date: 2007-01-25 23:52

Message:
Logged In: YES 
user_id=967427
Originator: YES

wkc5: Yes, fixing status.xml fixes that crash. But, Gaim still crashes
randomly once in a while. It's usable - but less stable than beta5, in my
opinion.


----------------------------------------------------------------------

Comment By: warriorness (warriorness)
Date: 2007-01-24 15:41

Message:
Logged In: YES 
user_id=1699866
Originator: NO

wkc5: Yes to both (I can only speak for myself though)

----------------------------------------------------------------------

Comment By: greg0rz (greg0rz)
Date: 2007-01-24 10:23

Message:
Logged In: YES 
user_id=1687003
Originator: NO

Deleting status.xml completely solves the problem.

----------------------------------------------------------------------

Comment By: Dima Ryazanov (dima_r)
Date: 2007-01-24 01:01

Message:
Logged In: YES 
user_id=967427
Originator: YES

Weird... They even put a workaround specifically for this in account.c:

        /*
         * HACK by Seanegan
         */
        if (!strcmp(account->protocol_id, "prpl-oscar")) {
                if (isdigit(account->username[0]))
                        return "prpl-icq";
                else
                        return "prpl-aim";
        }

So why didn't they, like, use it?

I'm debugging Gaim right now... Maybe I'll figure it out.


----------------------------------------------------------------------

Comment By: Will (wkc5)
Date: 2007-01-23 15:57

Message:
Logged In: YES 
user_id=193669
Originator: NO

warriorness and others, I'm curious:

1. Is this bug only affecting upgrades from previous gaim 2betas?
2. Does replacing "prpl-oscar" with "prpl-aim" everywhere in status.xml
eliminate the segfaulting?

(I suspect an actual bugfix may not be forthcoming, especially since it
seems only upgrades from earlier betas might be affected.)

----------------------------------------------------------------------

Comment By: Will (wkc5)
Date: 2007-01-23 15:56

Message:
Logged In: YES 
user_id=193669
Originator: NO

warriorness and others, I'm curious:

1. Is this bug only affecting upgrades from previous gaim 2betas?
2. Does replacing "prpl-oscar" with "prpl-aim" everywhere in status.xml
eliminate the segfaulting?

(I suspect an actual bugfix may not be forthcoming, especially since it
seems only upgrades from earlier betas might be affected.)

----------------------------------------------------------------------

Comment By: warriorness (warriorness)
Date: 2007-01-23 15:38

Message:
Logged In: YES 
user_id=1699866
Originator: NO

I get the same, except it does not crash when I type something into the
status box. An empty string, though, produces the segfault. Happens on both
Available and Away.

Gentoo Linux 2.6.19-r4 with Gaim 2.0.0_beta6

----------------------------------------------------------------------

Comment By: Will (wkc5)
Date: 2007-01-22 17:10

Message:
Logged In: YES 
user_id=193669
Originator: NO

Deleting ~/.gaim/status.xml works for me (linux, upgrading from 2beta5).

It seems that the tag 
     <account protocol='prpl-oscar'>[username]</account> 
has changed to 
     <account protocol='prpl-aim'>[username]</account> 
between versions (I only use the AIM protocol, so I don't know about
others).

----------------------------------------------------------------------

Comment By: jivemasta (jivemasta)
Date: 2007-01-22 00:24

Message:
Logged In: YES 
user_id=1547775
Originator: NO

You might be able to just delete the status.xml file, which contains all
of the saved away messages, and then reinstall. I'm just posing what I did
to sucsessfully eliminate any crashing from status changes, which may lead
to a bug fix. 

----------------------------------------------------------------------

Comment By: Dima Ryazanov (dima_r)
Date: 2007-01-22 00:09

Message:
Logged In: YES 
user_id=967427
Originator: YES

Uh... No.

Delete .gaim? And lose all accounts information, buddy lists, logs, etc.?
Isn't that a bit extreme?

And, if some file in .gaim causes a crash - then it's a bug in Gaim.


----------------------------------------------------------------------

Comment By: jivemasta (jivemasta)
Date: 2007-01-22 00:01

Message:
Logged In: YES 
user_id=1547775
Originator: NO

Did everyone having the problem upgrade from an older version? I
completley solved all of the status bugs(changing to away crash, blank
away/available crash, away status not updating) by doing a fresh install of
gaim beta 6. By fresh install I mean, uninstalling gaim and gtk completly,
then going into(for windows) %appdata%\.gaim and deleting all the files in
there. Then reinstalling gaim with the gtk again. This has worked on both
of my windows machines just fine. I'm guessing the same concept would work
in linux versions too.

----------------------------------------------------------------------

Comment By: Pentoast (pentoast)
Date: 2007-01-21 23:28

Message:
Logged In: YES 
user_id=1602154
Originator: NO

I am using Win32 version as well.

I get this same crash. It happens in the same fashion as curlydave stated.
Mine does not crash when I set it to away, but when I set it to invisible
it crashes as well.

----------------------------------------------------------------------

Comment By: David (curlydave)
Date: 2007-01-21 19:31

Message:
Logged In: YES 
user_id=1698177
Originator: NO

I have this problem too. Gaim 2b6 will crash whenever I set the available
message to blank. If I set it to available and enter text it will not
crash. If I set it to available and either a) press enter with a blank
message or b) wait 5 seconds, gaim will crash. No exceptions, does this
every time.

----------------------------------------------------------------------

Comment By: SC_Modder (sc_modder)
Date: 2007-01-20 14:23

Message:
Logged In: YES 
user_id=1697320
Originator: NO

On my win32 machine, I managed to fix this myself by making a patch. The
problem seems to arise because of a call to strcmp(), because gaim is
passing null as the first parameter, causing an access violation. 

----------------------------------------------------------------------

Comment By: jivemasta (jivemasta)
Date: 2007-01-20 04:28

Message:
Logged In: YES 
user_id=1547775
Originator: NO

I'm using the win32 version of gaim beta6 and had the same problem. I have
succesfully fixed it by uninstalling gaim and gtk completly, including all
user data, and reinstalling. I think it has something to do with
differences between the accounts.xml file from beta5 and beta6, since it
saves used away messages to that file for each account.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=100235&aid=1639916&group_id=235

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gaim-bugs mailing list
Gaim-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gaim-bugs

Reply via email to