how can i build a debug (non optimized version) of gstreamer though cerbero?

Sebastian Dröge sebastian at centricular.com
Fri Jan 6 09:43:05 UTC 2017


On Wed, 2017-01-04 at 10:12 -0800, fvanzile wrote:
> how can i build a debug (non optimized version) of gstreamer though cerbero?
> 
> I am working on a mac app that uses gstreamer to show 8-10 rtp streams (ip
> cameras).  I am getting random memory crashes/corruption.  I would like to
> build a full debug version of gstreamer and all it's components with
> cerbero.  How can I build a debug (non optimized version)?  Also, any hints
> on how to find the memory corruption in the gstreamer pipelines would be
> great.  

You could modify the CFLAGS in config/darwin.config from -O2 -g to -O0
-g. That should give you an unoptimized debug build.

But even without that, the debug symbols should all be there and are
usually enough to track down problems. Use a debugger and something
like valgrind to track down the problem, and also try to make your
pipeline as minimal as possible (remove unneeded elements, etc).


If you can, also share some more details here like a testcase that can
reproduce it or the backtrace of the crash.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170106/7323155e/attachment.sig>


More information about the gstreamer-devel mailing list