How to debug Gstreamer memory issue?

Nicolas Dufresne nicolas.dufresne at collabora.com
Wed Apr 1 05:08:29 PDT 2015


Le mercredi 01 avril 2015 à 01:52 +0000, Bing Song a écrit :
> Hi,
> 
>  
> 
> I found the root cause of my issue. It is invalid memory write in our
> hardware accelerate video encoder plugin. But it is easy to debug this
> kind of issue with efence (I used it in other project). Do Gstreamer
> has this kind of debug method?

I never tried, we all use valgrind in general. It looks like it's
independent of the project, so you can try:

G_SLICE=always_malloc LD_PRELOAD=libefence.so.0.0 gst-launch-1.0 ...

This is well documented in the Efence man page. The G_SLICE addition is
to avoid using GLib optimized heap for small objects. It is not seen as
alloc/free calls by these tools otherwise.

Nicolas




More information about the gstreamer-devel mailing list