Hello!
I work with DM36x and Appro software. I capture 5Mpx (2560x1920) with binning 8X, output resolution from matrix 320x240.
I have very strange situtation - programm silent die, I rebuild programm in debug mode and get core-file.
~ # ./gdb /opt/ipnc/av_server.out /opt/ipnc/core.316
...........................................
Core was generated by `./av_server.out FD OSD DM365 APPRO2A CUSTOM H264 4000000 VBR AUTO MENUOFF'.
Program terminated with signal 11, Segmentation fault.
...........................................
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
#0 0x401db038 in memcpy () from /lib/libc.so.6
(gdb) thread apply all bt full
Thread 17 (process 316):
#0 0x40035634 in nanosleep () from /lib/libpthread.so.0
No symbol table info available.
#1 0x400344f4 in __pthread_enable_asynccancel () from /lib/libpthread.so.0
No symbol table info available.
#2 0x23990038 in ?? ()
No symbol table info available.
#3 0x23990038 in ?? ()
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 16 (process 325):
#0 0x4022227c in ioctl () from /lib/libc.so.6
No symbol table info available.
#1 0x00090a78 in CSL_usrDrvIoctl (fd=4, cmd=52243, prm=0x40d15c60)
at csl_usrDrv.c:77
No locals.
#2 0x00092b44 in CSL_rszBufGetFull (hndl=0x526568, rszMod=0 '\0',
buf=0x40d15c98, minBuf=1, timeout=4294967295) at csl_usrRsz.c:55
bufGetFullPrm = {rszMod = 0 '\0', buf = 0x40d15c98, minBuf = 1,
timeout = 4294967295}
#3 0x00068fd0 in DRV_ipipeGetRszBuf (rszId=0, bufId=0x40d1bdb4, timeout=-1)
at drv_ipipe.c:403
buf = {id = 4294967295, addr = 1, state = 3326824,
timestamp = 3314304, count = 3331608}
status = 3314304
#4 0x00025f34 in VIDEO_captureTskRunIsifIn () at videoCaptureThr.c:178
status = 0
streamId = 0
rszBufId = {-1, 0}
saveDataInfo = {dataFormat = 0, frameWidth = 0, frameHeight = 0,
frameOffsetH = 0, frameOffsetV = 0, frameVirtAddr = 0x0,
rawDataStartPhase = 0, rawDataBitsPerPixel = 0, rawDataFormat = 0,
awbData = {h3aRegs = {0 <repeats 32 times>}, awbNumWinH = 0,
awbNumWinV = 0, awbMiscData = {0 <repeats 16 times>}, awbRgbData = {
0 <repeats 3072 times>}, awbYuvData = {0 <repeats 2572 times>, 58,
1073876992, 1076401696, 1073876992, 1075951572, 1, 58, 1073876992,
1075951600, 1073876992, 1075628560, 0, 1076401696, 58, 1073876992,
1447043, 1075627780, 13, 1446999, 1, 58, 1447019, 1076401696, 24, 0,
4096, 1075628332, 0, 1447019, 1, 1, 1076404264, 0, 0, 1075465332, 0, 0,
0, 4294033552, 0, 1087486932, 1087486828, 1076400128, 1087487072,
1446840, 0, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4294967295, 224,
1446888, 0, 1087486828, 11, 0, 0, 1, 10, 0, 0, 51, 1073876992,
1076401696, 1073876992, 1075951572, 1, 51, 1073876992, 1075951600,
1073876992, 1075628560, 0, 1076401696, 51, 1073876992, 1445162,
1075627780, 14, 1445086, 1, 51, 1445161, 1076401696, 1, 0, 4096,
1075628332, 0, 1445161, 1, 1, 1076404264, 0, 0, 1075465332, 0, 0, 0,
4294033552, 0, 1087487212, 1087487108, 1076400128, 1087487316, 1445128,
0, 0, 1983, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4294967295, 52, 1445129, 0,
1087487108, 2, 1, 0, 1, 16, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 120,
0 <repeats 21 times>, 1, 1, 0 <repeats 123 times>, 1075227924,
1073870700, 8, 14, 1073782284, 0, 1087486860, 1075231272, 262774688, 0,
0, 1, 1231, 1073871432, 1073866920, 1074979650, 1075264360,
1074979356...}}}
pBufHeader = (VIDEO_BufHeader *) 0x31719
pBufInfo = (OSA_BufInfo *) 0x40d1bddc
count = 0
__func__ = "VIDEO_captureTskRunIsifIn"
#5 0x00029270 in VIDEO_captureTskMain (pTsk=0x328a00, pMsg=0x545218,
curState=0) at videoCaptureThr.c:714
status = -1
done = 0
ackMsg = 0
cmd = 770
__func__ = "VIDEO_captureTskMain"
#6 0x0008c08c in OSA_tskThrMain (pPrm=0x328a00) at osa_tsk.c:17
pMsg = (OSA_MsgHndl *) 0x546ba0
pPrc = (OSA_TskHndl *) 0x328a00
__func__ = "OSA_tskThrMain"
#7 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#8 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#9 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 15 (process 326):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x329060, msg=0x4151be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x329060, pMsg=0x4151be28)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x329060, pMsg=0x4151be28)
at osa_tsk.c:112
retVal = 0
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x329060) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x40042000
pPrc = (OSA_TskHndl *) 0x329060
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 14 (process 327):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x328c20, msg=0x41d1be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x328c20, pMsg=0x41d1be28)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x328c20, pMsg=0x41d1be28)
at osa_tsk.c:112
retVal = 0
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x328c20) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x40042000
pPrc = (OSA_TskHndl *) 0x328c20
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 13 (process 328):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x328e40, msg=0x4251be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x328e40, pMsg=0x4251be28)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x328e40, pMsg=0x4251be28)
at osa_tsk.c:112
retVal = 0
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x328e40) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x40042000
pPrc = (OSA_TskHndl *) 0x328e40
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 12 (process 329):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x329d20, msg=0x42d1be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x329d20, pMsg=0x42d1be28)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x329d20, pMsg=0x42d1be28)
at osa_tsk.c:112
retVal = 0
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x329d20) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x40042000
pPrc = (OSA_TskHndl *) 0x329d20
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 11 (process 330):
#0 0x4022227c in ioctl () from /lib/libc.so.6
No symbol table info available.
#1 0x00090a78 in CSL_usrDrvIoctl (fd=0, cmd=0, prm=0x0) at csl_usrDrv.c:77
No locals.
#2 0x00000000 in ?? ()
No symbol table info available.
Thread 10 (process 331):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x3298e0, msg=0x43d1bdc8,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x3298e0, pMsg=0x43d1bdc8)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x3298e0, pMsg=0x43d1bdc8)
at osa_tsk.c:112
retVal = 0
#4 0x0002e8c4 in VIDEO_fdTskMain (pTsk=0x3298e0, pMsg=0x53cd88, curState=0)
at videoFaceDetectThr.c:351
status = 0
done = 0
ackMsg = 0
faceOpenPrm = {buff = 0x32774c, size = 0 '\0',
AlbumPath = "/mnt/nand/FaceRecogAlbum.bin\000\000\000\024Ѿ��\b\000("}
cmd = 771
#5 0x0008c08c in OSA_tskThrMain (pPrm=0x3298e0) at osa_tsk.c:17
pMsg = (OSA_MsgHndl *) 0x546ba0
pPrc = (OSA_TskHndl *) 0x3298e0
__func__ = "OSA_tskThrMain"
#6 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#8 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 9 (process 332):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x00000000 in ?? ()
No symbol table info available.
Thread 8 (process 333):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x329280, msg=0x44d1bdf8,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x329280, pMsg=0x44d1bdf8)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x329280, pMsg=0x44d1bdf8)
at osa_tsk.c:112
retVal = 0
#4 0x0002c770 in VIDEO_encodeTskMain (pTsk=0x329280, pMsg=0x545260,
curState=0) at videoEncodeThr.c:348
status = 0
streamId = 1
done = 0
ackMsg = 0
cmd = 771
__func__ = "VIDEO_encodeTskMain"
#5 0x0008c08c in OSA_tskThrMain (pPrm=0x329280) at osa_tsk.c:17
pMsg = (OSA_MsgHndl *) 0x546ba0
pPrc = (OSA_TskHndl *) 0x329280
__func__ = "OSA_tskThrMain"
#6 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#8 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 7 (process 334):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x3294a0, msg=0x4551be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x3294a0, pMsg=0x4551be28)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x3294a0, pMsg=0x4551be28)
at osa_tsk.c:112
retVal = 0
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x3294a0) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x40042000
pPrc = (OSA_TskHndl *) 0x3294a0
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 6 (process 336):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x32a160, msg=0x4651bdf8,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x32a160, pMsg=0x4651bdf8)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x32a160, pMsg=0x4651bdf8)
at osa_tsk.c:112
retVal = 0
#4 0x00030260 in VIDEO_motionTskMain (pTsk=0x32a160, pMsg=0x546ba0,
curState=0) at videoMotionThr.c:185
status = 0
streamId = 3318112
done = 0
ackMsg = 0
cmd = 768
__func__ = "VIDEO_motionTskMain"
#5 0x0008c08c in OSA_tskThrMain (pPrm=0x32a160) at osa_tsk.c:17
pMsg = (OSA_MsgHndl *) 0x546ba0
pPrc = (OSA_TskHndl *) 0x32a160
__func__ = "OSA_tskThrMain"
#6 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#8 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 5 (process 337):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x3287c8, msg=0x46d1be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x3287c8, pMsg=0x46d1be28)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x3287c8, pMsg=0x46d1be28)
at osa_tsk.c:112
retVal = 0
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x3287c8) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x40042000
pPrc = (OSA_TskHndl *) 0x3287c8
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 4 (process 338):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x327bb8, msg=0x4751be28,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x327bb8, pMsg=0x4751be28)
at osa_mbx.c:198
retVal = 128552
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x327bb8, pMsg=0x4751be28)
at osa_tsk.c:112
retVal = 67108864
#4 0x0008bf94 in OSA_tskThrMain (pPrm=0x327bb8) at osa_tsk.c:15
pMsg = (OSA_MsgHndl *) 0x53cd88
pPrc = (OSA_TskHndl *) 0x327bb8
__func__ = "OSA_tskThrMain"
#5 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#6 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 3 (process 342):
#0 0x400314bc in pthread_cond_wait@@GLIBC_2.4 () from /lib/libpthread.so.0
No symbol table info available.
#1 0x0008a79c in OSA_msgqRecvMsg (hndl=0x32a380, msg=0x480e0df8,
timeout=4294967295) at osa_msgq.c:127
status = -1
#2 0x00089f04 in OSA_mbxWaitMsg (pMbxHndl=0x32a380, pMsg=0x480e0df8)
at osa_mbx.c:198
retVal = 0
__func__ = "OSA_mbxWaitMsg"
#3 0x0008c5e8 in OSA_tskWaitMsg (pPrc=0x32a380, pMsg=0x480e0df8)
at osa_tsk.c:112
retVal = 0
#4 0x0003ff54 in VIDEO_swosdTskMain (pTsk=0x32a380, pMsg=0x545260,
curState=0) at videoSwosdThr.c:2121
status = 0
msg = (videoSWOSDMessage *) 0x40d15cb0
done = 0
ackMsg = 0
cmd = 771
__func__ = "VIDEO_swosdTskMain"
#5 0x0008c08c in OSA_tskThrMain (pPrm=0x32a380) at osa_tsk.c:17
pMsg = (OSA_MsgHndl *) 0x546ba0
pPrc = (OSA_TskHndl *) 0x32a380
__func__ = "OSA_tskThrMain"
#6 0x4002a8f8 in start_thread () from /lib/libpthread.so.0
No symbol table info available.
#7 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
#8 0x402298c8 in clone () from /lib/libc.so.6
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
Thread 2 (process 346):
#0 0x4022a980 in msgrcv () from /lib/libc.so.6
No symbol table info available.
#1 0x40235ab4 in __libc_enable_asynccancel () from /lib/libc.so.6
No symbol table info available.
#2 0x00000000 in ?? ()
No symbol table info available.
Thread 1 (process 335):
#0 0x401db038 in memcpy () from /lib/libc.so.6
No symbol table info available.
#1 0x000000f0 in ?? ()
No symbol table info available.
#2 0x000000f0 in ?? ()
No symbol table info available.
warning: Previous frame identical to this frame (corrupt stack?)
This is is very strange because I haven't this problem with another binning mode 2x, 4x or without binning.
I insert debug output before memcpy and get this:
video2aThr.c:VIDEO_aewbSetPrm:8 before memcpy(0x32fc1c, 0x4351bd70, 36)
videoSwosdThr.c:VIDEO_swosdTskRun:2013 before memcpy(0x47ef7d94, 0x4a755000, 40)
videoFaceDetectThr.c:VIDEO_fdCopyRun:79 before memcpy(0x4a95f000, 0x4a856000, 40)
videoSwosdThr.c:VIDEO_swosdTskRun:2013 before memcpy(0x47ef7d94, 0x4a856000, 40)
videoEncodeThr.c:VIDEO_encodeTskRun:280 before memcpy(0x4a9bf000, 0x4a755000, 40)
videoEncodeThr.c:VIDEO_encodeTskRun:283 after memcpy(0x4a9bf000, 0x4a755000, 40)
video2aThr.c:VIDEO_aewbGetPrm:20 before memcpy(0x40d1bdb4, 0x32fc1c, 36)
mem_mng.c:MemMng_VidFrame_Insert:714 before MemMng_memcpy(0x4857f000, 0x4a9bf080, 48667)
mem_mng.c:MemMng_memcpy:540 before memcpy(0x4857f000, 0x4a9bf080, 48667)
Can you help me diagnostic and solve this problem?
Thank you and excuse me for my bad english.