On Thursday 09:42 AM 1/10/2008, John Caruso wrote:
On Thursday 06:05 AM 1/10/2008, Nick Miller wrote:
I have been having some issues getting
AOLServer 4.5 or 4.0.10 to run on Mac OS X 10.5
I compiled and installed AOL Server and Tcl on Mac OS X 10.5 with noÂ
issues but then tried to run the NSDs only to get a "SegmentationÂ
Fault".
The short answer: you need to explicitly set
ulimit -n (open files)--even though it will look
like it's set to 256 by default. Any valid
value (including 256) will resolve the problem.
Damien's comment about making sure --enable-64bit
was passed to Tcl applied in my case as well--that fixes this problem.
But...:
The longer answer: the file limit code in
nsd/fd.c is no longer valid, because of this:
--------------------------------------------------------
setrlimit() now returns with errno set to EINVAL in places that histori-
cally succeeded. It no longer accepts "rlim_cur = RLIM_INFINITY" for
RLIM_NOFILE. Use "rlim_cur = min(OPEN_MAX, rlim_max)".
http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/setrlimit.2.html
--------------------------------------------------------
...this still applies, and the code needs to be
updated accordingly. Though if you make sure Tcl
is 64-bit, you at least get an error message for
it rather than a segmentation fault.
- John
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.