X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Fri, 1 Aug 2008 15:59:24 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Error while Dumping State File Message-ID: <20080801195924.GB14138@ednor.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <001101c8f40e$c5369fb0$fd7dab80 AT uhmwomh5678ot4> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <001101c8f40e$c5369fb0$fd7dab80@uhmwomh5678ot4> User-Agent: Mutt/1.5.16 (2007-06-09) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/