* [Qemu-devel] Crash when dereferencing -1
@ 2008-04-17 15:20 Kent Borg
2008-04-18 3:52 ` Mulyadi Santosa
0 siblings, 1 reply; 2+ messages in thread
From: Kent Borg @ 2008-04-17 15:20 UTC (permalink / raw)
To: qemu-devel
Running 0.9.0 on Ubuntu 7.04 host, a Ubuntu 7.04 guest crashes when I
dereference -1. This also happens on a Windows XP host running the
precompiled Qemu 0.9.1. Both with kqemu.
#include <stdio.h>
main()
{
int *foo = -1;
printf("hello, world %d\n", *foo);
}
-kb
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] Crash when dereferencing -1
2008-04-17 15:20 [Qemu-devel] Crash when dereferencing -1 Kent Borg
@ 2008-04-18 3:52 ` Mulyadi Santosa
0 siblings, 0 replies; 2+ messages in thread
From: Mulyadi Santosa @ 2008-04-18 3:52 UTC (permalink / raw)
To: qemu-devel
Hi
On Thu, Apr 17, 2008 at 10:20 PM, Kent Borg <kentborg@borg.org> wrote:
> Running 0.9.0 on Ubuntu 7.04 host, a Ubuntu 7.04 guest crashes when I
> dereference -1. This also happens on a Windows XP host running the
> precompiled Qemu 0.9.1. Both with kqemu.
>
> #include <stdio.h>
>
> main()
> {
> int *foo = -1;
>
> printf("hello, world %d\n", *foo);
> }
>
I suspect SIGSEGV isn't handled correctly or just passed to the host,
thus triggering process termination.
regards,
Mulyadi.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-04-18 3:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-17 15:20 [Qemu-devel] Crash when dereferencing -1 Kent Borg
2008-04-18 3:52 ` Mulyadi Santosa
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).