Held locks in gst_queue_loop.

Stirling Westrup swestrup at gmail.com
Fri Feb 1 12:30:45 PST 2013


I've been running my program under helgrind to look for race
conditions. So far I haven't found anything that's definitely serious,
but helgrind always complains on shutdown that 5 threads are still
holding locks when they terminate. In every case the backtrace looks
like this:


==31409== Thread #9: Exiting thread still holds 1 lock
==31409==    at 0x5CA443C: pthread_cond_wait@@GLIBC_2.3.2
(pthread_cond_wait.S:162)
==31409==    by 0x4C2B698: pthread_cond_wait_WRK (hg_intercepts.c:679)
==31409==    by 0x59FE78E: g_cond_wait (in /usr/lib64/libglib-2.0.so.0.3200.1)
==31409==    by 0xCFB0433: gst_queue_loop (gstqueue.c:1149)
==31409==    by 0x4EBAED6: gst_task_func (gsttask.c:316)
==31409==    by 0x59E5678: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==31409==    by 0x59E48A4: ??? (in /usr/lib64/libglib-2.0.so.0.3200.1)
==31409==    by 0x4C2D01D: mythread_wrapper (hg_intercepts.c:221)
==31409==    by 0x5CA0850: start_thread (pthread_create.c:301)

Is this expected, or is it a sign of a bug?

--
Stirling Westrup
Programmer, Entrepreneur.
https://www.linkedin.com/e/fpf/77228
http://www.linkedin.com/in/swestrup
http://technaut.livejournal.com
http://sourceforge.net/users/stirlingwestrup


More information about the gstreamer-devel mailing list