apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Daniel.Poc...@barclayscapital.com>
Subject RE: APR_POLLSET_THREADSAFE crash on Cygwin
Date Mon, 30 Mar 2009 07:59:33 GMT
> > 
> > Did apr-1.2.x even know about APR_POLLSET_THREADSAFE?
> > 
> I've just been referring to the online API docs, I didn't see version
> information for this feature.
> However, it definitely makes a differences if it is enabled 
> or not.  If
> I don't have this option, then gmond dies with SIGPIPE, usually at the
> time when it receives an incoming TCP connection and starts 
> writing the
> response.

I finally have some more detail about what is wrong, a number of issues

 - the apr package in Cygwin doesn't appear to be compiled with thread

 - when I compiled my own apr 1.2.7 package, even with --enable-threads,
it still didn't compile with threads (but there was no obvious warning
from configure), I had to manually edit configure.in and comment out the
line enabled_threads=no in the cygwin code:

--- configure.in        (revision 197)
+++ configure.in        (working copy)
@@ -407,7 +407,7 @@
-       enable_threads="no"
+       #enable_threads="no"
    *hpux10* ) 

 - on Cygwin, with or without apr compiled for thread support, calling
apr_pollset_create with APR_POLLSET_THREADSAFE still returns
APR_SUCCESS, however, the seg fault occurs consistently on subsequent


This e-mail may contain information that is confidential, privileged or otherwise protected
from disclosure. If you are not an intended recipient of this e-mail, do not duplicate or
redistribute it by any means. Please delete it and any attachments and notify the sender that
you have received it in error. Unless specifically indicated, this e-mail is not an offer
to buy or sell or a solicitation to buy or sell any securities, investment products or other
financial product or service, an official confirmation of any transaction, or an official
statement of Barclays. Any views or opinions presented are solely those of the author and
do not necessarily represent those of Barclays. This e-mail is subject to terms available
at the following link: www.barcap.com/emaildisclaimer. By messaging with Barclays you consent
to the foregoing.  Barclays Capital is the investment banking division of Barclays Bank PLC,
a company registered in England (number 1026167) with its registered office at 1 Churchill
Place, London, E14 5HP.  This email may relate to or be sent from other members of the Barclays

View raw message