How to debug Gstreamer memory issue?

Bing Song Kevin.Song at freescale.com
Tue Mar 31 18:52:21 PDT 2015


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?

Regards,
Song Bing.

From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of Bing Song
Sent: Monday, March 30, 2015 11:45 AM
To: Discussion of the development of and with GStreamer
Subject: How to debug Gstreamer memory issue?

Hi,

I met one issue when develop camera application based on camerabin.

Issue:

Below two parameters in gstvideoencoder.c will set to NULL after camerabin: capture image->video recorder->capture image.

  GstVideoCodecState *input_state;
  GstVideoCodecState *output_state;

The issue will gone after put those two parameters at the bottom of struct _GstVideoEncoderPrivate.

I tried GDB watch. But camera application can't work normally under GDB environment.

Valgrind is very slow, I think can't used to debug this kind of issue.

Can efence works on Gstreamer 1.x? Electric Fence can used to debug memory corruption.

Regards,
Song Bing.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150401/9ad9760d/attachment.html>


More information about the gstreamer-devel mailing list