public inbox for linux-msdos@vger.kernel.org
 help / color / mirror / Atom feed
From: "Peter B. Steiger" <wypbs_002@bornagain.com>
To: linux-msdos@vger.kernel.org
Subject: DOSEMU-1.1.5 vs. DPMI
Date: Tue, 10 Jun 2003 15:43:15 -0500	[thread overview]
Message-ID: <3EE5FC93.17771.19F4C13@localhost> (raw)
In-Reply-To: <Pine.LNX.4.33.0306070106290.24425-100000@enm-bo-lt.localdomain>

1.1.5 compiles and runs fine, but I seem to be having some trouble with my 
DPMI-based programs.  Hardware is AMD Duron 850MHz with 512MB RAM.  
There's a 60-GB drive with a 10-GB fat32 partition on which I installed 
Windows 98 rev. A.  Linux is Linux From Scratch using kernel 2.4.20, gcc 3.2.2.  
Since I own Tool O' The Devil '98, I do not use freedos; my boot directory 
/usr/share/dosemu/bootdisk just contains links to /mnt/fat32 files and folders.

The program I'm most interested in running was written in Clipper, an old dBase-
type compiler that actually creates the EXE with a complete p-code parser built 
in so it can interpret your program on-the-fly.  The EXE is linked with Blinker, 
which allows you to link as a real mode or protected mode application.

In real mode my test program works fine... just a "Hello, world" display; I can 
also run an enormous memory hog test that creates a meg or two of string 
arrays in real mode (swapping to a disk file for VM).  But if I try to run either 
of those programs in protected mode, I get:

DPMI unhandled exception 06 - terminating client
it is likely that dosemu is unstable now and should be rebooted

... as soon as the program loads, before any output appears.  This happens 
regardless of whether I run as root (yeah, I know, danger Will Robinson...) or anyone 
else.  The same error occurs at the console and in an X window with xdosemu.  I 
tried building with and without mitshm; it makes no difference.

What's strange is, this used to work.  I'm using the same hardware and the same 
dosemu.conf files I had when I ran Red Hat 7.3 with kernel 2.4.20, gcc 2.96, dosemu 
1.0.something last year.

Relevant portions of dosemu.conf are:
$_xms = (16383)	
$_ems = (off)		
$_dpmi = (65535)	
$_dosmem = (639)	

I have experimented with various amounts of each type of memory, and I have made 
sure that /proc/sys/kernel/shmmax has a high enough limit to handle anything I throw 
at it.  The kernel is compiled with the SYSVIPC option enabled.

config.sys says:
device=C:\windows\himem.sys
device=C:\windows\emm386.exe noems
dos=high,umb
files=100

I can supply the complete dosemu.conf and/or the two EXE files (with and without 
DPMI support linked in) if anyone is bored enough or curious enough to explore this; 
I'm an applications developer so my knowledge of what's going on with the system's 
use of memory is just about nonexistent.

Any ideas, suggestions, or general ridicule gratefully accepted through the list or my 
own email.  Thanks!
pbs
--------
Peter B. Steiger
Cheyenne, WY



  parent reply	other threads:[~2003-06-10 20:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-07  0:07 [ANNOUNCE] DOSEMU-1.1.5 Bart Oldeman
2003-06-07 19:44 ` Download Problem DOSEMU-1.1.5 Claudia Neumann
2003-06-07 22:57   ` Bart Oldeman
2003-06-08  0:05     ` Ged Haywood
2003-06-08  9:28       ` Alistair MacDonald
2003-06-08  9:50         ` Ged Haywood
2003-06-08 10:58           ` Bart Oldeman
2003-06-08 21:40             ` Claudia Neumann
2003-06-08 22:32               ` Ged Haywood
2003-06-09 12:33                 ` Bart Oldeman
2003-06-09 14:44                   ` Ged Haywood
2003-06-10  8:41                   ` Riley Williams
2003-06-10  8:17                     ` Justin Zygmont
2003-06-07 23:19   ` Ross Vandegrift
2003-06-10 20:43 ` Peter B. Steiger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-06-10 21:18 DOSEMU-1.1.5 vs. DPMI Stas Sergeev
2003-06-12 23:28 Peter B. Steiger
2003-06-23  6:02 Peter B. Steiger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EE5FC93.17771.19F4C13@localhost \
    --to=wypbs_002@bornagain.com \
    --cc=linux-msdos@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox