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.

EVMK2H: Preventing openCL lock from remaining when program is aborted

Other Parts Discussed in Thread: SYSBIOS

Hi,

Using the EVMK2H and MCSDK-HPC-3_00_01_04, I'm developing an application using the edmamgr example as a basis through cross compilation. The problem I'm finding is when I run my program and I have bugs in the kernel code, the DSPs hang and I have to abort the program (ctrl+c) which leaves the /var/lock/opencl remaining afterwards. With the lock in place, I'm unable to run other openCL programs, and I have to contact the admin to remove the lock, which he does by rebooting the EVMK2H.

Since needing a reboot becomes tedious, what would be the best way of preventing my program from leaving the /var/lock/opencl in place? Is there some code structure I should be following in the ARM code or some other process I should be following?

I'm new to development on the TI products, so feel free to verify if I've missed something basic.

Sincerely,

David Wilson

Below is an example of what my program was showing before I aborted it.

[core 7] ti.sysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] i.sysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] .sysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] sysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ysbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ti.sysbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] sbios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] i.sysbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] bios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] .sysbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ios.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] sysbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] os.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ysbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] s.heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] sbios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] .heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] bios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] heaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ios.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] eaps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] os.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] aps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] s.heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ps.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] .heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] s.HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] heaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] .HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] eaps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] HeapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] aps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ps.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] s.HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] .HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] HeapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] eapMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] eapMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] apMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] apMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] pMem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] pMem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] Mem: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] em: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] Mem: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] m: line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] : line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] em: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] m: line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] line 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ine 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] : line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ne 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] line 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ine 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ne 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] e 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] e 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] 345: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] 45: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] 5: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] 322: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] 22: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] : assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] 2: assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ssertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] sertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] : assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] assertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ssertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] sertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] rtion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] tion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ertion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] rtion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] tion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ion failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] on failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] on failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] n failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] n failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] failure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ailure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ailure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ilure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ilure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] lure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] lure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] re: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ure: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] re: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] e: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] : A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] e: A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] : A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] A_invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] _invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] _invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] nvalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] invalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] nvalidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] validFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] alidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] validFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] alidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] lidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] idFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] lidFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] idFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] dFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] dFree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] Free: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ee: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] Free: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] e: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] : Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] nvalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ree: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] ee: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] valid free
xdc.runtime.Error.raise: terminating execution
[core 7] alid free
xdc.runtime.Error.raise: terminating execution
[core 5] e: Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] lid free
xdc.runtime.Error.raise: terminating execution
[core 7] id free
xdc.runtime.Error.raise: terminating execution
[core 5] : Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] d free
xdc.runtime.Error.raise: terminating execution
[core 7] free
xdc.runtime.Error.raise: terminating execution
[core 5] Invalid free
xdc.runtime.Error.raise: terminating execution
[core 5] Invalid free
xdc.runtime.Error.raise: terminating execution
[core 7] free
xdc.runtime.Error.raise: terminating execution
[core 5] nvalid free
xdc.runtime.Error.raise: terminating execution
[core 7] ree
xdc.runtime.Error.raise: terminating execution
[core 5] valid free
xdc.runtime.Error.raise: terminating execution
[core 7] ee
xdc.runtime.Error.raise: terminating execution
[core 5] alid free
xdc.runtime.Error.raise: terminating execution
[core 5] lid free
xdc.runtime.Error.raise: terminating execution
[core 7] e
xdc.runtime.Error.raise: terminating execution
[core 5] id free
xdc.runtime.Error.raise: terminating execution
[core 7]
xdc.runtime.Error.raise: terminating execution
[core 7] xdc.runtime.Error.raise: terminating execution
[core 5] d free
xdc.runtime.Error.raise: terminating execution
[core 7] dc.runtime.Error.raise: terminating execution
[core 5] free
xdc.runtime.Error.raise: terminating execution
[core 5] free
xdc.runtime.Error.raise: terminating execution
[core 7] c.runtime.Error.raise: terminating execution
[core 5] ree
xdc.runtime.Error.raise: terminating execution
[core 7] .runtime.Error.raise: terminating execution
[core 7] runtime.Error.raise: terminating execution
[core 5] ee
xdc.runt^Cmake: *** [run] Error 130