I am calling rmtree() in DESTROY() method of a class.
Here is the exact error message
Thu Apr 23 18:08:24 2009 - WARN: cannot fetch initial working directory: No such file or directory at Basecamp/Setup.pm line 265 thread 6
Code is scattered in different files so I am not able to post more code.
Comment on Re^4: rmtree() is failing after some time
Code is scattered in different files so I am not able to post more code
Sure you can, or is it secret code;)
Without code it's a bit hard/impossible to diagnose the problem correctly. My guess right now is that in some thread some piece of code tries to access a directory which has just been deleted by the rmtree in another thread?!