Ok, the secret to causing the seg fault seems to be that I am running the application UI on a thread, starting gtk.main() in a context like this:
gtk.gdk.threads_init()
gtk.gdk.threads_enter()
gtk.main()
gtk.gdk.threads_leave()
When I comment out gtk.gdk.threads_enter(), and gtk.gdk.threads_leave() the program does not seg fault.
Ok, the secret to causing the seg fault seems to be that I am running the application UI on a thread, starting gtk.main() in a context like this: threads_ init() threads_ enter() threads_ leave()
gtk.gdk.
gtk.gdk.
gtk.main()
gtk.gdk.
When I comment out gtk.gdk. threads_ enter() , and gtk.gdk. threads_ leave() the program does not seg fault.