[Bug 299806] gdb prints random characters when debugged process terminates unexpectedly