delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/03/01/22:15:50

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <42250BC6.4CD1F05E@yahoo.com>
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research http://cbfalconer.home.att.net
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: comp.lang.c,comp.os.msdos.djgpp
Followup-To: comp.os.msdos.djgpp
Subject: Re: Help with Crash Dump
References: <1109709622 DOT 899908 DOT 307770 AT f14g2000cwb DOT googlegroups DOT com>
Lines: 62
Date: Wed, 02 Mar 2005 03:03:08 GMT
NNTP-Posting-Host: 12.76.139.71
X-Complaints-To: abuse AT worldnet DOT att DOT net
X-Trace: bgtnsc04-news.ops.worldnet.att.net 1109732588 12.76.139.71 (Wed, 02 Mar 2005 03:03:08 GMT)
NNTP-Posting-Date: Wed, 02 Mar 2005 03:03:08 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

arizvi wrote:
> 
> My program crashes when it reaches a certain line. There is nothing
> wrong with that particular line as I have changed it to something
> simple like i=0, and it still crashes.
> 
> If I remove some paras of code from lines previous to this line,
> the program run fine and does not crash. So I think that this has
> to do with some kind of overflow. It seems to me that if the number
> of lines of code accessed by my program goes above a limit, it
> crashes. So I tried reducing the size of my program by removing the
> debug info during compilation, but the program still crashes.
> 
> So I need help with understanding the crash dump. This is given
> below:
> 
> Exiting due to SIGSEGV
> General protection fault at eip = 00002380
> 
> eax=01da2724 ebx=001190e4 ecx=001190e4
> edx=00078500 esi=0011ed54 edi=00119060
> ebp=00118fe8 esp=00118f60 program=a:\test.exe
> 
> cs: sel=00a7 base=10000000 limit=0012ffff
> ds: sel=00af base=10000000 limit=0012ffff
> es: sel=00af base=10000000 limit=0012ffff
> fs: sel=00bf base=00000000 limit=0010ffff
> gs: sel=00bf base=00000000 limit=0010ffff
> ss: sel=00af base=10000000 limit=0012ffff
> 
> App stack: [0011912c..0009912c]
> Exception stack: [00099080..00097140]
> 
> Call frame traceback EIPs:
>  0x00002380
>  0x000024a7
>  0x000094d3
>  0x0000267d
>  0x0003aa08
> 
> Btw, the program is written in C using the DJGPP compiler (GCC
> for DOS) and compiled on a xp computer. Then I transfer the
> program on a floppy to my DOS box, and run it - where it crashes.
> Can it have anything to do with this XP->DOS transfer with subtly
> differing exe formats.

You are off-topic in c.l.c, which does not deal with compiler or
system specific things, but only the portable language.  You have
shown no code.  If you had included a minimal compilable program
that exhibited the problem, and was written in standard C, your
question would be topical.

At any rate I have set follow-ups and cross-posted to
comp.os.msdos.djgpp.  Go there for any answers.

-- 
"If you want to post a followup via groups.google.com, don't use
 the broken "Reply" link at the bottom of the article.  Click on 
 "show options" at the top of the article, then click on the 
 "Reply" at the bottom of the article headers." - Keith Thompson


- Raw text -


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