From: <pa...@pr...> - 2003-05-22 09:11:52
|
Someone might help me? during use of your program valgrind 1.9.6 on Linux RedHat 8.0 i686-linux-= =20 with glibc2.3.2-4.80.6 i got the following report, which might be interes= ting=20 for you. This problem cause, that i cant use for valgrind memory leak=20 detections in my code. Could you please remove this problem, or tell=20 me how to use valgrind to avoid this failure. best regards Slavomir valgrind: vg_scheduler.c:2469 (do_pthread_mutex_lock): Assertion=20 `mutex->__m_owner =3D=3D ((ThreadId)(0))' failed. sched status: Thread 1: status =3D Runnable, associated_mx =3D 0x0, associated_cv =3D 0= x0 =3D=3D11645=3D=3D at 0x40170C43: vgAllRoadsLeadToRome_select (vg_inter= cept.c:95) =3D=3D11645=3D=3D by 0x40170D54: __select (vg_intercept.c:681) =3D=3D11645=3D=3D by 0x40311A35: ACE_OS::select(int, fd_set*, fd_set*,= fd_set*,=20 ACE_Time_Value const*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:4953) =3D=3D11645=3D=3D by 0x4036D4C7:=20 ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>=20 >::wait_for_multiple_events(ACE_Select_Reactor_Handle_Set&, ACE_Time_Valu= e*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/Select_Reactor_T.cpp:106= 5) Thread 2: status =3D WaitCV, associated_mx =3D 0x430CDD14, associated_cv = =3D=20 0x4580FC28 =3D=3D11645=3D=3D at 0x41001CC5: pthread_cond_wait (vg_libpthread.c:10= 82) =3D=3D11645=3D=3D by 0x4034F0FE: ACE_OS::cond_timedwait(pthread_cond_t= *,=20 pthread_mutex_t*, ACE_Time_Value*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:2278) =3D=3D11645=3D=3D by 0x4034DF57:=20 ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*= )=20 (Synch.cpp:649) =3D=3D11645=3D=3D by 0x4034DF86: ACE_Condition_Thread_Mutex::wait(ACE_= Time_Value=20 const*) (Synch.cpp:658) Thread 3: status =3D Sleeping, associated_mx =3D 0x0, associated_cv =3D 0= x0 =3D=3D11645=3D=3D at 0x40170C43: vgAllRoadsLeadToRome_select (vg_inter= cept.c:95) =3D=3D11645=3D=3D by 0x40170D54: __select (vg_intercept.c:681) =3D=3D11645=3D=3D by 0x40311A35: ACE_OS::select(int, fd_set*, fd_set*,= fd_set*,=20 ACE_Time_Value const*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:4953) =3D=3D11645=3D=3D by 0x4036D4C7:=20 ACE_Select_Reactor_T<ACE_Select_Reactor_Token_T<ACE_Token>=20 >::wait_for_multiple_events(ACE_Select_Reactor_Handle_Set&, ACE_Time_Valu= e*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/Select_Reactor_T.cpp:106= 5) Thread 4: status =3D WaitCV, associated_mx =3D 0x4307B238, associated_cv = =3D=20 0x4307B254 =3D=3D11645=3D=3D at 0x41001CC5: pthread_cond_wait (vg_libpthread.c:10= 82) =3D=3D11645=3D=3D by 0x4034F0FE: ACE_OS::cond_timedwait(pthread_cond_t= *,=20 pthread_mutex_t*, ACE_Time_Value*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:2278) =3D=3D11645=3D=3D by 0x4034DF57:=20 ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*= )=20 (Synch.cpp:649) =3D=3D11645=3D=3D by 0x4034DF86: ACE_Condition_Thread_Mutex::wait(ACE_= Time_Value=20 const*) (Synch.cpp:658) Thread 5: status =3D WaitMX, associated_mx =3D 0x4307B0E4, associated_cv = =3D 0x0 =3D=3D11645=3D=3D at 0x410019EC: __pthread_mutex_lock (vg_libpthread.c= :938) =3D=3D11645=3D=3D by 0x806460A: PASDispatcher::Service()=20 (/devel/lib/ACE-TAO_debug/ACE_wrappers/ace/OS.i:1382) =3D=3D11645=3D=3D by 0x8064337: PASDispatcher::svc() (PASDispatcher.cp= p:158) =3D=3D11645=3D=3D by 0x403D2ADC: ACE_Task_Base::svc_run(void*) (Task.c= pp:203) Thread 6: status =3D WaitCV, associated_mx =3D 0x4308562C, associated_cv = =3D=20 0x43085648 =3D=3D11645=3D=3D at 0x41001CC5: pthread_cond_wait (vg_libpthread.c:10= 82) =3D=3D11645=3D=3D by 0x4034F0FE: ACE_OS::cond_timedwait(pthread_cond_t= *,=20 pthread_mutex_t*, ACE_Time_Value*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:2278) =3D=3D11645=3D=3D by 0x4034DF57:=20 ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*= )=20 (Synch.cpp:649) =3D=3D11645=3D=3D by 0x4034DF86: ACE_Condition_Thread_Mutex::wait(ACE_= Time_Value=20 const*) (Synch.cpp:658) Thread 7: status =3D Runnable, associated_mx =3D 0x0, associated_cv =3D 0= x0 =3D=3D11645=3D=3D at 0x41001CC5: pthread_cond_wait (vg_libpthread.c:10= 82) =3D=3D11645=3D=3D by 0x4034F0FE: ACE_OS::cond_timedwait(pthread_cond_t= *,=20 pthread_mutex_t*, ACE_Time_Value*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:2278) =3D=3D11645=3D=3D by 0x4034DF57:=20 ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*= )=20 (Synch.cpp:649) =3D=3D11645=3D=3D by 0x4034DF86: ACE_Condition_Thread_Mutex::wait(ACE_= Time_Value=20 const*) (Synch.cpp:658) Thread 8: status =3D WaitCV, associated_mx =3D 0x4307AA08, associated_cv = =3D=20 0x4307AA24 =3D=3D11645=3D=3D at 0x41001CC5: pthread_cond_wait (vg_libpthread.c:10= 82) =3D=3D11645=3D=3D by 0x4034F0FE: ACE_OS::cond_timedwait(pthread_cond_t= *,=20 pthread_mutex_t*, ACE_Time_Value*)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:2278) =3D=3D11645=3D=3D by 0x4034DF57:=20 ACE_Condition_Thread_Mutex::wait(ACE_Thread_Mutex&, ACE_Time_Value const*= )=20 (Synch.cpp:649) =3D=3D11645=3D=3D by 0x4034DF86: ACE_Condition_Thread_Mutex::wait(ACE_= Time_Value=20 const*) (Synch.cpp:658) Thread 9: status =3D Runnable, associated_mx =3D 0x0, associated_cv =3D 0= x0 =3D=3D11645=3D=3D at 0x410019EC: __pthread_mutex_lock (vg_libpthread.c= :938) =3D=3D11645=3D=3D by 0x807D5E1: PASDClienthandler::svc()=20 (/devel/lib/ACE-TAO_debug/ACE_wrappers/ace/OS.i:1382) =3D=3D11645=3D=3D by 0x403D2ADC: ACE_Task_Base::svc_run(void*) (Task.c= pp:203) =3D=3D11645=3D=3D by 0x403598A4: ACE_Thread_Adapter::invoke_i()=20 (Thread_Adapter.cpp:150) Thread 10: status =3D WaitFD, associated_mx =3D 0x0, associated_cv =3D 0x= 0 =3D=3D11645=3D=3D at 0x411D81B8: __GI___libc_read (in /lib/libc-2.3.2.= so) =3D=3D11645=3D=3D by 0x4030AA63: ACE_OS::read(int, void*, unsigned)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/OS.i:8258) =3D=3D11645=3D=3D by 0x40311F7B: ACE::recv_i(int, void*, unsigned)=20 (/devel/libraries/ACE-TAO_debug/ACE_wrappers/ace/ACE.i:226) =3D=3D11645=3D=3D by 0x4030EA1B: ACE::recv_n_i(int, void*, unsigned, u= nsigned*)=20 (ACE.cpp:985) |