On Tue, Dec 11, 2012 at 6:04 PM, Alexander Broekhuis <[email protected]>wrote:
> > > > > > For OSX I am using is 10.8, which comes APR 1.4.5. And this seems to work > > with remote shell. > > When building against the APR from MacPorts (version 1.4.6) I get a > > segfault when connecting with telnet. > > I checked at work and there I'm using CentOS 5.8 with APR version 1.4.6 > and > > in this case I don't get segfaults when connecting. > > > > When i have some time, I will look try to fix this for OSX. > > > > I upgraded my installation and now it works. 10.6 has version > 1.3.something. > > When I was still on 10.6 I tried MacPorts version as well, but that one > seems to miss support for the wakeable pollset, even though the code > compiles fine with it. > > In the remote_shell.c the remoteShell_stopConnection doesn't check the > error code of the apr_pollset_wakeup, but this one returns an error with > the MacPorts version (APR_EINIT). > I corrected this and adjusted the creating of a parentless memory pool for newly created connections. Apparently this resulted - in my case - in a segfault. Could you verify if this works for you? > > > > > > > I think it would be wise to specify a minimum version of APR we support. > > The current building and running page ([1]) mentioned a dependency to > APR, > > but not which version. I also think that we can expect from users to > > compile/install a suitable APR version and not depend on the APR versions > > installed in for example OSX. So IMO specifying a minimal APR version of > > 1.4.x is no problem, or am I missing something ... > > > > Normally I would agree, but upgrading the installed version on MacOSX is a > problem (it probably breaks the httpd installation etc). So the only option > is to use the MacPorts version, but even though it compiles, at runtime > there are still problems.. So either the MacPorts version is missing > something, or we are missing something ;). > > The point is, I'd like to be able to support OSX 10.6, and trying to fix > this is needed for that one :). Understandable, but the APR website only has a link to the documentation for version 0.9 and 1.4 (see [1]). If you enter a url manual you can find the 1.3 documentation (see [2]), but still I prefer a versions which is supported from the website. [1] http://apr.apache.org/ [2] http://apr.apache.org/docs/apr/1.3/ Greetings, Pepijn
