delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/03/03:19:10

From: "Steve Ball" <steve AT effectivejava DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: CRT0 code crashes under DOS
Date: Fri, 3 Sep 1999 13:06:40 +1200
Organization: Customer of Telecom Internet Services
Lines: 29
Message-ID: <7qn6v8$79o6s$1@titan.xtra.co.nz>
NNTP-Posting-Host: 203-96-93-61.dialup.xtra.co.nz
X-Trace: titan.xtra.co.nz 936320808 7659740 203.96.93.61 (3 Sep 1999 01:06:48 GMT)
X-Complaints-To: abuse AT xtra DOT co DOT nz
NNTP-Posting-Date: 3 Sep 1999 01:06:48 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.1
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

I have a program which runs fine in a Windows DOS box, but crashes
immediately if run in MS-DOS mode. The program crashes before starting to
execute the body of main(). Symify shows that it is crashing in
__crt1_startup. Is it possible to use DJGPP to write programs to run under
DOS alone? Any ideas what's going wrong here?

Thanks,
Steve.

Exiting due to signal SIGSEGV
Page fault at eip=00002e2f, error=0004
eax=00000000 ebx=00001000 ecx=000c1720 edx=000c1708 esi=000c1534
edi=00000000
ebp=000c1104 esp=000c10d0 program=C:\007\C__~1\BITARRAY\BLIT.EXE
cs: sel=00a7  base=10000000  limit=000cffff
ds: sel=00af  base=10000000  limit=000cffff
es: sel=00af  base=10000000  limit=000cffff
fs: sel=008f  base=00022d70  limit=0000ffff
gs: sel=00bf  base=00000000  limit=0010ffff
ss: sel=00af  base=10000000  limit=000cffff
App stack: [000c1190..00041190]  Exceptn stack: [0004106c..0003f12c]

Call frame traceback EIPs:
  0x00002e2f   _main+1055
  0x00002a24   _main+20
  0x0001b992   ___crt1_startup+174



- Raw text -


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