Skip to Main Content

Berkeley DB Family

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Perl program hangs on startup

534850Sep 27 2006 — edited Oct 6 2006
My 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 3 2006
Added on Sep 27 2006
10 comments
1,467 views