🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1274

Crashing OS/2 from DOS window

#1274
From: Frankpeter Lohse
Date: Mon, 31 Aug 1992 11:16
36 lines
1592 bytes
Hi,

when I tried to test the DOS features of my OS/2 2.0 machines it crashes!
I wrote the following simple test program :

#include <stdio.h>

main()
{
   int i;
   int far *a;
   a = 0;
   for (i=0; i<10000; i++) a[i]=i;
}

When runing this program on a DOS machine the computer hangs and after 
reboot, the setup is destroyed.
On an OS/2 machine I expected to get a general protection fault or 
something like that but what I got was system crash. I can reproduce two
diffenrent results (with different machines) :

1. A register dump and a stopped system, reboot works fine.
2. System hangs (no reg dump) and setup is destroyed.

My question : what is the reason for this crash and can I protect my
system against it?

Thanks in advance,
Frankpeter

P.S. : We're using COMPAQ 386/25e with a german version of OS/2 2.0.
-------------------------------------------------------------------------------
Frankpeter Lohse                      | Disclaimer :
DESY, Hamburg, FRG                    | It's just me, not my organisation.
lohse@vxdesy.desy.de                  |
-------------------------------------------------------------------------------
Technical Details
Message-ID: <lohse.2.0@desy.de>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!dxcern!dscomsa.desy.de!fplpc.desy.de!lohse

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!dxcern!dscomsa.desy.de!fplpc.desy.de!lohse
From: lohse@desy.de (Frankpeter Lohse)
Subject: Crashing OS/2 from DOS window
Message-ID: <lohse.2.0@desy.de>
Sender: news@dscomsf.desy.de (USENET News System)
Nntp-Posting-Host: fplpc.desy.de
Organization: Deutsches Elektonen Synchrotron DESY
Date: Mon, 31 Aug 1992 11:16:38 GMT
Lines: 36