[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: dofile("luac.out") segfaults
- From: Marius Kjeldahl <marius@...>
- Date: Tue, 10 Apr 2001 22:47:19 +0200
I've installed lua on my Linux Mandrake 7.2 installation, and most
things works fine. If I test life.lua for instance, it runs fine.
However, if I compile life.lua into luac.out with a simple luac
life.lua, and execute as follows it segfaults:
[marius@localhost test]$ lua -e 'dofile("luac.out")'
Segmentation fault
Using strace, I get some more information, but I'm still not sure what
the trouble is (see bottom of this mail for more details).
Any help is appreciated.
Thanks,
Marius
[...]
getpid() = 10468
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=52404, ...}) = 0
old_mmap(NULL, 52404, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
close(3) = 0
open("/usr/X11R6/lib/libX11.so", O_RDONLY) = 3
brk(0) = 0x804aadc
brk(0x804ab0c) = 0x804ab0c
brk(0x804b000) = 0x804b000
fstat(3, {st_mode=S_IFREG|0755, st_size=888280, ...}) = 0
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20=\1\000"...,
4096) = 4096
old_mmap(NULL, 892540, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4014b000
mprotect(0x40220000, 20092, PROT_NONE) = 0
old_mmap(0x40220000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0xd4000) = 0x40220000
close(3) = 0
munmap(0x40014000, 52404) = 0
brk(0x804c000) = 0x804c000
brk(0x8050000) = 0x8050000
brk(0x8051000) = 0x8051000
rt_sigaction(SIGINT, {0x8048e14, [],
SA_INTERRUPT|SA_NOMASK|SA_ONESHOT|0x4000000}, {SIG_DFL}, 8) = 0
brk(0x8052000) = 0x8052000
open("luac.out", O_RDONLY) = 3
fstat64(3, 0xbffff1a4) = -1 ENOSYS (Function not
implemented)
fstat(3, {st_mode=S_IFREG|0644, st_size=3666, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x40014000
read(3, "\33Lua@\1\4\4\4 \6\t\10\22\346[\241\260\271\262A\n\0\0"...,
4096) = 3666
close(3) = 0
munmap(0x40014000, 4096) = 0
open("luac.out", O_RDONLY|O_LARGEFILE) = 3
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++