pure luck it was. usually the first thread would complete a read/write cycle, and occasionaly the second thread would as well. However, the third and fourth threads were guaranteed to spill core. I have to say that this is the first time in 2 years i've managed to make a perl program dump core (took me 3 weeks in C ). That definitely says something about our chosen craft......
BlueLines