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.

VIDENC1_delete () crashes while freeing mpeg4enc instance

I'm trying to track down an enigmatic problem. After some codec "restart" (create/delete cycles) the VIDENC1_delete causes segfault at best and kernel oops at other times.

 

Here is a backtrace obtained with gdb

 

Program received signal SIGSEGV, Segmentation fault.

[Switching to LWP 1201]

0x00098d10 in freeResource ()

(gdb) bt

#0  0x00098d10 in freeResource ()

#1  0x00099000 in EDMA3_freeLogicalChannel ()

#2  0x00097968 in IRESMAN_EDMA3CHAN_freeHandle ()

#3  0x0009a348 in RMAN_freeResources ()

#4  0x0004a514 in Algorithm_delete ()

#5  0x000497a8 in VISA_delete ()

#6  0x000453a4 in VIDENC1_delete ()

#7  0x0002840c in CMp4Encoder::Close (this=0x133fb8) at Mp4Encoder.cpp:334

#8  0x0003ecdc in CVideoStreamSrcImpl::StopEncoder (this=0x133dd0)

    at VideoStreamSrcCore.cpp:35

I am using dm365 with dvsdk_3_10_00_19. My mpeg4enc version is 2_00_00_07.
I am not certain about how to tackle this problem since it happen once in 50 - 100 times, sometimes more.