Perl program hangs on startup
534850Sep 27 2006 — edited Oct 6 2006My Perl test program is hanging on startup sometimes. I've got the first version of all my XQueries working now (yay!) and I'm starting to do timing tests. So I open a container and perform some queries on each document in the container, then print out the elapsed time and exit.
The program does what I expect and runs to completion. Then I run it again and more often than not it runs again just the same. But sometimes it hangs apparently on the container open (strace indicates it's hanging on futex(0x410adde8, FUTEX_WAIT, 2, NULL ). If I run it again, it hangs on the environment open. If I run db_recover, my program will run successfully again. I don't have any other programs using the database.
My program is terminating normally and I haven't seen any mention of needing to call any clean up code in Perl. I guess there's something I need to do differently, but what is it?
Thanks and regards,
Dave