Hi,
I am facing a
deadlock problem when MALLOC_CHECK is set to 2.
My application had
some memory allocation issues and to trace the problem, I have set the
MALLOC_CHECK to 2 so that the progrma crashes when the problem is
encountered. Now, I also have a signal handler installed which needs some memory
allocation. My application raises the interrupt within
mallow_check() or free_check() and the signal handler is getting invoked.
Within the handler, invocation of malloc() results in the process going into a
deadlock.
Can someone
tell me is it safe enough to call these malloc()
recursively?
Thanks,
Mohan