Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com To: "Nicolas Grehalle" Cc: Subject: Re: violation error References: <013001c124a1$1a154260$710f6ac1 AT rennes DOT jouve DOT fr> From: Andrew Markebo Date: 14 Aug 2001 11:30:30 +0200 In-Reply-To: <013001c124a1$1a154260$710f6ac1@rennes.jouve.fr> Message-ID: Lines: 140 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Core-dump, smells memory error, you are pointing in memory you shouldn't :-) Where is beginning?.. Before or during main is being called? Throw us a complete line of compilation.. Add some printfs to main so you can see approx where in main it dies. /Andy / "Nicolas Grehalle" wrote: | [...] | > | > When i'm using GDB, i have the message "Program received signal SIGSEGV, = | > Segmentation Fault at the beginning of the execution (it seems to me = | > that the program crashes at the beginning). | > | > the compilation options are : | > CFLAGS =3D -g -Wall -D_TRACE_ -I$(WEBINC) -I$(GTIINC) = | > -I$(EF1INC) -I$(EF2INC) -I$(EF3INC) -I$(LDAINC) -I$(MSQINC) -x c++ | > -enum-int-equiv -static -DANSI -DGNUCC -DPC2UX -D_CLIENT -DVERBOSE -DHB = | > -DANSIP -DGNU_INTEL | > | > it is correct ? | > | > Any idea. | > | > Thanks for any help | > | > N. | > | > | > | > ------=_NextPart_000_0123_01C124B0.CE74A700 | > Content-Type: text/html; | > charset="iso-8859-1" | > Content-Transfer-Encoding: quoted-printable | > | > | > | > http-equiv=3DContent-Type> | > | > | > | > | >
hello,
| >
 
| >
i'm just beginning to use Cygwin on a = | > NT machine=20 | > (sorry for english mistakes, that's not my mother = | > language).
| >
 
| >
I must put a Unix program (CGI in = | > C/C++) on NT with=20 | > Cygwin.
| >
 
| >
The compilation is ok, but when = | > i run the=20 | > program, i have an error :
| >
 
| >
       0 = | > [main]=20 | > EFLmemen.cgi 447 open_stackdumpfile: Dumping stack trace to=20 | > EFLmemen.cgi.stackdump
Segmentation fault (core dumped)
| >
 
| >
In this file :
| >
 
| >
  53806 [main] EFLmemen.cgi 447=20 | > handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
Exception:=20 | > STATUS_ACCESS_VIOLATION at eip=3D00009B58
eax=3D00009B58 = | > ebx=3D0050E37C=20 | > ecx=3D00000000 edx=3D610900A0 esi=3D0050E368 = | > edi=3D00000000
ebp=3D0258F9E4 esp=3D0258F9C8=20 | > program=3Dd:\Unix\MEMENTOS\srccgi\RECHERCH\EFLmemen.cgi
cs=3D001B = | > ds=3D0023 es=3D0023=20 | > fs=3D0038 gs=3D0000 ss=3D0023
Stack = | > trace:
Frame    =20 | > Function  Args
0258F9E4  00009B58  (0050E368, = | > 00000000,=20 | > FEEEFEEE, 00000098)
0258FA04  61003DC6  (77F8D6C6, = | > 025940F8,=20 | > 00000168, FEEEFEEE)
0258FEA4  004261E2  (00000001, = | > 10030EF8,=20 | > 10030008, 00420000)
0258FF10  61003AEA  (00000000, = | > 13121110,=20 | > 77F863D3, 77F863DB)
0258FF40  61003CBD  (004261D4, = | > 13121110,=20 | > 80134EE1, F8DE4DB8)
0258FF60  61003CFC  (00000000, = | > 00000000,=20 | > 00000018, 8014FBA0)
0258FF90  004F3A0B  (004261D4, = | > 00000000,=20 | > 00000030, 805B5C20)
0258FFC0  0040103D  (13121110, = | > 17161514,=20 | > 7FFDF000, 7FFDF000)
0258FFF0  77F1B9EA  (00401000, = | > 00000000,=20 | > 000000B0, 00000100)
End of stack trace
| >
 
| >
How use this information to find the = | > problem=20 | > ?
| >
 
| >
When i'm using GDB, i have the message = | > "Program=20 | > received signal SIGSEGV, Segmentation Fault at the beginning of the = | > execution=20 | > (it seems to me that the program crashes at the beginning).
| >
 
| >
the compilation options are = | > :
| >
size=3D2>CFLAGS          = | > =3D -g -Wall=20 | > -D_TRACE_ -I$(WEBINC) -I$(GTIINC) -I$(EF1INC) -I$(EF2INC) -I$(EF3INC)=20 | > -I$(LDAINC) -I$(MSQINC) -x c++
-enum-int-equiv -static -DANSI -DGNUCC = | > -DPC2UX=20 | > -D_CLIENT -DVERBOSE -DHB -DANSIP -DGNU_INTEL
| >
 
| >
it is correct ?
| >
 
| >
Any idea.
| >
 
| >
Thanks for any help
| >
 
| >
N.
| >
 
| >
 
| > | > ------=_NextPart_000_0123_01C124B0.CE74A700-- | > | > | | | -- | Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple | Bug reporting: http://cygwin.com/bugs.html | Documentation: http://cygwin.com/docs.html | FAQ: http://cygwin.com/faq/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/