www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
X-Authentication-Warning: | thing1-200.fsi.com: ford owned process doing -bs |
Date: | Wed, 14 Apr 2004 12:05:59 -0500 (CDT) |
From: | Brian Ford <ford AT vss DOT fsi DOT com> |
X-X-Sender: | ford AT thing1-200 |
Reply-To: | cygwin AT cygwin DOT com |
To: | Enzo Michelangeli <em AT em DOT no-ip DOT com> |
cc: | cygwin AT cygwin DOT com |
Subject: | Re: 1.5.9-1: socket() appears NOT to be thread-safe |
In-Reply-To: | <00c901c4220d$47f6eaa0$0200a8c0@em.noip.com> |
Message-ID: | <Pine.GSO.4.58.0404141157150.21704@thing1-200> |
References: | <00c901c4220d$47f6eaa0$0200a8c0 AT em DOT noip DOT com> |
MIME-Version: | 1.0 |
X-IsSubscribed: | yes |
On Wed, 14 Apr 2004, Enzo Michelangeli wrote: > While porting to Cygwin the Linux application "sipd" > (http://www.sxdesign.com/index.php?page=developer&submnu=sipd ), which > uses pthreads, I noticed that socket() calls issued concurrently by > several threads often failed, with strerror(errno) saying "operation not > permitted". Once I protected all the calls with mutex locks, such errors > went away. Is Cygwin's implementation of socket() known to be > thread-unsafe? FWIW, I have seen this symptom as well, primarily on a dual CPU, Hyperthreaded XP box under 1.5.[8|9]+. In fact, I just confirmed it still exists in a current CVS build from this morning. It seems like a race condition. Running under strace fixes it, so it has been difficult to isolate. If I have time, I'll try to look at it again soon. Would you like to work on it together? -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |