Recently, I saw one of my servers crash to ldb with the error message
"Error: The value 1025 is not of type (MOD 1025)". This happens every
few months, and I have not been bothered too much by it (and I will be
bothered even less now that Zach Beane has posted how I can disable
ldb), but I wanted to know what the cause for this is, so inquired in
sbcl-devel. See Juho's answer below. It boils down to: There is a
file descriptor leak.
-Hans
---------- Forwarded message ----------
From: Juho Snellman <jsnell(a)iki.fi>
Date: Thu, Jan 8, 2009 at 14:26
Subject: Re: [Sbcl-devel] SBCL crashes in READ-SEQUENCE with Error:
The value 1025 is not of type (MOD 1025)
To: Hans Hübner <hans.huebner(a)gmail.com>
Cc: sbcl-devel(a)lists.sourceforge.net
Hans Hübner <hans.huebner(a)gmail.com> writes:
> Hi,
>
> sporadically, some of my Hunchentoot based web servers running on SBCL
> 1.0.20.22 (FreeBSD, threaded) crash to ldb, with the following messages
> appearing on the REPL:
>
> Error: The value 1025 is not of type (MOD 1025).
My first guess would be that you've got a fd that's too large (select
can only handle fds smaller than FD_SETSIZE).
Some people have explored replacing the use of select() for
serve-event with using various other fd polling interfaces to work
around this problem (there should be one patch floating around that
uses epoll() on Linux, don't know whether that'd be usable for you on
FreeBSD).
--
Juho Snellman