peflags and STATUS_ACCESS_VIOLATION

Eric Blake eblake@redhat.com
Tue Oct 19 18:45:00 GMT 2010


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@redhat.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



More information about the Cygwin mailing list