# service=0xfffffffd <Address 0xfffffffd out of bounds>, port=62352) at
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.
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.
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,