SIGSEGV seen while adding TDT/TOT section in mpegtsmux

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

SIGSEGV seen while adding TDT/TOT section in mpegtsmux

Baby Octopus
Administrator
Hi,

I'm modifying mpegtsmux to add TDT and TOT section for which I'm using gst_mpegts_tdt_new(). Unfortunately, I see crash in g_slice_alloc0 function of gst_mpegts_tdt_new()

I'm kind a lost since this is a void function where I dont pass any argument. Also, it is crashing in trivial function such as g_slice_alloc0 :) Here is the BT

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fff53fff700 (LWP 27028)]
0x00007ffff70994ca in g_slice_alloc () from /usr/lib64/libglib-2.0.so.0
Missing separate debuginfos, use: debuginfo-install gstreamer-1.6.2.21-0.el7.centos.x86_64
(gdb) bt
#0  0x00007ffff70994ca in g_slice_alloc () at /usr/lib64/libglib-2.0.so.0
#1  0x00007ffff70999ae in g_slice_alloc0 () at /usr/lib64/libglib-2.0.so.0
#2  0x00007fffeeb044ab in gst_mpegts_tdt_new () at gstmpegtssection.c:544


Any clue will be real be helpful to move this roadblock :)
Reply | Threaded
Open this post in threaded view
|

Re: SIGSEGV seen while adding TDT/TOT section in mpegtsmux

Sebastian Dröge-3
On Di, 2016-06-21 at 06:05 -0700, Baby Octopus wrote:

> Hi,
>
> I'm modifying mpegtsmux to add TDT and TOT section for which I'm
> using
> gst_mpegts_tdt_new(). Unfortunately, I see crash in g_slice_alloc0
> function of gst_mpegts_tdt_new()
>
> I'm kind a lost since this is a void function where I dont pass any
> argument. Also, it is crashing in trivial function such as
> g_slice_alloc0 :)
Not passing any arguments would be a problem. g_slice_alloc0() takes
the allocation size as its one and only argument.

Usually if that function is crashing it means that somewhere along the
way before the actual crash you caused memory corruption in one way or
another. Run your application in valgrind and check what it complains
about.

--

Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SIGSEGV seen while adding TDT/TOT section in mpegtsmux

Nicolas Dufresne-4
In reply to this post by Baby Octopus
Le mardi 21 juin 2016 à 06:05 -0700, Baby Octopus a écrit :

> *Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x7fff53fff700 (LWP 27028)]
> 0x00007ffff70994ca in g_slice_alloc () from /usr/lib64/libglib-
> 2.0.so.0
> Missing separate debuginfos, use: debuginfo-install
> gstreamer-1.6.2.21-0.el7.centos.x86_64
> (gdb) bt
> #0  0x00007ffff70994ca in g_slice_alloc () at /usr/lib64/libglib-
> 2.0.so.0
> #1  0x00007ffff70999ae in g_slice_alloc0 () at /usr/lib64/libglib-
> 2.0.so.0
> #2  0x00007fffeeb044ab in gst_mpegts_tdt_new () at
> gstmpegtssection.c:544
> *
>
> Any clue will be real be helpful to move this roadblock :)

Looks like memory corruption. Run under valgrind, and set
G_SLICE=always_malloc

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel