[pygtk] Occasional gobject assertion errors
jdahlin at async.com.br
Thu Mar 16 23:23:06 WST 2006
Johan Dahlin wrote:
>> Johan> If you break in gdb, and go to 4th frame (pygobject_emit)
>> Johan> and then run PyString_AsString(PyObject_Repr(args)) you
>> Johan> should be able to see which object it is running emit()
>> Johan> on. Might require debugging symbols.
>> I can't do that because I don't have a process to debug, but from the
>> core file I can poke around and see that the signal being emitted is
>> "value_changed" and the argument to that is an array of 11 floats.
>> The Gtk and PyGtk libraries were not built with debug symbols however.
>> Any idea how to get at pygobject_emit's arguments using the registers?
>> It's been ages since I debugged at this level.
> print PyString_AsString(PyObject_Repr(*(PyObject*)($ebp+16)))
Err, that's the third argument (which pygobject_emit does not have),
should be 12 instead.
Johan Dahlin <jdahlin at async.com.br>
Async Open Source
More information about the pygtk