GNOME Bugzilla – Bug 719398
gst_discoverer_info_get_tags fails to work under valgrind (in some cases)
Last modified: 2013-12-05 23:35:43 UTC
I've noticed some difference in behavior between valgrind and non-valgrind runs of the gst_discoverer_info_get_tags, which may point at a problem. I've isolated the issue into the attached test-program (run like './test-disco <path-to-some-mp3>'). It runs fine normally. However, valgrind --tool=memcheck --leak-check=full --show-possibly-lost=no --leak-resolution=med --track-origins=yes ./test-disco foo.mp3 *usually* (80% or so) fails (with an assert because 'tags' fails); when I leave out the '--track-origins=yes', it *usually* works. (using Valgrind-3.9.0 on Fedora 20, 64-bit).
Could you attach the test program ?
Created attachment 262917 [details] test program
(In reply to comment #1) > Could you attach the test program ? Oh, I had thought I'd done so -- but here it is.
(moving it back to unconfirmed)
It's because you set the timeout to one second.. In the call to gst_discoverer_new(), replace GST_SECOND with 60*GST_SECOND. Running things under valgrind is much slower.
Ah yes, that makes sense. Sorry for the noise.