GPF or QEMU crash when entering Ring 3
- abcdef4bfd
- Member
- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: GPF or QEMU crash when entering Ring 3
Debugging is working, but it's just freezes when debugger is connected. Neither nexti or next, nor stepi or step are not working.
- abcdef4bfd
- Member
- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: GPF or QEMU crash when entering Ring 3
Finally debugging is worked. Using trial&error I find that the code is crashing on iret. But what is causing that?
- Combuster
- Member
- Posts: 9301
- Joined: Wed Oct 18, 2006 3:45 am
- Libera.chat IRC: [com]buster
- Location: On the balcony, where I can actually keep 1½m distance
- Contact:
Re: GPF or QEMU crash when entering Ring 3
I've seen a pageful of likely reasons (and less likely reasons that are nonetheless bugs) already. Which ones don't apply?
You can also run the entire set of steps from the Intel manuals by hand and use the actual register/memory values to see what happens exactly.
You can also run the entire set of steps from the Intel manuals by hand and use the actual register/memory values to see what happens exactly.
Re: GPF or QEMU crash when entering Ring 3
Check the items on the stack just before the iret. Are they what you expect them to be? Are they sane? What will iret do with them?
- abcdef4bfd
- Member
- Posts: 492
- Joined: Fri Apr 03, 2015 9:41 am
Re: GPF or QEMU crash when entering Ring 3
How I can do it? GDB is freezing QEMU.iansjack wrote:Check the items on the stack just before the iret. Are they what you expect them to be? Are they sane? What will iret do with them?