delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2019/08/20/06:04:31

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rod Pemberton <invalid AT lkntrgzxc DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: [PATCH] exec: fix inversions in leak detection logic
Date: Tue, 20 Aug 2019 05:43:54 -0400
Organization: Aioe.org NNTP Server
Lines: 94
Message-ID: <qjgf7r$1b15$1@gioia.aioe.org>
References: <964e3268-2f75-ee73-ab5a-b01bf1aadb98 AT yandex DOT ru>
<qjb14m$1kqj$1 AT gioia DOT aioe DOT org>
<7209026e-1f1b-e590-00a3-4ed1a424cc0d AT yandex DOT ru>
<qjfkbp$1o2c$1 AT gioia DOT aioe DOT org>
<bd347f78-b176-6992-291c-2e542241efa1 AT yandex DOT ru>
NNTP-Posting-Host: +15yR2JuBIwiofOqK4kSZw.user.gioia.aioe.org
Mime-Version: 1.0
X-Complaints-To: abuse AT aioe DOT org
X-Notice: Filtered by postfilter v. 0.9.2
Bytes: 4367
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

On Tue, 20 Aug 2019 09:05:29 +0300
"stsp (stsp2 AT yandex DOT ru) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
wrote:

> >>> I.e., it's not _just_ an example of a "prot-mode TSR program".  
> >> In presence of another DPMI server - it is.  
> > 32RTM -X can't be loaded "in the presence of another DPMI server"
> > as a "prot-mode TSR program" under CWSDPMI -P as it errors.  That
> > result is for MS-DOS 7.10 (Windows 98/SE).  
> 
> I have not tried loading it under cwsdpmi.
> Host OSes and emulators do provide DPMI these days

a) emulators:

DOSBox doesn't provide DPMI. (disabled)
QEMU doesn't provide DPMI.
DOSEmu doesn't provide DPMI.
Bochs doesn't provide DPMI.
MAME doesn't provide DPMI.

I.e., all of the above emulators would use CWSDPMI by default with
DJGPP code if emulating DOS.  They would use Windows internal DPMI
host, if emulating Windows.

So, which "emulator provides DPMI these days"? ...


b) OSes:

DOS doesn't provide DPMI.
Linux doesn't provide DPMI.
MacOS doesn't provide DPMI.
Android doesn't provide DPMI.
Windows /does/ provide DPMI.

I.e., Windows is the only OS where CWSDPMI wouldn't be used by default,
as Windows has it's own internal DPMI host.

What OS with DPMI other than Windows are you discussing? ... ReactOS?

> > Also, CWSDPMI - being coded with Borland C++ and TASM - doesn't use
> > any of the functions of DJGPP that you're modifying to fix the
> > problem with 32RTM.  So, I'm really doubtful that your claim that
> > 32RTM works with DJGPP's spawn is true, given that 32RTM won't even
> > work with just CWSDPMI alone without calling any DJGPP code.  
> 
> I never said it works for me under cwsdpmi.
> I never even tried that combination.

That makes no sense to me.  That's the default for DJGPP DOS apps.
Most people use DJGPP for DOS, but also execute them in a Windows
console.  Are you saying you've only tested this stuff under the
Windows console? ...


Let's review.

So, in order to bypass CWSDPMI, you must do one of the following:

a) change the default DPMI host for the app under DOS from CWSDPMI to
CWSDPR0 or PMODETSR
b) execute under Windows integral DPMI, i.e., within a Windows console,
or perhaps for a Windows clone OS, say ReactOS ...
c) load a DPMI host in DOS prior to executing the DJGPP code, e.g.,
HDPMI, DOS4GW, PMODEW, DOS32, DOS32A, WDOSX, DPMIONE, QDPMI, PRO32, or
D3X etc.
d) use an emulator with built-in DPMI and an enabled DPMI host, of
which there currently are none, AFAIK ...

Specifically, which one are you doing?
If none of the above, then what?

> Once again, the bug should be fixed first, that
> prevents it from working on _any_ possible
> configuration. Then someone who is interested
> in a _particular_ configuration, may take the time
> to fix it there. I certainly didn't promise to fix everything.

Why would DJGPP code need to be modified, if the modifications won't
allow 32RTM to work with DJGPP for either a DOS or Windows
environment? ...

DOS and Windows are DJGPP's primary target environments.  If the
DJGPP code works properly for DOS and Windows consoles, there is no need
to make it compatible with some other environment, which is most likely
buggy or has a faulty emulation.


Rod Pemberton
-- 
Let me say it yet again.  Reducing gun violence doesn't reduce
violence.  Dead is dead, whether by gun, car, hammer, club, or knife.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019