[Glade-devel] how to debug ?



Il 18/01/2011 21:20, Tristan Van Berkom ha scritto:
On Tue, 2011-01-18 at 13:34 -0500, Archit Baweja wrote:
Hey Francesco,

If you've compiled the glade source yourself, make sure you've
compiled it with debug information. Usually that involves compiling
with the GCC -g flag. Try the following

export CFLAGS='-g' ; ./configure
you can also just ./configure --enable-debug to get the debug flags.

Cheers,
    -Tristan

With that GDB will show you proper names in stack traces instead of
hex values of addresses of functions, routines etc.

And you're right, what you have is not enough. All that part says is
that the Gtk+ subsystem got a NULL value instead of a valid Gtk+
object id. So probably some funtion/routine higher up in the call
stack that is faulty.

Hope that helps,
Archit

On Tue, Jan 18, 2011 at 12:47 PM, francesco at promotux.it
<francesco at promotux.it>  wrote:
         I have a segmentation fault on glade3.7.3 compiled from
         source.
         Some devel can write please wich steps to do for the right
         trace ?

         For now i have just that but i think it is not enough

         (glade-3:31430): GLib-GObject-WARNING **:
         /tmp/buildd/glib2.0-2.27.91/./gobject/gtype.c:4197: type id
         `0' is invalid

         (glade-3:31430): GLib-GObject-WARNING **: can't peek value
         table for
         type `<invalid>' which is not currently referenced
         Segmentation fault


         thanks

         --

         _______________________________________________
         Glade-devel maillist  -  Glade-devel at lists.ximian.com
         http://lists.ximian.com/mailman/listinfo/glade-devel

_______________________________________________
Glade-devel maillist  -  Glade-devel at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-devel

i am sorry, here i am again.

i tried on natty with a deb 3.7.3 package and it segfaulted also.

so i cloned the git  with the last five hours old commit  from Tristan 
and compiled with the flag but no incresed debug for now.

i used gdb  and i have this now:

(glade-3:4274): GladeUI-CRITICAL **: glade_project_model_get_value: 
assertion `VALID_ITER (model, iter)' failed

(glade-3:4274): GLib-GObject-WARNING **: 
/tmp/buildd/glib2.0-2.27.91/./gobject/gtype.c:4197: type id `0' is invalid

(glade-3:4274): GLib-GObject-WARNING **: can't peek value table for type 
`<invalid>' which is not currently referenced

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff76ff169 in gtk_tree_model_get_valist () from 
/usr/lib/libgtk-x11-2.0.so.0

is it more usefull ?

can i add a bug report with this ?

The problem is that i can't attach my gladefile because of a python 
catalog that  glade needs to open the file but i dont think it is 
related with the segfault

thanks




-- 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]