Mail archive

[Acf] haserl and luasocket

From: Mika Havela <>
Date: Tue, 8 Apr 2008 14:48:25 +0200

Hi Nathan.
Ncopa created a apk on luasocket. I assume you know what it's used for.
For the moment, I had some plans on using it for getting BGP
information to display for the user.
You can do 'telnet localhost bgpd' to see BGP status. You will need to
enter password and some commands, but I was hoping to create
acf-quagga to do it for us. But for this I need to communicate with
the socket.
So I started with a easy code (example from PIL book on page 83) on
how you download a web-page.
This works just fine when you do it on console 'lua -l socket' and run
your commands.
I made a testscript that downloads a page, counts the size and outputs
the size on the screen.

But... when doing this by using haserl, something goes wrong.

dmesg and /var/log/messages complains about

Apr 8 10:52:25 bsn2vpnc kernel: acf[21775]: segfault at
00c0c056 eip 56318e03 esp 5fcb3a90 error 6
Apr 8 10:52:25 bsn2vpnc user.alert kernel: grsec: From
signal 11 sent to /usr/share/acf/www/cgi-bin/acf[acf:21775]
uid/euid:0/0 gid/egid:0/0, parent
/usr/sbin/mini_httpd[mini_httpd:1580] uid/euid:65534/65534

I have tried to install a older haserl but it doesn't seem to help.

It's the send() and receive() commands that causes lua/haserl/whatever
to go wrong.

Do you have any suggestions on what could be wrong?

luasocket is found on Alpine 1.7.16 (and


Received on Tue Apr 08 2008 - 14:48:25 UTC