qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [REGRESSION] mprotect in guest makes qemu-i386 crash
@ 2008-07-03 15:13 Jan Kiszka
  2008-07-07 12:40 ` [Qemu-devel] " Jan Kiszka
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2008-07-03 15:13 UTC (permalink / raw)
  To: qemu-devel

Hi,

this fragment from a code self-modification test of mine used to work a
few weeks ago with qemu-i386 userspace emulation. Now it causes a segfault.

#include <sys/mman.h>
main()
{
	mprotect((void *)((unsigned long)main & ~0xfff), 0x1000,
		 PROT_READ|PROT_WRITE|PROT_EXEC);
}

qemu-x86_64 even complains about an "Unsupported syscall: 221", while
the same 64-bit binary works fine with 0.9.1 (I don't recall anymore if
it worked recently with SVN head).

Anyone some idea? Known issue?

Jan

-- 
Siemens AG, Corporate Technology, CT SE 2
Corporate Competence Center Embedded Linux

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

end of thread, other threads:[~2008-07-07 12:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-03 15:13 [Qemu-devel] [REGRESSION] mprotect in guest makes qemu-i386 crash Jan Kiszka
2008-07-07 12:40 ` [Qemu-devel] " Jan Kiszka

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