[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] USE_CODE_COPY breaks clone
From: |
Rafael Ávila de Espíndola |
Subject: |
[Qemu-devel] USE_CODE_COPY breaks clone |
Date: |
Wed, 1 Sep 2004 14:32:40 -0300 |
User-agent: |
KMail/1.7 |
The cvs version of qemu (i386->i386) generates a segmentation fault in the
emulated code of the attached test program. Commenting the definition of
USE_CODE_COPY make the test execute successfully.
I think that the problem is in the fact that cpu_init is called in the parent
process and this functions calls modify_ldt.
Where can I found some documentation about modify_ldt? What is USE_CODE_COPY
supposed to do?
I will try to call cpu_init from within the new thread and see if it works.
One more question: What do you think about breaking the do_fork function in
do_fork, do_clone and do_vfork? Presently it tries to guess if it should call
fork or clone, but do_syscall knows the answer :)
Thanks for any comment,
Rafael
teste.c
Description: Text Data
- [Qemu-devel] USE_CODE_COPY breaks clone,
Rafael Ávila de Espíndola <=