Linux MS DOS discussions
 help / color / mirror / Atom feed
* Re: Dosemu 1.1.99.1 segfaults
@ 2003-10-29 18:49 Stas Sergeev
  2003-10-29 21:18 ` Ged Haywood
  0 siblings, 1 reply; 13+ messages in thread
From: Stas Sergeev @ 2003-10-29 18:49 UTC (permalink / raw)
  To: DOSEMU users mailing list

Hello.

Ged Haywood wrote:
> I compiled dosemu with debugging enabled, ran 'dosemu -D+a -o debug'
-D9+M might be sufficient.

> ERROR: CS selector invalid: 0x0073, type=0 np=1
> leavedos(36|0x24) called - shutting down
> ERROR: leavedos() called from within a signal context!
Doesn't look like a segfault actually,
just a termination due to a failed sanity
check.

> but I thought you might want
> to know that things in the dosemu/DPMI world still need some attention.
That's true. I would suspect my DPMI 1.0
capabilities patches, but who knows...

> If you want any more information please let me know.
Please open the bug report at BTS at first
so that the problem won't escape.
-D9+M log would be nice, but some test-case
would be even better (attach either to the
bug report).
And if you can do a binary search in CVS
and locate the offending patch - that would
be really great.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Dosemu 1.1.99.1 segfaults
@ 2003-11-01 18:18 Stas Sergeev
  2003-11-02 17:58 ` Ged Haywood
  0 siblings, 1 reply; 13+ messages in thread
From: Stas Sergeev @ 2003-11-01 18:18 UTC (permalink / raw)
  To: DOSEMU users mailing list

Hello.

Ged Haywood wrote:
> the same version of DOS (6.22) running natively.  This seems to me to be
> a surprisingly big difference and I wonder if it means something to you.
> If you want more information can investigate more easily when I'm back
Feel free to produce a -D9+M log for the
case where it gets a stack fault. I have
no idea why this can happen. DPMI server
puts a lot of stuff on a stack, although
not on a client's stack in most cases,
but rather on a "locked" stack. But I don't
think it is some bug.

> If there's anything else you'd like me to try out on dosemu 1.3.0.0
> while I have it running on Athlon/VIA/kernel 2.6.0 please let me know.
See if the Release-1_2 branch also has
the fix you require to compile your
program. There are some patches in HEAD
that are not in Release-1_2. Make sure
they are not important for your stuff,
otherwise there is a risk you will miss
some functionality in 1.2.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Dosemu 1.1.99.1 segfaults
@ 2003-10-30 19:53 Stas Sergeev
  2003-10-30 20:59 ` Ged Haywood
  0 siblings, 1 reply; 13+ messages in thread
From: Stas Sergeev @ 2003-10-30 19:53 UTC (permalink / raw)
  To: DOSEMU users mailing list

Hello.

Ged Haywood wrote:
>> What kernel are you using? Some kind of 2.6? 
>  2.6.0-test5
Dumb question actually, it was written
in the beginning of the log...

>> You have to upgrade your dosemu in that case.
>  Oh dear.  Upgrade to what?
To CVS HEAD just as usual. It is known
to be a good practice to update to CVS
HEAD before reporting any bugs. That
really helps and not only with dosemu.

> Does it say that in the docs?
> If so, where?  I haven't found anything about kernel versions
> in the docs
But dosemu tells you every time you
start it:
---
Please test against a recent version before reporting bugs and problems.
---
Most people don't understand the importance
of that note. But probably now it must be
adjusted to reflect the fact that there is a
CVS in use.

> If you will please tell me where or how to find the fix, I'll cease
> troubling you...
CVS repository of dosemu is the place where
the fixes are now lingering.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: Dosemu 1.1.99.1 segfaults
@ 2003-10-30 18:15 Stas Sergeev
  2003-10-30 18:58 ` Ged Haywood
  0 siblings, 1 reply; 13+ messages in thread
From: Stas Sergeev @ 2003-10-30 18:15 UTC (permalink / raw)
  To: DOSEMU users mailing list

Hello.

Ged Haywood wrote:
>> -D9+M might be sufficient.
> Attached.
Rejected. False alarm.
What kernel are you using? Some kind of
2.6? You have to upgrade your dosemu in
that case.

> I haven't attached anything to the bug report.
The bug-reports without anything are
doomed to be ignored.

> It's very easy to reproduce the segfault, all you have to do is start
> the compiler and dosemu crashes.
Doesn't it crash for you on *any* DPMI
program now? It looks like an incompatibility
with the newer kernels and nothing more.
And this was already fixed but IIRC not in
1.1.99.1.


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Dosemu 1.1.99.1 segfaults
@ 2003-10-28 16:06 Ged Haywood
  0 siblings, 0 replies; 13+ messages in thread
From: Ged Haywood @ 2003-10-28 16:06 UTC (permalink / raw)
  To: DOSEMU users mailing list

Hi all,

I have an old C/C++ compiler suite from Zortech, formerly Zorland,
later bought by Symantec, later I think dropped.  I use it under DOS
to compile just one ancient application which still keeps several
businesses running.

Under dosemu I have never managed to compile the entire application,
the closest I ever got was under dosemu 1.1.5, when 80 out of the 81
modules that make up the application compiled.  The remaining module
caused the compiler to cause dosemu to segfault, I think partly as it
is the largest of the source modules at about 197kB.  The next-largest
module of 185kB compiled OK.

The same compiler executables which ran reasonably well with 1.1.5 now
reliably cause dosemu 1.1.99.1 to segfault immediately on running.
They don't even get as far as reading a source file.

There are real mode and protected mode executable versions of this
compiler, called 'ztcpp1' and 'ztcpp1x' respectively.  Both are .exe
files.  The 'x' model executables of the compiler use a proprietary
dos extender which was at one time available with the Zortech suite,
and later available alone (and somewhat improved) as a product called
called X32.  The source is not freely available but I have a copy of
the X32 product.

The real mode version of the compiler runs but the protected mode
version causes the segfault.  The real mode compiler executable is not
capable of compiling my sources because of memory limitations.

I compiled dosemu with debugging enabled, ran 'dosemu -D+a -o debug'
and ran the two compilers - first ztcpp1.exe and then ztcpp1x.exe -
with no command line parameters, just to get the usual compiler usage
information message.  The resulting debug output is just under thirty-
one Megabytes, so I haven't attached it. :)  It comresses to just under
91kB with bzip2 so I can send it to anyone who's interested, together
with my compiletime-settings and dosemu.conf if required.  This is all
running on an Athlon1300, I can try it on other machines if that will
help, or I can let you have the compiler exectuables, I'm sure Zortech
won't mind.

The following lines might be of interest.

Here are the last lines of the 'debug' file:

----------------------------------------------------------------------
Do INT0x21: Using caller_function()
INT21 (0) at f800:4806: AX=6201, BX=1a3b, CX=0000, DX=1208, DS=073a, ES=0b31
int 0x21, ax=0x6201
DPMI: realmode hlt: 0xfc807
DPMI: initializing
DPMI: return to dosemu code for handling signals
----------------------------------------------------------------------

The following appears at the end of boot.log:

----------------------------------------------------------------------
ERROR: CS selector invalid: 0x0073, type=0 np=1
leavedos(36|0x24) called - shutting down
ERROR: leavedos() called from within a signal context!
----------------------------------------------------------------------

It's not a big deal for me that I can't compile this package under dosemu,
so I'm not worried about not getting a reply, but I thought you might want
to know that things in the dosemu/DPMI world still need some attention.

If you want any more information please let me know.

73,
Ged.


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-11-02 17:58 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-29 18:49 Dosemu 1.1.99.1 segfaults Stas Sergeev
2003-10-29 21:18 ` Ged Haywood
  -- strict thread matches above, loose matches on Subject: below --
2003-11-01 18:18 Stas Sergeev
2003-11-02 17:58 ` Ged Haywood
2003-10-30 19:53 Stas Sergeev
2003-10-30 20:59 ` Ged Haywood
2003-10-30 21:12   ` Bart Oldeman
2003-10-30 21:30     ` Ged Haywood
2003-10-31 16:02   ` Ged Haywood
2003-10-30 18:15 Stas Sergeev
2003-10-30 18:58 ` Ged Haywood
2003-10-30 19:07   ` Bart Oldeman
2003-10-28 16:06 Ged Haywood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox