sarah-walker-pcem / pcem

PCem
http://pcem-emulator.co.uk
GNU General Public License v2.0
1.47k stars 204 forks source link

Page fault error for programs using Phar Lap's 386 DOS extender #244

Open sharkbyte16 opened 6 months ago

sharkbyte16 commented 6 months ago

Fortran programs compiled with the Lahey Essential Fortran 90 compiler, which uses Phar Lap's 386 DOS extender v 7.0, will result in program termination with a page fault error (see screenshot).

To Reproduce:

  1. Install Lahey Essential Fortran 90 compiler.
  2. Compile the included demo program: ELF90 demo.f90
  3. Run demo.exe

The exact same executable/runtime work fine in DosBox-X, 86Box and VirtualBox.

Tested with various 386, 486 and Pentium configurations with MS-DOS 6.22 and Windows 95, all resulting in the same page fault error. PCem is compiled from Git dev 10 Nov, host is Linux Mint LMDE 6 on a i7-4790.

If desired, I can send the demo.exe and runtime files for testing, e.g. on a bootable disk image.

Screenshot from 2023-12-22 09-30-19 .