My Engine_open hangs in SEM_pend:
backtrace =
#0 0x40031fe4 in __new_sem_wait (sem=0x4e1d8)
at ../nptl/sysdeps/unix/sysv/linux/sem_wait.c:48
#1 0x00018c58 in Sem_pend ()
#2 0x00012ed4 in doCmd ()
#3 0x000143b4 in Processor_create ()
#4 0x00010710 in Engine_open ()
#5 0x0000a284 in smain (argc=1, argv=0xbe82bdf4) at app.c:110
#6 0x0000a044 in main (argc=1, argv=0xbe82bdf4) at main_native.c:34
I tried putting a breakpoint in putReply, but the breakpoint is never reached. (Thus explaining why the Engine_open hangs at the SEM_pend.) A partial debug trace output follows:
@1,195,750us: [+2 T:0x4001cf50] mycompany.z2_apps.vqm_results - main> mycompany.z2_apps.vqm_results
@3,196,174us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - App-> Application started with engineName = vqm_results and codecName = vqm_results
@5,196,564us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - App-> name: vqm_results, algTab: 0x4cb3c, remoteName: vqm_results_server.x674, linkCfg: (null), numAlgs = 1
@5,196,854us: [+1 T:0x4001cf50] mycompany.z2_apps.vqm_results - App-> algTab: name = vqm_results, fxns = 0x4cbb8, typeTab = ti.sdo.ce.universal.IUNIVERSAL
@7,197,206us: [+0 T:0x4001cf50] CE - Engine_open> Enter('vqm_results', 0x0, 0xbe82bc1c)
@7,197,496us: [+0 T:0x4001cf50] CE - rserverOpen('vqm_results_server.x674'), count = 0
@7,197,666us: [+0 T:0x4001cf50] OP - Processor_create> Enter(imageName='vqm_results_server.x674', linkCfg='(null)', attrs=0xbe82bc00)
@7,198,925us: [+0 T:0x4001cf50] OP - doCmd> Enter (cmdId=1, proc=0x4e428)
@7,199,157us: [+0 T:0x4001cf50] ti.sdo.ce.osal.Sem - Entered Sem_post> sem[0x4e1c0]
@7,199,522us: [+0 T:0x4001cf50] ti.sdo.ce.osal.Sem - Leaving Sem_post> sem[0x4e1c0]
@7,199,714us: [+0 T:0x4001cf50] ti.sdo.ce.osal.Sem - Entered Sem_pend> sem[0x4e1d8] timeout[0xffffffff]
It is unclear to me which processor half (ARM9/DSP) is failing. I've seen hangs like this while loading, starting, attaching, etc. All in Engine_open. Any ideas how to debug this problem? I've tried increasing the size of my heaps and stacks every where I could find, but if you can think of one I might have missed, let me know.