X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <483DB6E0.53C6EED0@dessent.net> Date: Wed, 28 May 2008 12:47:44 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Mike Marchywka CC: cygwin AT cygwin DOT com Subject: Re: MS or cygwin dll debug tools/ was "sys/sockio.h" etc. References: <17275355 DOT post AT talk DOT nabble DOT com> <17290164 DOT post AT talk DOT nabble DOT com> <4830F08D DOT 6040505 AT cygwin DOT com> <17345729 DOT post AT talk DOT nabble DOT com> <4833813A DOT 7B6F7FAF AT dessent DOT net> <17405074 DOT post AT talk DOT nabble DOT com> <483583EE DOT 8030605 AT cygwin DOT com> <00e501c8bc1e$a44d0190$2708a8c0 AT CAM DOT ARTIMI DOT COM> <20080523000735 DOT GA23793 AT ednor DOT casa DOT cgf DOT cx> <483BBE3D DOT EDF663D3 AT dessent DOT net> <483D7849 DOT 5010505 AT sbcglobal DOT net> <483D7C01 DOT EAE5ADA1 AT dessent DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/