Forum Discussion
Altera_Forum
Honored Contributor
8 years agoMalloc Memory corrupted
Hi, so im working on a CNN based OpenCL on De1soc. I got the following error: *** Error in `./host': malloc(): memory corruption: 0x000677e8 ***
This error pops up when the program ...
Altera_Forum
Honored Contributor
8 years agoYour host program is runned on Win or in ARM SoC ? May you stepping our program in debugger ?
If you know address of violation, 0x000677e8, then may printf() a bytes from this memory region before/after every clCreateBuffer(), printf() the returned addresses and input parameters (sizes), an error (buffer overrun) may be was earlier and become now in last getting heap memory. Good idea is see sources for malloc() in debugger with concrete code and seat of problem.