in reply to pdl+ptkdb=debugger crash

If you run your code outside the debugger with one of: print $h{'keyval'} and/or print values %h, will it also crash? If yes, the problem is definitely somewhere in PDL.