This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Error while Dumping State File


On Fri, Aug 01, 2008 at 09:42:45AM -1000, safeeq wrote:
>This is first time I am sending an email on this group. Actually I am having
>a problem while executing a program written in C language and compiled using
>cygwin.
>This is the CFALGS I used while compiling
>
>DEFS = -DHAVE_X11? 
>CFLAGS = -I/usr/X11R6/include
>CC = cc
>FLEX = /usr/bin/flex
>LIBS = -lm -L/usr/X11R6/lib ?
>
>I have complete (I guess) installation of cygwin program on my workstation
>including the Xterm. While executing the program using cygwin Bash Shell it
>checks all the input files and when program reaches to first time step in
>the simulation process it gives me this error:
>"_cygtls::handle_exceptions: Error while dumping state (probably corrupted
>stack) Segmentation fault (core 
>dumped)"
>
>After that it creates a "exe.stackdump" file which has following information
>in it
>
>xception: STATUS_ACCESS_VIOLATION at eip=0042E72F
>eax=00000000 ebx=00000000 ecx=0022B238 edx=00000000 esi=611021A0
>edi=0022CAB4
>ebp=0022A0A8 esp=0022A080
>program=C:\cygwin\home\Saif\makaha_1\makcomplete\v2.4_DHSVM.exe, pid 3472,
>thread main
>cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
>Stack trace:
>Frame???? Function? Args
>0022A0A8? 0042E72F? (0022A6B0, 0022A520, 61168A78, 0022B238)
>0022CCE8? 0042999B? (00000002, 6116B6B0, 006E0090, 0022CC70)
>0022CD98? 610060D8? (00000000, 0022CDD0, 61005450, 0022CDD0)
>61005450? 61004416? (0000009C, A02404C7, E8611021, FFFFFF48)
>? 15186 [main] v2.4_DHSVM 3472 _cygtls::handle_exceptions: Error while
>dumping state (probably corrupted stack)
>
>Funny part is when I am executing the same exe using Xterm it works fine. 
>I hope some body will help me out. 

The above isn't a cygwin problem.  It's a standard problem in your
program just like you'd see in linux.  The difference between linux and
cygwin is that cygwin, by default, produces a stack trace file rather
than a core dump file.

So, the bottom line is that your program has a bug.  You need to track
down what the bug is and fix it.  gdb will probably help you do that.  If
you don't have gdb installed and you are writing programs you really
should install it.

cgf

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]