From: Brian Ford <ford@vss.fsi.com>
To: cygwin@cygwin.com
Subject: Re: 1.5.9-1: socket() appears NOT to be thread-safe
Date: Thu, 10 Jun 2004 17:37:00 -0000 [thread overview]
Message-ID: <Pine.CYG.4.58.0406101149230.3560@fordpc.vss.fsi.com> (raw)
In-Reply-To: <Pine.CYG.4.58.0406091547450.4904@fordpc.vss.fsi.com>
On Thu, 10 Jun 2004, Brian Ford wrote:
> I put a call to try_to_debug in find_winsock_errno when it returned the
> default EPERM. Then, by setting
> CYGWIN="error_start=c:\cygwin\bin\gdb.exe" I can get a gdb pop up and do a
> back trace. The error was:
>
> 10093
> Either the application has not called WSAStartup, or WSAStartup failed.
>
> and came from the socket call in cygwin_socket.
>
> So, given this is some sort of race condition, how do I debug the autoload
> code and find out if WSAStartup was actually called or if it failed?
Ok, I put another try_to_debug call in wsock_init just inside the if
(!wsock_started). Sometimes I hit it first and the socket call succeeds.
But, sometimes I hit the one above first and the socket call fails. In
the later case, wsock_started=1. Any idea how that could happen?
--
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
the best safety device in any aircraft is a well-trained pilot...
--
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/
next prev parent reply other threads:[~2004-06-10 17:06 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-04-14 10:43 Enzo Michelangeli
2004-04-14 13:22 ` Corinna Vinschen
2004-04-14 17:06 ` Brian Ford
2004-04-15 3:17 ` Enzo Michelangeli
2004-04-15 4:14 ` Christopher Faylor
2004-04-15 17:41 ` Christopher Faylor
2004-05-22 16:59 ` Brian Ford
2004-05-22 19:08 ` Christopher Faylor
2004-06-10 15:21 ` Brian Ford
2004-06-10 17:37 ` Brian Ford [this message]
2004-04-15 4:04 Enzo Michelangeli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.CYG.4.58.0406101149230.3560@fordpc.vss.fsi.com \
--to=ford@vss.fsi.com \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).