| www.delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Message-ID: | <000101be6032$6f6fc5e0$8036a080@skeeter.nrlssc.navy.mil> |
| From: | "Robert Owens" <Robert DOT Owens AT psislidell DOT com> |
| To: | <cygwin AT sourceware DOT cygnus DOT com> |
| Subject: | STATUS_ACCESS_VIOLATION in __main |
| Date: | Wed, 24 Feb 1999 14:15:33 -0600 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 4.72.3110.5 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
Howdy
I have been looking through the archives and didn't have much luck with my
problem.
I have a couple of C programs I am trying to compile and run under cygwin.
The main() compiles into:
0x41bd2c <main>: push %ebp
0x41bd2d <main+1>: mov %esp,%ebp
0x41bd2f <main+3>: sub $0x630,%esp
0x41bd35 <main+9>: push %ebx
0x41bd36 <main+10>: call 0x4f7430 <__main>
...
The __main() looks like:
0x4f7430 <__main>: jmp *0x11cb5e0
0x4f7436 <__main+6>: nop
0x4f7437 <__main+7>: nop
When run I ususally get:
0x4f7430 in __main ()
(gdb) stepi
Cannot access memory at address 0x2000000. (A STATUS_ACCESS_VIOLATION
exception)
I can even get this behavior from the following program under DDD (but only
while single stepping machine instructions).
#include <stdio.h>
int main()
{
printf("Hello there.\n");
return 0;
}
I tried to override __main() but it must be in the startup code since I was
not able to get my __main() to be used.
Thanks in advance.
Robert Owens
Robert DOT Owens AT psislidell DOT com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |