Hi >> Somebody with deeper knowledge of Perl guts will have to tell if it just >> fixes the symptoms or the cause of the bug. > > I've stared at the code for a while now and tried to figure the conditions > that lead to this with no success. > > Do you have a test case you could share so I could reproduce the issue?
With some trial-and-error I came up with the attached script - that's the shortest script I can get to crash. It crashes on the second run: $ ./crash.pl $ ./crash.pl Segmentation fault $ There's an exit() call in there, but I'm not sure if it is the cause of the problem: My original script segfaults even if I remove all calls to exit(). However, so far I haven't seen any segfaults with scripts that wouldn't terminate with exit() or die(). Thanks Tomaž
crash.pl
Description: Perl program

