qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix qemu endless loop when raising a SIGSEGV/SIGBUS signal with gdbstub in user emulation
@ 2009-01-03 12:36 Lionel Landwerlin
  2009-01-03 12:50 ` Lionel Landwerlin
  0 siblings, 1 reply; 3+ messages in thread
From: Lionel Landwerlin @ 2009-01-03 12:36 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-01-03 13:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-03 12:36 [Qemu-devel] [PATCH] Fix qemu endless loop when raising a SIGSEGV/SIGBUS signal with gdbstub in user emulation Lionel Landwerlin
2009-01-03 12:50 ` Lionel Landwerlin
2009-01-03 13:14   ` Aurelien Jarno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).