lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Sun, Sep 8, 2013 at 5:20 PM, Chris Datfung <> wrote:
On Tue, Sep 3, 2013 at 9:33 PM, William Ahern <> wrote:

 # service=0xfffffffd <Address 0xfffffffd out of bounds>, port=62352) at
 # tcp_unix.c:166

A little Googling suggests that _this_ tcp_open call comes from c-client,
the UW-IMAP library. Perhaps the issue is as kamicc olo suggested.

Just to close the loop on this. The issue occurred on a CentOS server running cPanel and EasyApache. I rebuilt PHP without IMAP support which solved the problem. I'm still curious what led you to know that this was related to IMAP under PHP.


As far as I know UW-IMAP or c-client is not installed.

Try not linking in c-client into your Apache process (perhaps coming from
PHP?), or edit luasocket.c to keep its tcp_open definition static.

I'm not much of a C programmer, is setting tcp_open definition to static a simple change? Can you point me to an example of how to do this?

probably have to source include tcp.c into luasocket.c. And you might want
to fix some other routines.

I'm surprised this happens as Lua by default loads modules with RTLD_LOCAL.
But kamicc olo attests to it, and it looks like it's happening to you,