Re: Application crash



On Wed, Nov 29, 2006 at 12:47:20AM +0900, Ishii Satoshi wrote:
My application crashes after working for about a month. It works fine for 
the time being. 
The core shows gtk part only except main. 
gtk version is 2,4. 

Does anyone know how I can debug this kind of case? 

If you mean the app was running for a month continuously and
then crashed, not much can be done.

If your distro has -debuginfo, -debug, -dbg, or how they're
called, packages with debugging info you can try to install
them to get more information from gdb.  Find out what event
it was, what was the object involved, function args, etc.

Except that this stack trace...

#0  0xb7c22a9a in g_object_remove_weak_pointer () from 
/usr/lib/libgobject-2.0.so.0 
#1  0xb7d02d61 in expose_serial_predicate () from 
/usr/lib/libgdk-x11-2.0.so.0 
#2  0xb7d030a5 in expose_serial_predicate () from 
/usr/lib/libgdk-x11-2.0.so.0 
#3  0xb7cfcb9d in gdk_x11_register_standard_event_type () from 
/usr/lib/libgdk-x11-2.0.so.0 
#4  0xb7cfd6fd in gdk_x11_register_standard_event_type () from 
/usr/lib/libgdk-x11-2.0.so.0 
#5  0xb7cfd891 in gdk_x11_register_standard_event_type () from 
/usr/lib/libgdk-x11-2.0.so.0 
#6  0xb7bb2e4a in g_main_depth () from /usr/lib/libglib-2.0.so.0 
#7  0xb7bb3f28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 

#8  0xb7bb4260 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0 

#9  0xb7bb48a3 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0 
#10 0xb7e39403 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0 
#11 0x0809f138 in main (argc=1, argv=0xbfffe664) at main.cc:252 

...is bogus.  At least all the stuff from
gdk_x11_register_standard_event_type() upward.  Either the
stack was overwritten, or the debug info does not match the
binaries.  Hm, is your program multithreaded?  Anyway, I
don't understand the Glib main loop locking code, so I
cannot tell what could go wrong there.

Yeti


--
Whatever.



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