|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
| < Prev | 1 - 2 - 3 | Next > |
|
|
RE: MS or cygwin dll debug tools/ was "sys/sockio.h" etc.> 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. > I think I mentioned the windoze invokation before and got the definitive " The app failed to initialize ..." meesage. I didn't know about strace, let me see if I can expand on this, $ strace a.exe --- Process 1380, exception C0000005 at 77F84E71 --- Process 1380, exception C0000005 at 77FAC57C Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency only marchywka@... Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on marchywka@... if no reply here. Thanks. > Date: Wed, 28 May 2008 12:47:44 -0700 > From: brian@... > To: marchywka@... > CC: cygwin@... > Subject: Re: MS or cygwin dll debug tools/ was "sys/sockio.h" etc. > > 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/ > _________________________________________________________________ Keep your kids safer online with Windows Live Family Safety. http://www.windowslive.com/family_safety/overview.html?ocid=TXT_TAGLM_WL_Refresh_family_safety_052008 -- 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/ |
|
|
Re: MS or cygwin dll debug tools/ was "sys/sockio.h" etc.Mike Marchywka wrote:
> I think I mentioned the windoze invokation before and got the definitive " The app failed to initialize ..." > meesage. I didn't know about strace, let me see if I can expand on this, .rdata relocs it is then. 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/ |
|
|
RE: MS or cygwin dll debug tools/ was "sys/sockio.h" etc.> .rdata relocs it is then. This is why I lurk as I now remember something about this and, sure, I can find it on google. Of course, it would still be nice to have a fully instrumented load ( so where do I find the unreolcatable data?) . I relinked with -strip and used dumpbin to find all the symbols in rdata but there are several hundred. I thought I could grep the code for suspicious consts but no luck so far. Isn't there some way to find the offending relocation attempt? What does strace know about the stituation or does it just echo stuff from Windoze? Thanks. Mike Marchywka 586 Saint James Walk Marietta GA 30067-7165 404-788-1216 (C)<- leave message 989-348-4796 (P)<- emergency only marchywka@... Note: If I am asking for free stuff, I normally use for hobby/non-profit information but may use in investment forums, public and private. Please indicate any concerns if applicable. Note: Hotmail is possibly blocking my mom's entire ISP - try me on marchywka@... if no reply here. Thanks. > Date: Wed, 28 May 2008 14:08:31 -0700 > From: brian@... > To: marchywka@... > CC: cygwin@... > Subject: Re: MS or cygwin dll debug tools/ was "sys/sockio.h" etc. > > Mike Marchywka wrote: > >> I think I mentioned the windoze invokation before and got the definitive " The app failed to initialize ..." >> meesage. I didn't know about strace, let me see if I can expand on this, > > .rdata relocs it is then. > > Brian _________________________________________________________________ E-mail for the greater good. Join the i’m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood -- 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/ |
|
|
Re: MS or cygwin dll debug tools/ was "sys/sockio.h" etc.Mike Marchywka wrote:
> > > .rdata relocs it is then. > > This is why I lurk as I now remember something about this and, sure, I can find it on google. > Of course, it would still be nice to have a fully instrumented load ( so where do I find the > unreolcatable data?) . > I relinked with -strip and used dumpbin to find all the symbols in rdata but there are several hundred. > I thought I could grep the code for suspicious consts but no luck so far. The simplest method is just to tweak the linker script to make .rdata writable (or rather, to map both .data and .rdata input segments into the same .data output section.) There is no method that I'm aware of to find the name of the offending symbol. Actually, that's not quite true, see <http://cygwin.com/ml/cygwin-patches/2008-q1/msg00067.html>. As I said in that message though, those might just be coindicental and certainly not guaranteed across OS versions or whatever. > Isn't there some way to find the offending relocation attempt? What does strace know > about the stituation or does it just echo stuff from Windoze? strace under Cygwin is not like strace on other operating systems, it is really just a glorified viewer for a bunch of debug_printf statements that exist in the Cygwin code. The error occurs before the process even begins execution, during the period where NTLDR loads libraries into its address space. So, strace will be of no use. 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/ |
| < Prev | 1 - 2 - 3 | Next > |
| Free embeddable forum powered by Nabble | Forum Help |