Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using Windows Virtual PC on a Windows 7 machine. I have created an MS-DOS 6.22 virtual machine with 16 MB RAM and a 2 GB hard disk. Whenever I minimize or otherwise deactivate the window, and then restore or reactivate it, I get an error message, the PC speaker beeps for a second, and the virtual machine completely stops working until I forcefully reboot it:

Internal stack overflow
System halted

(Interestingly, the problem does not occur when I am running Windows 3.1, which runs on top of MS-DOS. I get the error immediately when I try to exit to MS-DOS from Windows.)

I also got a similar error when I tried to install Windows 9x-based operating systems during the first (text-based) phase of installation and performing the same actions, and when attempting to boot such an OS (in this case, Windows 98) into real-mode MS-DOS mode (though in that case I get the error immediately and do not have to perform the actions above to get it):

An internal stack overflow has caused this session to be halted.
Check the STACKS setting in your CONFIG.SYS file, and then try again.

Why does this error occur, and is there any way to fix it?

share|improve this question
I'm guessing it doesn't like being minimized. The action results in an exception/trap and that goes recursive. –  Daniel R Hicks Dec 24 '13 at 5:08
@DanielRHicks That seems like a plausible cause. But why would an exception be thrown when I reactivate the window? And why does it not occur when I am running a Windows 9x-based operating system in standard (GUI) mode? –  deleteme Dec 24 '13 at 5:56
No VM perfectly reproduces the real machine. Apparently yours is less perfect than most. May be a problem with a VM setting. –  Daniel R Hicks Dec 24 '13 at 12:38
(Apparently something is preventing the guest OS from correctly handling interrupts/traps, such that when it gets one it takes another interrupt handling the first. It's likely that what happens is that the guest attempts to modify some state that it's not authorized to modify. But it's impossible to get much more precise than that.) –  Daniel R Hicks Dec 24 '13 at 18:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.