Re: gtk text buffer segfault



Olivier Sessink <olivier lx student wau nl> writes: 
it's not easy to reproduce in a very short program, so I hope this 
information will do. I noticed Debian also has a gtk2-debug package, 
would it help to do a backtrace with that package installed?


Yes, unfortunately if you can't provide a small compilable test case
you'll need to help debug the problem. 

I would suggest getting a backtrace with debug symbols, and see what
line is segfaulting, and print the variables involved with that line.

I'd also run your program as follows:

GTK_DEBUG=text myprogram

this will make the text widget very, very slow. But it may manage to
trigger an assertion failure or other more informative kind of crash
than the segfault.

GTK_DEBUG=text will only work if the Debian package was built with
--enable-debug=yes passed to configure (the debug modes are not
enabled by default).

Havoc




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