Re: [gtk-list] gthread and pthread problem



Hi, Chungfan

>  I posted a question posing a problem about anormal behavior of
>  the menuitem when it was compiled with -lgthread and -lpthread
>  a week ago.
> 
>  It was that the program becomes response-less when I click on the
>  menuitem if both libgthread and libpthread were used.
> 
>  After a simple private analysis of this anormality, I found that
>  the problem is caused by a deadlock of mutex.
> 
>  Let me give you an evidence that was given by gdb(DDD):
> (gdb) where
> #0  0x401ed164 in __syscall_sigsuspend ()
> #1  0x402116cc in __DTOR_END__ ()
> #2  0x40171e8f in __pthread_mutex_lock (mutex=0x8050188) at
> restart.h:32  <-- HERE
> #3  0x400aaaa4 in gtk_menu_item_select_timeout ()
> #4  0x400aa846 in gtk_real_menu_item_select ()
> #5  0x4011305d in gtk_marshal_NONE__NONE ()
> #6  0x400d3953 in gtk_signal_real_emit ()
> #7  0x400d1a6f in gtk_signal_emit ()
> #8  0x40094798 in gtk_item_select ()
> #9  0x400a9c96 in gtk_menu_item_select ()
> #10 0x400ac900 in gtk_menu_shell_select_item ()
> #11 0x400abb3c in gtk_menu_shell_button_press ()
> #12 0x40112c29 in gtk_marshal_BOOL__POINTER ()
> #13 0x400d3ad7 in gtk_signal_real_emit ()
> #14 0x400d1a6f in gtk_signal_emit ()
> #15 0x40109908 in gtk_widget_event ()
> #16 0x400a4ff2 in gtk_propagate_event ()
> #17 0x400a4178 in gtk_main_do_event ()
> #18 0x4014ec6b in gdk_event_dispatch ()
> #19 0x40231e12 in g_main_dispatch ()
> #20 0x4023240b in g_main_iterate ()
> #21 0x402325c1 in g_main_run ()
> #22 0x400a3b6b in gtk_main ()
> #23 0x8048a40 in main (argc=1, argv=0xbffff9c0) at test.c:34
> (gdb)
> 
>  I don't have any idea if the problem belongs to my own or libgthread.
>  However, let me report this as a fact that I encountered.

This should be solved as of gtk-1.2.2

Bye,
Sebastian
-- 
Sebastian Wilhelmi                   |            här ovanför alla molnen
mailto:wilhelmi@ira.uka.de           |      är himmlen så förunerligt blå
http://goethe.ira.uka.de/~wilhelmi   |



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