From: broeker AT acp3bf DOT knirsch DOT de (Hans-Bernhard Broeker) Newsgroups: comp.os.msdos.djgpp Subject: Re: CRT0 code crashes under DOS Date: 6 Sep 1999 15:02:12 +0200 Organization: RWTH Aachen, III. physikalisches Institut B Message-ID: <7r0e0k$68d@acp3bf.knirsch.de> References: <7qn8he$7ajkq$2 AT titan DOT xtra DOT co DOT nz> <7qntvi$43u$1 AT antares DOT lu DOT erisoft DOT se> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 936622935 13836 137.226.32.75 (6 Sep 1999 13:02:15 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 6 Sep 1999 13:02:15 GMT X-Newsreader: TIN [version 1.2 PL2] Lines: 20 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Martin Stromberg (Martin DOT Stromberg AT lu DOT erisoft DOT se) wrote: > 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. > No, it shows it's crashing at line 1055 in main. (And it seems to be > something like "val = *NULL;".) Close, but not quite right. It's crashing in *byte* number 1055 of main(), not line 1055. It definitely happens inside main(), that's still correct. Steve: you should recompile the program with '-g', run it, and 'symify' the crash dump, to get that address (main+1055) translated into a source line number. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.