MPEG-TS and Rust

Sebastian Dröge sebastian at centricular.com
Mon Jul 15 19:24:36 UTC 2019


On Mon, 2019-07-15 at 20:04 +0100, Russel Winder wrote:
> Hi,
> 
> I am finding that from Rust code, via gstreamer_mpegts_sys,
> gst_mpegts_descriptor_parse_dvb_component works fine if there is no text in
> the component descriptor. However as soon as there is any text in the content
> descriptor then I get a SIGSEGV from, according to the CLion stack trace:
> 
> 	__gconv
> 	iconv
> 	g_convert_with_iconv
> 	???
> 	???
> 	gst_mpegts_descriptor_parse_dvb_component
> 
> Has anyone any idea how to find out why there is a SIGSEGV, the code is just
> supposed to collect together n (known) bytes into a nul terminated C string. 

With that little context, one would need a crystal ball to understand
what goes on here :)

You'd need to provide at least a full backtrace with line numbers and
the input, or even better a testcase to reproduce the crash you're
seeing.

> I am guessing there are no tests for this C code. :-(

No, but there's tests/examples/mpegts/ts-parser.c at least using this.

-- 
Sebastian Dröge, Centricular Ltd · https://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/20190715/c1fa07b2/attachment.sig>


More information about the gstreamer-devel mailing list