Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

possible Deadlock when MALLOC_CHECK is set to 2 - help needed

0 views
Skip to first unread message

C Mohankumar-A17025

unread,
Apr 27, 2006, 6:54:34 AM4/27/06
to bug-gp...@gnu.org
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
0 new messages