lua-users home
lua-l archive

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


On Fri, May 22, 2009 at 1:01 AM, Marco Antonio Abreu
<mabreu.ti@gmail.com> wrote:
> I didn't know Alien, it's excelent. Congratulations!

Although there remain some odd little glitches. Consider this (Debian
Etch, i386)

require "alien"

libc = alien.default
I,S = 'int','string'

libc.access:types(I,S,I)
libc.getpid:types(I)

print(libc.access('test1.lua',0))
print(libc.getpid())

we get:

0
1379
*** glibc detected *** corrupted double-linked list: 0x0806fec8 ***
Aborted

Now the fun starts! Put 'local' in front of the 'libc = ' line (as we
would usually want to do)

0
1444
Segmentation fault

libc.getpid() seems to be the bugger, since things work fine with
other functions.

steve d.