fix for gdb assertion failure during backtrace
printing fixes etc