Currently, if the traced guest receives a fatal signal, the qemu tracer exits without writing out a table of contents for the generated frames, and leaves the number of frames field in the header set to 0. To observe this behavior, compile and trace the following C:
void main() {
int *x=(int *)0;
*x = 0;
}
and examine the generated frames.
This pull request causes qemu to finish writing the trace metadata before exiting from a guest-fatal signal.
Currently, if the traced guest receives a fatal signal, the qemu tracer exits without writing out a table of contents for the generated frames, and leaves the number of frames field in the header set to 0. To observe this behavior, compile and trace the following C:
and examine the generated frames.
This pull request causes qemu to finish writing the trace metadata before exiting from a guest-fatal signal.