This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

very confused - why this caused SIGSEGV on DM365?

Hi all, I am using dm365, with gstreamer. I build a simple pipeline, which is:

v4l2src->capsfilter->dmaiaccel->dei->dmairesizer->capsfilter->dmai_jpeg->capsfilter->appsink.

Often, this pipeline crashes on startup with SIGSEGV.

I debug it today.

Here is what I find.(with CE_DEBUG=2)

0:00:11.260929708   426    0x7bb98 INFO           TIDmairesizer gsttidmairesizer.c:648:gst_dmai_resizer_setcaps: The numerator of pixel aspect ratio can't be less than 1, setting to 1
@9,045,749us: [+4 T:0x4210c490] OM - Memory_contigAlloc> CMEM_alloc(829440) = 0x42564000.
@9,046,003us: [+4 T:0x4210c490] OM - Memory_contigAlloc> CMEM_getPhys(0x42564000) = 0x864d3000.
@9,046,508us: [+4 T:0x4210c490] OM - Memory_contigAlloc> CMEM_alloc(829440) = 0x42726000.
@9,046,751us: [+4 T:0x4210c490] OM - Memory_contigAlloc> CMEM_getPhys(0x42726000) = 0x86695000.
@9,047,273us: [+4 T:0x4210c490] OM - Memory_contigAlloc> CMEM_alloc(829440) = 0x428e8000.
@9,047,517us: [+4 T:0x4210c490] OM - Memory_contigAlloc> CMEM_getPhys(0x428e8000) = 0x86857000.
0:00:11.267274417   426    0x7bb98 INFO           TIDmairesizer gsttidmairesizer.c:587:setup_outputBuf: Not Using downstream allocated buffers
0:00:11.301351376   426    0x7bb98 INFO           basetransform gstbasetransform.c:1099:gst_base_transform_setcaps:<rszfilter> reuse caps
0:00:11.305100584   426    0x7bb98 INFO               TIDmaienc gsttidmaienc.c:792:gst_tidmaienc_set_sink_caps: requested sink caps:  video/x-raw-yuv, format=(fourcc)UYVY, width=(int)720, height=(int)576, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1, dmaioutput=(boolean)true, pitch=(int)720
[New LWP 445]

Program received signal SIGSEGV, Segmentation fault.


[Switching to LWP 445]
0x40394980 in strncmp () from /bin/../lib/libc.so.6
(gdb) bt
#0  0x40394980 in strncmp () from /bin/../lib/libc.so.6
#1  0x40958710 in findElem ()
   from /usr/lib/gstreamer-0.10/libgstticodecplugin.so
#2  0x40958738 in getModNameFlagsAddr ()
   from /usr/lib/gstreamer-0.10/libgstticodecplugin.so
#3  0x40958c24 in _GT_create ()
   from /usr/lib/gstreamer-0.10/libgstticodecplugin.so
#4  0x40907958 in IMGENC1_create ()
   from /usr/lib/gstreamer-0.10/libgstticodecplugin.so
#5  0x408fc208 in Ienc1_create (hEngine=0x78138, codecName=0x757b0 "jpegenc",
    params=0x751f0, dynParams=0x75210) at ce/Ienc1.c:176

(more backtrace omitted)

So I am very confused. I looked the code in codec_engine_2_24 and framework_components_2_24_01, within my dvsdk_2_10_01_18, but I am not smart enough to find why the strncmp caused SIGSEGV.

 

Any help is appreciated.

 

Rafael