473,401 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,401 software developers and data experts.

Weird runtime error

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.
Jul 22 '05 #1
2 2380
Tim Johansson wrote:
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
Jul 22 '05 #2
"Tim Johansson" <sp**@gurka.se> wrote in message news:<c5************@ID-224346.news.uni-berlin.de>...
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.
Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Robertb | last post by:
I'm driving myself crazy trying to figure this one out. So much so that I think I'm within walking distance now! The program is written and compiled in Visual Basic 6 with SP5. The OS is...
5
by: Sönke Tesch | last post by:
Hi everybody, I have a problem with the following piece of code: 141: /* A data block to manage a single log target: */ 142: typedef struct { 143: apr_reslist_t *dbs; /* connection pool */...
2
by: Albert Pascual | last post by:
I always see this error when accesing any page in website I compiled in ASP.NET Compiler Error Message: CS0433: The type 'Customer_CreditWizard' exists in both...
8
by: XYZ | last post by:
I need to pass the address of a variableto some win32 API functions like RTLMoveMemory I noticed some weird behavior when pinning objects and using the handle's pointer to write data to the...
14
by: vittorio | last post by:
While I can compile the program below under freebsd via a simple: gcc prog1.c -o prog1 and it runs smoothly, I'm experiencing annoying problems with lcc-win32 under windows xp pro. In fact, under...
2
by: WisTex | last post by:
I've come across a very weird problem. Virtual includes work on all my ASP pages on the entire website, including those in subdirectories, yet they won't work on a particular page I created, even...
4
by: alex323 | last post by:
Hey. I must have an array that can be resized dynamically. I have coded an implementation of it using malloc/realloc, but I am getting a runtime error as seen below in GDB: *** glibc detected...
2
by: Flack | last post by:
I have a DataGrid and a DataTable. When my form loads I create the DataTable with the appropriate columns and use it for the DataGrids.DataSource. Later on in my app, I alter the DataTable: ...
0
by: P Pulkkinen | last post by:
Dear all, sorry, i know this code is far little too long to debug here, but there is really annoying logical error. If someone debugs this, I really offer warm virtual handshake. What this...
6
by: =?Utf-8?B?amVmZmVyeQ==?= | last post by:
i need help with a combo box and this same code works on my first tab with a combo box. The error or problem i have is this code causes an index out of range error when i run it on my second combo...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.