http://qs321.pair.com?node_id=287631


in reply to How do I stop/debug/trace segmentation faults? (Moved from Q&A)

I've never had a perl script dump, but in C the best way is often to pepper the code with logging statements and see which is the last one to come out. Just make sure that all of the statements will get printed directly and not buffered or you'll confuse yourself!

Hope that helps!