A
arizvi
Hi,
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.
Any help is appreciated!!
Thanks,
Ahmad
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.
Any help is appreciated!!
Thanks,
Ahmad