Re: problem debugging application that calls getservbyname()

2005-04-04 Thread Brian Dessent
Corinna Vinschen wrote: > > Program received signal SIGTRAP, Trace/breakpoint trap. > > 0x7801b8a8 in RpcRaiseException () from /winxp/system32/rpcrt4.dll > > (gdb) c > > Continuing. > > Hmm, http://cygwin.com/acronyms/#WJFFM Thanks for the confirmation that it was a local problem. I did more t

Re: problem debugging application that calls getservbyname()

2005-04-04 Thread Corinna Vinschen
On Apr 3 22:22, Brian Dessent wrote: > #include > #include > > int main(char **argv, int argc) > { > struct servent *p; > > if((p = getservbyname("smtp", "tcp"))) { > printf("success\n"); > } else { > printf("failure\n"); > } > } > > Simple enough, no? > > $ ./getservbyname

Re: problem debugging application that calls getservbyname()

2005-04-04 Thread Brian Dessent
Michael Wardle wrote: > On Sun, 2005-04-03 at 22:22 -0700, Brian Dessent wrote: > > int main(char **argv, int argc) > > That looks a bit weird! Yeah, I noticed that after I posted... I was in a hurry, and the args aren't used anyway so it has no effect on anything. Brian -- Unsubscribe info:

Re: problem debugging application that calls getservbyname()

2005-04-03 Thread Michael Wardle
On Sun, 2005-04-03 at 22:22 -0700, Brian Dessent wrote: > int main(char **argv, int argc) That looks a bit weird! -- Michael Wardle <[EMAIL PROTECTED]> -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation:

problem debugging application that calls getservbyname()

2005-04-03 Thread Brian Dessent
I'm trying to debug an application, but when I run it under the debugger it always dies during the application's initial config file reading, well before the actual place I want to debug. Outside of the debugger this part runs fine. I managed to reduce it down to the following simple testcase: