MS or cygwin dll debug tools/ was "sys/sockio.h" etc.
Brian Dessent
brian@dessent.net
Wed May 28 20:33:00 GMT 2008
Mike Marchywka wrote:
> (gdb) b *0x0401000
> Breakpoint 1 at 0x401000
> (gdb) run
> Starting program: /cygdrive/e/new/temp/nmap/src3/nmap-4.62/a.exe
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Program received signal SIGSEGV, Segmentation fault.
>
> Program exited with code 0200.
> You can't do that without a process to debug.
> (gdb)
The fact that it never actually begins execution therefore implies that
it encounters a fault by the OS loader during process initialization,
such as the "const data in .rdata needing relocation due to
auto-imports" situation. I bet that if you invoke it via strace or from
a native command prompt (not bash) you will see a dialog box explaining
the fault since the "SetErrorMode (SEM_FAILCRITICALERRORS)" stuff won't
be active.
Brian
--
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/
More information about the Cygwin
mailing list