This looks like a perl bug rather than a Devel::NYTProf problem. Here's a pure-perl reproducer: perl -d -e 'BEGIN { $^P &= ~0x4 } sort { $$b <=> $$a } ()' 0x4 is PERLDBf_NOOPT. --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=122771Thread Previous