Weird runtime error

T

Tim Johansson

When i run my program, i get the following:

"Exiting due to signal SIGSEGV
General Protection Fault at eip=0001cdc0
eax=00000009 ebx=000ca110 ecx=000ca110 edx=00000000 esi=0000160e
edi=00000009 ebp=000c99f8 esp=000c99e0 program=C:\TEST.EXE
cs: sel=01a7 base=029d0000 limit=000dffff
ds: sel=01af base=029d0000 limit=000dffff
es: sel=01af base=029d0000 limit=000dffff
fs: sel=017f base=00006ca0 limit=0000ffff
gs: sel=01bf base=00000000 limit=0010ffff
ss: sel=01af base=029d0000 limit=000dffff
App stack: [000c9aac..00049aac] Excetn stack: [00049a00..00047ac0]

Call frame traceback EIPs:
0x0001cdc0
0x0001c46e
0x00001757
0x00005548
"

That makes no sense at all to me... Does anybody know what the error is? I'm
using DJGPP as compiler, by the way.
 
P

Petec

Tim said:
When i run my program, i get the following:

"Exiting due to signal SIGSEGV
General Protection Fault at eip=0001cdc0
eax=00000009 ebx=000ca110 ecx=000ca110 edx=00000000 esi=0000160e
edi=00000009 ebp=000c99f8 esp=000c99e0 program=C:\TEST.EXE
cs: sel=01a7 base=029d0000 limit=000dffff
ds: sel=01af base=029d0000 limit=000dffff
es: sel=01af base=029d0000 limit=000dffff
fs: sel=017f base=00006ca0 limit=0000ffff
gs: sel=01bf base=00000000 limit=0010ffff
ss: sel=01af base=029d0000 limit=000dffff
App stack: [000c9aac..00049aac] Excetn stack: [00049a00..00047ac0]

Call frame traceback EIPs:
0x0001cdc0
0x0001c46e
0x00001757
0x00005548
"

That makes no sense at all to me... Does anybody know what the error
is? I'm using DJGPP as compiler, by the way.

You deleted a pointer twice, read or wrote memory you weren't supposed to,
dereferenced a null pointer, or some other pointer related error most
likely.
Try stepping through your program and see exactly when it crashes, then work
backwards.

- Pete
 
S

Steve

Tim Johansson said:
When i run my program, i get the following:

"Exiting due to signal SIGSEGV
General Protection Fault at eip=0001cdc0
eax=00000009 ebx=000ca110 ecx=000ca110 edx=00000000 esi=0000160e
edi=00000009 ebp=000c99f8 esp=000c99e0 program=C:\TEST.EXE
cs: sel=01a7 base=029d0000 limit=000dffff
ds: sel=01af base=029d0000 limit=000dffff
es: sel=01af base=029d0000 limit=000dffff
fs: sel=017f base=00006ca0 limit=0000ffff
gs: sel=01bf base=00000000 limit=0010ffff
ss: sel=01af base=029d0000 limit=000dffff
App stack: [000c9aac..00049aac] Excetn stack: [00049a00..00047ac0]

Call frame traceback EIPs:
0x0001cdc0
0x0001c46e
0x00001757
0x00005548
"

That makes no sense at all to me... Does anybody know what the error is? I'm
using DJGPP as compiler, by the way.

Try piping it through the debugger, I think there is a version of GDB
for windows, although I'm not sure. Anyways a backtrace or BT in GDB
would give you a good hint as to where to start looking.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,584
Members
45,077
Latest member
SangMoor21

Latest Threads

Top