[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix qemu endless loop when raising a SIGSEGV/SIGBUS
From: |
Lionel Landwerlin |
Subject: |
[Qemu-devel] [PATCH] Fix qemu endless loop when raising a SIGSEGV/SIGBUS signal with gdbstub in user emulation |
Date: |
Sat, 03 Jan 2009 13:36:59 +0100 |
Let's compile a very simple program :
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
int
main (int argc, char *argv[])
{
int *i = NULL;
sleep (1);
*i = 42;
return EXIT_SUCCESS;
}
Now run this program under qemu with gdbstub :
qemu -g 1234 ./test-segfault
Run gdb on the same program, connect it to qemu and start execution.
This program will raise a SIGSEGV signal and qemu will be locked in an
endless loop. Gdb will never be notify by qemu of SIGSEGV signal.
The following post provides a fix for that.
Regards,
--
Lione Landwerlin
O p e n W i d e 14, rue Gaillon 75002 Paris
- [Qemu-devel] [PATCH] Fix qemu endless loop when raising a SIGSEGV/SIGBUS signal with gdbstub in user emulation,
Lionel Landwerlin <=