473,760 Members | 9,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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..00049 aac] Excetn stack: [00049a00..00047 ac0]

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 2395
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..00049 aac] Excetn stack: [00049a00..00047 ac0]

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.s e> 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..00049 aac] Excetn stack: [00049a00..00047 ac0]

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
4082
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 Windows XP Professional. The other day, it worked just fne. Today it doesn't. I had this same problem a few weeks ago, but it mysteriously went away. Well, now it's back. What did I change? I have no idea. Lot's of stuff, I suppose. I don't...
5
3829
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 */ 144: 145: const char *uri; /* the complete log uri.. */
2
1989
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 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET Files\creditjockey\34369bc7\745233b3\assembly\dl3\798e68b8\40272035_89b9c501\App_Web_50yiu_rb.DLL' and 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50215\Temporary ASP.NET...
8
2351
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 memory location. it seems as if after pinning an object the memory and the object are not updated at the same time anymore
14
3809
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 wedit, I can smoothly compile the program but when I try to execute it it ends with an "abnormal termination" and a popup complains that: lcc runtime Exception 0xc0000005 segment violation
2
4641
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 though the virtual include statement is copy & pasted exactly as it appears on the working pages. What would cause virtual includes to work in one page on a website, but not on another? Error Message: Microsoft VBScript runtime error...
4
4016
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 *** realloc(): invalid next size: 0x08054828 *** Program received signal SIGABRT, Aborted. 0xffffe410 in __kernel_vsyscall () (gdb) bt
2
2658
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: dt.BeginLoadData(); for(int i = 0; i < _movesArrayList.Count; i++) { string columnValues = ((string)_movesArrayList).Split(COL_SEPARATOR); DataRow _moveRow = dt.NewRow();
0
1831
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 code SHOULD do: - read new (=updated) licensetext from file $license_path then - read and modify recursively all files from $current_dir, replacing old
6
1875
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 box: (errored code) Select Case ComboBox2.text Case Is ="Execute Program" 'code to execute program here Case Is ="Other Command that executes code at a certain time" ' code below the same as above except that it works But not my first(this...
0
9521
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9333
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10107
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
9900
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8768
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7324
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6599
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3863
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.