encountered halt bug with debug option
Posted: Tue Jul 26, 2016 11:15 am
i have been using the vbox debug feature to halt, step-into and dump memory features during my development. But last few days, my proj is halted to really weird bug.
This is how debug version of VM is launched.
virtualbox --startvm <vmname> --dbg
Whenever I need to analyze and step through code, I normally put jmp $ and halt and adjust IP by incrementing by 2 to step through. However during the bootloader code debugging, when I do halt from oracle VM, it halt in f000 segment code which is likely to be somewhere in BIOS, probably some interrupt or exception handler. As far as i concerned it was completely random and driving me nuts. It used to halt at where I wanted to be right at the jmp $. The bootloader code (including this jmp $ instruction) runs in 0000:8000h memory area.
It looks like a serious oracle virtual box DEFECT to me but just posted here in case if it rings bell for anyone. I posted in vbox forum but no one knows as debug features are rarely used.
This is how debug version of VM is launched.
virtualbox --startvm <vmname> --dbg
Whenever I need to analyze and step through code, I normally put jmp $ and halt and adjust IP by incrementing by 2 to step through. However during the bootloader code debugging, when I do halt from oracle VM, it halt in f000 segment code which is likely to be somewhere in BIOS, probably some interrupt or exception handler. As far as i concerned it was completely random and driving me nuts. It used to halt at where I wanted to be right at the jmp $. The bootloader code (including this jmp $ instruction) runs in 0000:8000h memory area.
It looks like a serious oracle virtual box DEFECT to me but just posted here in case if it rings bell for anyone. I posted in vbox forum but no one knows as debug features are rarely used.