I have a small (<=100 lines of C) application that embeds
the Perl interpreter and
compiles and runs under Perl 5.005_03
compiles (should I add dTHX) and then seg faults under Perl 5.6.1 (built with -Dusethreads) before it even starts
(bt shows dSP is where the seg fault is trapped).