On Sat, Feb 24, 2001 at 08:45:58PM +0100, Michael Natterer wrote: > David Odin <David.Odin@xxxxxxxxxxx> writes: > > > Hi, > > > > I'm trying to compile and run the current cvs gimp. I know I have to > > expect to bug here or there, but I've seen quite a strange thing: > > When I run the gimp, it always segfault with this backtrace: > > > > #0 g_on_error_stack_trace (prg_name=0xbffffb78 "lt-gimp") at gerror.c:176 > > #1 0x4002a59c in g_on_error_query (prg_name=0xbffffb78 "lt-gimp") > > #2 0x808d57e in gimp_fatal_error (fmt=0x402d2dc0 "Segmentation fault") > > #3 0x80d9bac in gimp_sigfatal_handler (sig_num=11) at main.c:476 > > #4 <signal handler called> > > #5 0x400fc0db in gtk_notebook_update_labels (notebook=0x8588f68) > > #6 0x400feabe in gtk_notebook_insert_page_menu (notebook=0x8588f68, > > #7 0x400fe8a5 in gtk_notebook_append_page (notebook=0x8588f68, child=0x0, > > #8 0x80d78b6 in lc_dialog_create (gimage=0x0) at lc_dialog.c:212 > > #9 0x807da7a in dialogs_lc_cmd_callback (widget=0xbffff970, > > #10 0x80f6a19 in session_open_dialog (info=0x8199038) at session.c:333 > > #11 0x4002dad5 in g_list_foreach (list=0x81f6134, > > #12 0x80f695e in session_restore () at session.c:305 > > #13 0x806a99c in app_init () at app_procs.c:675 > > #14 0x80699e0 in gimp_init (gimp_argc=0, gimp_argv=0xbffffa68) > > #15 0x80d9b04 in init () at main.c:442 > > #16 0x80fcf72 in user_install_verify (user_install_callback=0x80d9af0 <init>) > > #17 0x80d9acb in main (argc=1, argv=0xbffffa64) at main.c:408 > > > > The segfault is ovbiously caused by the call to > > gtk_notebook_append_page() (in frame 8) with NULL as a second parameter. > > > > After further investigation, it happens that this second parameter is > > the return value of the paths_dialog_create() function. > > > > Unfortunately, this function as been temporary replace by a "STUB" > > function (in tools/tool.c) which always return NULL. > > > > So the segfault is almost done on purpose. Is there a workaround so I > > can still launch the gimp and do further testing? Am I missing something > > obvious? Is there a way to compile the current gimp so one can at least > > see the toolbox and/or an edited picture? > > Hi David, > > you need to install glib and gtk+ with debugging enabled. Ohterwise > all g_return_if_fail() macros expand to nothing and gtk+ simply crashes > instead of spitting out warnings and then returning from the function. > > The warning you should get instead of crashing is: > > Gtk-CRITICAL **: file gtknotebook.c: line 3601 (gtk_notebook_insert_page_menu): assertion `child != NULL' failed. > Silly me! I've been doing this many times a few months ago. Thanks. It works better now ;-) DindinX -- David.Odin@xxxxxxxxxxx