Segmentation fault in 2.0.0
Brought to you by:
cknudsen
Hi,
I just compiled/launched gtimer 2.
Launch fails with "Segmentation fault"
Here is the gdb output :
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);
More information:
- OS : Gentoo GNU/Linux
- GTK : 2.18.7
- glib : 2.22.4
Thanks
Hmmm... I saw this same problem when I tried to build with Cygwin on Windows. However, it worked fine on Ubuntu 9.X. I'm not familiar enough with the GTK 2.X API to know what the problem is. (The GTK 2.X port was a patch from someone else.)
Maybe caused because all variables are uninitialized.
Changing line main.c (l2030) form:
GError *err;
to
GError *err = NULL;
seams to solve segmentation fault.