My code is hanging fwrite with the following stack:
libc.so.6.1::___lll_lock_wait
libc.so.6.1::fwrite
This seems to be happening in solaris.
Only incorrect thing which I can think of is that my code may try to do a parallel fclose on the same FILE pointer which is used for doing fwrite. If a parallel fclose happens will it lead to this kind of a stack?
But, I am not sure if the parallel fclose call really did happen or not?
What could be the problem here?