Use a bigger buffer for the stdout/stderr to avoid annoying
linebreaks in panic messages.
Record the start and end of the worker thread stack.