delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/10/19/14:24:49

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4CBDE259.8090708@redhat.com>
Date: Tue, 19 Oct 2010 12:24:25 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.9) Gecko/20100921 Fedora/3.1.4-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.4
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: peflags and STATUS_ACCESS_VIOLATION
References: <SNT113-W136649A2D51152C72DEF1F935B0 AT phx DOT gbl> <SNT113-W59B391236EA63499385C95935B0 AT phx DOT gbl>
In-Reply-To: <SNT113-W59B391236EA63499385C95935B0@phx.gbl>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 10/19/2010 12:16 PM, Hadi Hadizadeh wrote:
>
> Dear All,
>
> I compiled a program under the latest version of Cygwin (1.7.7). But when I run my executable file, I get a STATUS_ACCESS_VIOLATION exception.

Are you sure your code isn't buggy?  That's usually the sign of a NULL 
dereference or other bad code.

 > I tried "peflags --tsaware=true myprogram.exe" and even "peflagsall" 
(in ash) but none of them could solve the problem.

Which makes sense - they solve problems related to the ability to 
execute a program, but not problems related to bugs in the program once 
it is executed.

 > Does anybody know how can I solve this problem? Thanks,

Run it under gdb, and figure out where your bad code is.

-- 
Eric Blake   eblake AT redhat DOT com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019