I am using a DPI task, and from inside this task, I spawn a thread, from from inside the thread I use malloc, many times allocating some 1KB, 300KB, 900 KB, etc.. When I am doing this, sometimes, malloc "just crashes with ncsim: *E,SIGUSR ". Many times it passes.
My question, is their any memory limit for malloc. Totally I am allocating around 2MB.
What is the maximum allowed stack size of a exported task?
I am debugging for 2 days, and am clueless.