Opened 13 years ago
Last modified 9 years ago
#9042 closed defect
OS/2 guest crashes on floating point exception — at Version 12
Reported by: | rudi | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.0.8 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Windows |
Description (last modified by )
The following code snippet (which is supposed to die by SIGFPE) causes an OS/2 guest to trap. Kernel is 14.104_W4.
#include <stdio.h> #include <float.h> int main(void) { double d1 = 1.0; double d2 = 0.0; _control87(0, 0x1f); printf("%lf\n", d1 / d2); return 0; }
Change History (17)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
This appears to be the bug I have been experiencing on my Macs. They have Intel CPUs, my AMD based Windows 7 64bit systems don't experience this problem and it results in SIGFPE.
comment:3 by , 12 years ago
I have not been able to reproduce this with the current trunk version of VirtualBox, testing on both intel i7 core and amd phenom 2.
comment:4 by , 12 years ago
It happens on both my Macs... MacBook Pro with an Intel Core 2 Duo and MacPro with an Intel Quad Core Xeon.
It does not happen on my PCs with AMD Phenom 2 and X2.
by , 12 years ago
Attachment: | trapscreen.png added |
---|
Trap screen after executing the program snippet.
by , 12 years ago
Attachment: | VBox-4.1.6-r74713-eCS2-Mac.png added |
---|
Trap screen with eCS 2.0 on MacBook Pro w/ Intel Core 2 Duo
follow-up: 7 comment:6 by , 12 years ago
I can add that this very same trap also happens with more complex OS/2 applications, namely Firefox 8.x and Seamonkey 2.3. But I guess that can be expected as the error is so fundamental.
comment:7 by , 12 years ago
Replying to Erdmann:
I can add that this very same trap also happens with more complex OS/2 applications, namely Firefox 8.x and Seamonkey 2.3. But I guess that can be expected as the error is so fundamental.
Forgot to add: I am using VirtualBox Version 4.1.6.
by , 12 years ago
Attachment: | eComStationV2-2011-11-27-17-13-25.log added |
---|
Yet another log: Windows 7 host, Intel Core2 Duo CPU, 2 GB RAM
comment:9 by , 12 years ago
Reproducible here on an Intel Core 2 Quad host. No problem on an AMD system. I wonder if this is specific to the crummy old VT-x implementation.
comment:10 by , 12 years ago
I still experience this crash, funny enough it now occurs less often since I upgraded to Seamonkey 2.5 from Seamonkey 2.3.3. Maybe Seamonkey 2.5 uses less floating point. Unfortunately I don't know the technical details behind VT-x (I could have a look into the Intel manual but I am sure I am lacking years behind ...). I am using Intel Core2 Duo with Windows 7 as host. I had another trap on bootup just now, unfortunately I forgot to take a photo. The only thing I can say is that it happens pretty randomly. If you want me to test anything ...
comment:11 by , 12 years ago
I got a trap using Seamonkey. I attached trap screen. With the very same kernel the trap address has now changed.
comment:12 by , 12 years ago
Description: | modified (diff) |
---|
There's one crucial piece of information missing here. This problem does not occur with the SMP OS/2 kernel. The reason being that the SMP kernel runs with the CR0.NE bit set. The actual number of processors in the guest does not matter.
A VBox.log file is missing. It will show us which configuration your VM has and which processor features of your host are used.