home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / os2 / misc / 28975 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.5 KB  |  46 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!mcsun!dxcern!dscomsa.desy.de!fplpc.desy.de!lohse
  3. From: lohse@desy.de (Frankpeter Lohse)
  4. Subject: Crashing OS/2 from a DOS window
  5. Message-ID: <lohse.3.0@desy.de>
  6. Sender: news@dscomsf.desy.de (USENET News System)
  7. Nntp-Posting-Host: fplpc.desy.de
  8. Organization: Deutsches Elektonen Synchrotron DESY
  9. Date: Wed, 2 Sep 1992 10:49:12 GMT
  10. Lines: 34
  11.  
  12. When I tried to test the DOS features of my OS/2 2.0 machines it crashes!
  13. I wrote the following simple test program :
  14.  
  15. #include <stdio.h>
  16.  
  17. main()
  18. {
  19.    int i;
  20.    int far *a;
  21.    a = 0;
  22.    for (i=0; i<10000; i++) a[i]=i;
  23. }
  24.  
  25. When runing this program on a DOS machine the computer hangs and after 
  26. reboot, the setup is destroyed.
  27. On an OS/2 machine I expected to get a general protection fault or 
  28. something like that but what I got was system crash. I can reproduce two
  29. diffenrent results (with different machines) :
  30.  
  31. 1. A register dump and a stopped system, reboot works fine.
  32. 2. System hangs (no reg dump) and setup is destroyed.
  33.  
  34. My question : what is the reason for this crash and can I protect my
  35. system against it?
  36.  
  37. Thanks in advance,
  38. Frankpeter
  39.  
  40. P.S. : We're using COMPAQ 386/25e with a german version of OS/2 2.0.
  41. -------------------------------------------------------------------------------
  42. Frankpeter Lohse                      | Disclaimer :
  43. DESY, Hamburg, FRG                    | It's just me, not my organisation.
  44. lohse@vxdesy.desy.de                  |
  45. -------------------------------------------------------------------------------
  46.