RE: APR_POLLSET_THREADSAFE crash on Cygwin

2009-03-30 Thread Daniel.Pocock
> > > > 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 die

RE: APR_POLLSET_THREADSAFE crash on Cygwin

2009-03-26 Thread Daniel.Pocock
> I've now added this check, and apr_pollset_create is returning > APR_SUCCESS > > The seg fault only occurs after the first socket is added to the > pollset, maybe there is another place where return > codes are ignored? > > > Hmmm... I see that poll() or select

Re: APR_POLLSET_THREADSAFE crash on Cygwin

2009-03-26 Thread Jeff Trawick
On Thu, Mar 26, 2009 at 8:24 PM, wrote: > > > APR_POLLSET_THREADSAFE isn't supported with all > > implementations. I expect that apr_pollset_create() is > > returning APR_ENOTIMPL, and the crash is due to an > > uninitialized pollset. > > Excellent point - I should have checked for a return code

RE: APR_POLLSET_THREADSAFE crash on Cygwin

2009-03-26 Thread Daniel.Pocock
> APR_POLLSET_THREADSAFE isn't supported with all > implementations. I expect that apr_pollset_create() is > returning APR_ENOTIMPL, and the crash is due to an > uninitialized pollset. Excellent point - I should have checked for a return code, there are a few cases like this in Ganglia where

Re: APR_POLLSET_THREADSAFE crash on Cygwin

2009-03-26 Thread Jeff Trawick
On Thu, Mar 26, 2009 at 3:54 PM, wrote: I've got Cygwin's libapr1 1.3.3-1 > > I've built Ganglia (3.1.0) from source and it works. > > I then modify this line of code in gmond.c, adding the flag > APR_POLLSET_THREADSAFE: > > apr_pollset_create(&listen_channels, total_listen_channels, > global_co

APR_POLLSET_THREADSAFE crash on Cygwin

2009-03-26 Thread Daniel.Pocock
Hi, I've got Cygwin's libapr1 1.3.3-1 I've built Ganglia (3.1.0) from source and it works. I then modify this line of code in gmond.c, adding the flag APR_POLLSET_THREADSAFE: apr_pollset_create(&listen_channels, total_listen_channels, global_context, APR_POLLSET_THREADSAFE); Now, after add