This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Pierre, [I'm moving this thread to cygwin@, since it currently doesn't appear to be a cygwin-developers@ issue...] On Fri, Feb 21, 2003 at 02:12:09PM -0500, Jason Tishler wrote: > On Fri, Feb 21, 2003 at 01:22:01PM -0500, Pierre A. Humblet wrote: > > This reminds me of something similar, possibly last month. Look for > > "exim", "services", "gerritt" In the end it was because exim was > > running as a special user who didn't have permission on the whole > > tree under c:\winnt. First make sure Everybody has rx access to it. You may be onto something, see below... > I found some 770s, changed them to 775, but still no luck. > > The above doesn't explain why the attached works when run under the > exim account even with the "bad" permissions: > > $ ssh exim at localhost /tmp/getservbyname > getservbyname(smtp, tcp) succeeded > port = 6400 > > It also doesn't explain with gdb and strace "fixed" the bad > permissions too. See below... On Fri, Feb 21, 2003 at 01:33:17PM -0500, Pierre A. Humblet wrote: > FYI here is some correspondence from the previous similar problem. I > had a private debugging conversation involving sending long straces > etc... > > It was a winsock error due to permission problem. winsock didn't init > properly, and cywin went ahead anyway! > > ******************* > Thanks. It's definitely a winsock error. > Looking into it. > > 627 272260 [main] exim-4.12-2 2816 wsock_init: res 10107 <==== SHOULD BE 0 Since the problem "goes away" with strace and in gdb, I have hacked my DLL with the attached patches. When I start exim under the LocalSystem and exim accounts, I get the following: $ exim -bdf -q15m wsock_init(): wsock_started = 0 wsock_init(): wsastartup = 0x7503d2c3 wsock_init(): wsastartup() returned 10107 getservbyname() failed with last error = 10093 Any further suggestions? Note this is very painful to debug because I can't use gdb and I can't send mail when trying to debug. Sigh... :,( Thanks, Jason -- PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
Attachment:
autoload.cc.diff
Description: Text document
Attachment:
net.cc.diff
Description: Text document
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |