delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/09/03/08:26:00

From: Martin DOT Stromberg AT lu DOT erisoft DOT se (Martin Stromberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: CRT0 code crashes under DOS
Date: 3 Sep 1999 07:39:30 GMT
Organization: Ericsson Erisoft AB, Sweden
Message-ID: <7qntvi$43u$1@antares.lu.erisoft.se>
References: <7qn8he$7ajkq$2 AT titan DOT xtra DOT co DOT nz>
NNTP-Posting-Host: spica-144.lu.erisoft.se
X-Newsreader: TIN [version 1.2 PL2]
Lines: 33
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Steve Ball (steve AT effectivejava DOT com) wrote:
: 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?

No, it shows it's crashing at line 1055 in main. (And it seems to be 
something like "val = *NULL;".)


: 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


Right,

							MartinS

- Raw text -


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