<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 20 mai 2019 07 h 25, Rohan0993 <<a href="mailto:rohan.chawhan@matrixcomsec.com">rohan.chawhan@matrixcomsec.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am trying to check the memory leakage of my program using Valgrind.<br>
<br>
Note: my program contains an FSM which is polled at every 200ms.(mentioning<br>
this because I think this might have something to do with the leaks)<br>
<br>
I have executed the following command and created the log file.<br>
<br>
*valgrind --leak-check=full --track-origins=yes --verbose<br>
--log-file=valgrind_test.log ./foo*<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">We have a suppression in the main got repository for that, you might also need the one from glib (this one is often installed with the -devel package).</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I see there are leaks in the gst library, and 90% of them are following the<br>
same route/path as given below<br>
<br>
*==9890== 96 bytes in 1 blocks are possibly lost in loss record 2,341 of<br>
2,707<br>
==9890==    at 0x4C30035: calloc (in<br>
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)<br>
==9890==    by 0x66D96B0: g_malloc0 (in /usr/lib64/libglib-2.0.so.0.5400.3)<br>
==9890==    by 0x69CB421: ??? (in /usr/lib64/<a href="http://libgobject-2.0.so" target="_blank" rel="noreferrer">libgobject-2.0.so</a>.0.5400.3)<br>
==9890==    by 0x69CB5CA: ??? (in /usr/lib64/<a href="http://libgobject-2.0.so" target="_blank" rel="noreferrer">libgobject-2.0.so</a>.0.5400.3)<br>
==9890==    by 0x69D1062: g_type_register_fundamental (in<br>
/usr/lib64/<a href="http://libgobject-2.0.so" target="_blank" rel="noreferrer">libgobject-2.0.so</a>.0.5400.3)<br>
==9890==    by 0x6CBADD1: gst_fraction_get_type (gstvalue.c:7428)<br>
==9890==    by 0x6CBB0B5: _priv_gst_value_initialize (gstvalue.c:7527)<br>
==9890==    by 0x6C23B50: init_post (gst.c:777)<br>
==9890==    by 0x66E011F: g_option_context_parse (in<br>
/usr/lib64/libglib-2.0.so.0.5400.3)<br>
==9890==    by 0x6C2462E: gst_init_check (gst.c:427)<br>
==9890==    by 0x6C24676: gst_init (gst.c:471)<br>
==9890==    by 0x5546CC: main (foo.cpp:97)*<br>
<br>
how to find what this mean and solve this <br>
<br>
*==9890==    by 0x69CB421: ??? (in /usr/lib64/<a href="http://libgobject-2.0.so" target="_blank" rel="noreferrer">libgobject-2.0.so</a>.0.5400.3)*<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>