qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Bug: Dereferencing -1 Crashes Qemu
@ 2008-07-29 12:00 Kent Borg
  0 siblings, 0 replies; only message in thread
From: Kent Borg @ 2008-07-29 12:00 UTC (permalink / raw)
  To: qemu-devel

Running qemu-0.9.1 with kqemu 1.3.0~pre11.  Lunix host, Linux guest.  If
I dereference a -1 the entire guest crashes.

-kb, the Kent who isn't subscribed.



$ make hello
cc     hello.c   -o hello
hello.c: In function ‘main’:
hello.c:8: warning: assignment makes pointer from integer without a cast
$ cat hello.c
#include <stdio.h>
#include <stdlib.h>

main()
{
  int *ptr;

  ptr = -1;

  printf("hello, world\n");
  printf("%d\n", *ptr);
}
$ ./hello
hello, world
EAX=00000292 EBX=c552ee00 ECX=00000292 EDX=00000000
ESI=c548c000 EDI=00000000 EBP=c7b6cc0d ESP=c5445f14
EIP=c033005d EFL=00010286 [--S--P-] CPL=3 II=0 A20=1 SMM=0 HLT=0
ES =007b 00000000 ffffffff 00cff300
CS =0060 00000000 ffffffff 00cffb00
SS =0068 00000000 ffffffff 00cff300
DS =007b 00000000 ffffffff 00cff300
FS =0000 00000000 00000000 00000000
GS =0033 b7e136b0 ffffffff b7dff3e1
LDT=0000 00000000 00000000 00008000
TR =0080 c1107100 00002073 00008900
GDT=     c1104000 000000ff
IDT=     c0429000 000007ff
CR0=8005003b CR2=b7edb2d0 CR3=06dbb000 CR4=000006b0
Unsupported return value: 0xffffffff
root@rc-dom0:~#

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-29 12:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-29 12:00 [Qemu-devel] Bug: Dereferencing -1 Crashes Qemu Kent Borg

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).