Comment 0 for bug 974038

Revision history for this message
Juha Aatrokoski (jha-kurp) wrote :

gtimer segfaults at startup when run on precise beta, with the following info from gdb:

Program received signal SIGSEGV, Segmentation fault.
create_main_window_menu_bar () at main.c:2055
2055 g_message(gettext("Building menu Failed: %s \n"), err->message);

My guess is that newer GTK+ does not touch the uninitialized pointer 'err' unless an error actually occurs (whether this is a bug in GTK+ or by design I don't know). I've attached a patch to fix this, at least gtimer starts OK with it applied (I don't use it myself so it's hard to say more). However, similar bugs caused by uninitialized pointers may lurk elsewhere in the code.