I owe a beer to Tim Janik
June 16th, 2007 — gianmtSo here is my first post in this brand new blog.
The title is not quite self-explaining but I’ve never been good at titles.
I’m trying to wrap as much as possible of Glib to python, that means, at the moment, avoid duplicating what is already in pygobject and what is in the python standard library, anyway if someone of you guys needs a bit of Glib that has not yet been wrapped let me know.
But what is the reason for the title…well while wrapping GNode and writing test for it I’ve been bitten by a segfault that was impossible to track down with both gdb and valgrind, for a couple of days I was trying to segregate the problem writing minimal test cases, but with this small bits of code valgrind and gdb are “almost” useless.
The problem has been tracked down using G_SLICE=debug-blocks as mentioned in Tim’s blog, that’s finally why I owe a beer to Tim.