Am 2010-10-08 um 15:54 schrieb Taco Hoekwater:

On 10/08/2010 03:47 PM, Henning Hraban Ramm wrote:

16002 15978 TS 21 15:41 ? 00:00:01 \_ /var/www/xxx/bin/python
/var/www/.../manage.py run_gunicorn -c /var/www/.../gunicorn- settings.py
16210 16002 TS 14 15:42 ? 00:00:08 \_ luatex --interaction=batchmode
--fmt=/var/opt/context/tex/texmf-cache/.../formats/cont-en
--lua=/var/opt/context/tex/texmf-cache/...
16212 16210 TS 17 15:42 ? 00:00:00 \_ [uname] <defunct>

Hm, defunct, eh?

The luatex binary itself definitely does not call uname as a
process, therefore this has to be the os.resultof() function
that Hans implements in l-os.lua. I am suspecting issues with
redirection now, as that function is defined as:

 function os.resultof(command)
   local handle = io.popen(command,"r")
   return handle and handle:read("*all") or ""
 end

The version in the garden has:

function os.resultof(command)
    ioflush() -- else messed up logging
    local handle = io.popen(command,"r")
    if not handle then
    --  print("unknown command '".. command .. "' in os.resultof")
        return ""
    else
        return handle:read("*all") or ""
    end
end
and it is called like so:

 os.resultof('uname -m')

of course this will fail/block rather horribly if uname -m
does not write to STDOUT (and that is not just uname, thre
are a few more uses of os.resultof()).

I tried to redirect stdout and stderr to my log file, maybe that's a problem then?

If I call using os.system, I can't redirect, but the result is the same.

I can redirect uname's output like so:
uname -m >> context.log
So I guess, it's using stdout at least normally - perhaps not via os.resultof, no clue.

I just don't understand why any lua script would call uname externally if it's available as os.uname? Or does os.uname call os.resultof('uname')? (Probably not, otherwise Florian's suggestion wouldn't have worked.)

print(os.resultof('uname -m'))
gives
attempt to call field 'resultof' (a nil value)

Can I import that function anyhow? I just copied it to my script and replaced ioflush with io.flush.

My script now calls first os.uname and then the external one.
From the shell it works like expected.
And even from the server process! That alone doesn't seem to be the problem.

Here's the trace:

strace -ff texlua call_uname.lua

execve("/var/opt/context/tex/texmf-linux-64/bin/texlua", ["texlua", "call_uname.lua"], [/* 10 vars */]) = 0
brk(0)                                  = 0x6a38000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8eb789f000
uname({sys="Linux", node="aine.fiee.net", ...}) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8eb78a0000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=20573, ...}) = 0
mmap(NULL, 20573, PROT_READ, MAP_PRIVATE, 4, 0) = 0x2b8eb78a2000
close(4)                                = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libdl.so.2", O_RDONLY)       = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0> \0\1\0\0\0\20\16\0\0\0\0\0\0@"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=14616, ...}) = 0
mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x2b8eb7aa0000
mprotect(0x2b8eb7aa2000, 2097152, PROT_NONE) = 0
mmap(0x2b8eb7ca2000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 4, 0x2000) = 0x2b8eb7ca2000
close(4)                                = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY)        = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P> \0\0\0\0\0\0@"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0644, st_size=534736, ...}) = 0
mmap(NULL, 2629848, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x2b8eb7ca4000
mprotect(0x2b8eb7d26000, 2093056, PROT_NONE) = 0
mmap(0x2b8eb7f25000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| MAP_DENYWRITE, 4, 0x81000) = 0x2b8eb7f25000
close(4)                                = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/libc.so.6", O_RDONLY)        = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0> \0\1\0\0\0\300\342\1\0\0\0\0\0@"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0x2b8eb7f27000
mprotect(0x2b8eb8071000, 2093056, PROT_NONE) = 0
mmap(0x2b8eb8270000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED|MAP_DENYWRITE, 4, 0x149000) = 0x2b8eb8270000 mmap(0x2b8eb8275000, 17016, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b8eb8275000
close(4)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8eb827a000 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8eb827b000
arch_prctl(ARCH_SET_FS, 0x2b8eb827ab10) = 0
mprotect(0x2b8eb8270000, 12288, PROT_READ) = 0
mprotect(0xab0000, 8192, PROT_READ)     = 0
munmap(0x2b8eb78a2000, 20573)           = 0
brk(0)                                  = 0x6a38000
brk(0x6a59000)                          = 0x6a59000
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_IGN}, 8) = 0
brk(0x6a7a000)                          = 0x6a7a000
brk(0x6a9b000)                          = 0x6a9b000
brk(0x6abc000)                          = 0x6abc000
brk(0x6add000)                          = 0x6add000
stat("/var/opt/context/tex/texmf-linux-64/bin/texlua", {st_mode=S_IFREG|0755, st_size=5371656, ...}) = 0
lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var/opt", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var/opt/context", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
lstat("/var/opt/context/tex", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/var/opt/context/tex/texmf-linux-64", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0 lstat("/var/opt/context/tex/texmf-linux-64/bin", {st_mode=S_IFDIR| 0755, st_size=4096, ...}) = 0 lstat("/var/opt/context/tex/texmf-linux-64/bin/texlua", {st_mode=S_IFLNK|0777, st_size=6, ...}) = 0 readlink("/var/opt/context/tex/texmf-linux-64/bin/texlua", "luatex"..., 2048) = 6 lstat("/var/opt/context/tex/texmf-linux-64/bin/luatex", {st_mode=S_IFREG|0755, st_size=5371656, ...}) = 0
stat("call_uname.lua", {st_mode=S_IFREG|0644, st_size=365, ...}) = 0
open("call_uname.lua", O_RDONLY)        = 4
close(4)                                = 0
open("call_uname.lua", O_RDONLY)        = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=365, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8eb78a2000
read(4, "for k, v in next, os.uname() do\n "..., 4096) = 365
read(4, ""..., 4096)                    = 0
close(4)                                = 0
munmap(0x2b8eb78a2000, 4096)            = 0
uname({sys="Linux", node="aine.fiee.net", ...}) = 0
fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b8eb78a2000 write(1, "version\t#1 SMP Tue Jul 6 14:34:09"..., 123version #1 SMP Tue Jul 6 14:34:09 MSD 2010
release 2.6.18-028stab070.2
machine x86_64
nodename        aine.fiee.net
sysname Linux
) = 123
pipe([4, 9])                            = 0
clone(Process 30304 attached (waiting for parent)
Process 30304 resumed (parent 30303 ready)
child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b8eb827aba0) = 30304
[pid 30304] close(4 <unfinished ...>
[pid 30303] close(9)                    = 0
[pid 30303] fstat(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 30303] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b8eb78a3000
[pid 30303] lseek(4, 0, SEEK_CUR)       = -1 ESPIPE (Illegal seek)
[pid 30303] read(4,  <unfinished ...>
[pid 30304] <... close resumed> )       = 0
[pid 30304] dup2(9, 1)                  = 1
[pid 30304] close(9)                    = 0
[pid 30304] execve("/bin/sh", ["sh", "-c", "uname -m"], [/* 14 vars */]) = 0
[pid 30304] brk(0)                      = 0x15c3d000
[pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b0b55314000
[pid 30304] uname({sys="Linux", node="aine.fiee.net", ...}) = 0
[pid 30304] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 30304] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b0b55315000 [pid 30304] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid 30304] open("/etc/ld.so.cache", O_RDONLY) = 4
[pid 30304] fstat(4, {st_mode=S_IFREG|0644, st_size=20573, ...}) = 0
[pid 30304] mmap(NULL, 20573, PROT_READ, MAP_PRIVATE, 4, 0) = 0x2b0b55317000
[pid 30304] close(4)                    = 0
[pid 30304] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid 30304] open("/lib/libncurses.so.5", O_RDONLY) = 4
[pid 30304] read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0> \0\1\0\0\0\320%\1\0\0\0\0\0@"..., 832) = 832
[pid 30304] fstat(4, {st_mode=S_IFREG|0644, st_size=256288, ...}) = 0
[pid 30304] mmap(NULL, 2353152, PROT_READ|PROT_EXEC, MAP_PRIVATE| MAP_DENYWRITE, 4, 0) = 0x2b0b55515000
[pid 30304] mprotect(0x2b0b55550000, 2093056, PROT_NONE) = 0
[pid 30304] mmap(0x2b0b5574f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3a000) = 0x2b0b5574f000
[pid 30304] close(4)                    = 0
[pid 30304] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid 30304] open("/lib/libdl.so.2", O_RDONLY) = 4
[pid 30304] read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0> \0\1\0\0\0\20\16\0\0\0\0\0\0@"..., 832) = 832
[pid 30304] fstat(4, {st_mode=S_IFREG|0644, st_size=14616, ...}) = 0
[pid 30304] mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE| MAP_DENYWRITE, 4, 0) = 0x2b0b55754000
[pid 30304] mprotect(0x2b0b55756000, 2097152, PROT_NONE) = 0
[pid 30304] mmap(0x2b0b55956000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2000) = 0x2b0b55956000
[pid 30304] close(4)                    = 0
[pid 30304] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid 30304] open("/lib/libc.so.6", O_RDONLY) = 4
[pid 30304] read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0> \0\1\0\0\0\300\342\1\0\0\0\0\0@"..., 832) = 832
[pid 30304] fstat(4, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
[pid 30304] mmap(NULL, 3482232, PROT_READ|PROT_EXEC, MAP_PRIVATE| MAP_DENYWRITE, 4, 0) = 0x2b0b55958000
[pid 30304] mprotect(0x2b0b55aa2000, 2093056, PROT_NONE) = 0
[pid 30304] mmap(0x2b0b55ca1000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x149000) = 0x2b0b55ca1000 [pid 30304] mmap(0x2b0b55ca6000, 17016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2b0b55ca6000
[pid 30304] close(4)                    = 0
[pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b0b55cab000 [pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b0b55cac000
[pid 30304] arch_prctl(ARCH_SET_FS, 0x2b0b55cabaf0) = 0
[pid 30304] mprotect(0x2b0b55ca1000, 12288, PROT_READ) = 0
[pid 30304] munmap(0x2b0b55317000, 20573) = 0
[pid 30304] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid 30304] open("/dev/tty", O_RDWR|O_NONBLOCK) = -1 ENXIO (No such device or address) [pid 30304] ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff4598a270) = -1 EINVAL (Invalid argument)
[pid 30304] brk(0)                      = 0x15c3d000
[pid 30304] brk(0x15c3e000)             = 0x15c3e000
[pid 30304] brk(0x15c3f000)             = 0x15c3f000
[pid 30304] getuid()                    = 1005
[pid 30304] getgid()                    = 1006
[pid 30304] geteuid()                   = 1005
[pid 30304] getegid()                   = 1006
[pid 30304] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid 30304] brk(0x15c40000)             = 0x15c40000
[pid 30304] open("/proc/meminfo", O_RDONLY) = 4
[pid 30304] fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
[pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2b0b55317000
[pid 30304] read(4, "MemTotal:      2097152 kB\nMemFree"..., 4096) = 771
[pid 30304] close(4)                    = 0
[pid 30304] munmap(0x2b0b55317000, 4096) = 0
[pid 30304] brk(0x15c41000)             = 0x15c41000
[pid 30304] rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid 30304] rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
[pid 30304] uname({sys="Linux", node="aine.fiee.net", ...}) = 0
[pid 30304] stat("/var/www/xxx/_textemp", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 30304] stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 30304] getpid()                    = 30304
[pid 30304] brk(0x15c42000)             = 0x15c42000
[pid 30304] getppid()                   = 30303
[pid 30304] stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 30304] stat("/var/opt/context/tex/texmf-linux-64/bin/sh", 0x7fff4598a240) = -1 ENOENT (No such file or directory) [pid 30304] stat("/var/www/xxx/bin/sh", 0x7fff4598a240) = -1 ENOENT (No such file or directory) [pid 30304] stat("/command/sh", 0x7fff4598a240) = -1 ENOENT (No such file or directory) [pid 30304] stat("/usr/local/bin/sh", 0x7fff4598a240) = -1 ENOENT (No such file or directory) [pid 30304] stat("/usr/local/sbin/sh", 0x7fff4598a240) = -1 ENOENT (No such file or directory) [pid 30304] stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=797784, ...}) = 0
[pid 30304] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 4
[pid 30304] read(4, "65536\n"..., 31)   = 6
[pid 30304] close(4)                    = 0
[pid 30304] brk(0x15cc2000)             = 0x15cc2000
[pid 30304] getgroups(65536, [1006])    = 1
[pid 30304] stat("/bin/sh", {st_mode=S_IFREG|0755, st_size=797784, ...}) = 0
[pid 30304] brk(0x15cc3000)             = 0x15cc3000
[pid 30304] socket(PF_FILE, SOCK_STREAM, 0) = 4
[pid 30304] fcntl(4, F_SETFL, O_RDWR|O_NONBLOCK) = 0
[pid 30304] connect(4, {sa_family=AF_FILE, path="/var/run/nscd/ socket"...}, 110) = 0 [pid 30304] sendto(4, "\2\0\0\0\v\0\0\0\7\0\0\0passwd\0"..., 19, MSG_NOSIGNAL, NULL, 0) = 19 [pid 30304] poll([{fd=4, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=4, revents=POLLIN|POLLHUP}]) [pid 30304] recvmsg(4, {msg_name(0)=NULL, msg_iov(2)=[{"passwd\0"..., 7}, {"\270O\3\0\0\0\0\0"..., 8}], msg_controllen=24, {cmsg_len=20, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, {9}}, msg_flags=0}, MSG_CMSG_CLOEXEC) = 15 [pid 30304] mmap(NULL, 217016, PROT_READ, MAP_SHARED, 9, 0) = 0x2b0b55317000
[pid 30304] close(9)                    = 0
[pid 30304] close(4)                    = 0
[pid 30304] brk(0x15cc4000)             = 0x15cc4000
[pid 30304] getpgrp()                   = 30142
[pid 30304] rt_sigaction(SIGCHLD, {0x439730, [], SA_RESTORER, 0x2b0b55989f60}, {SIG_DFL}, 8) = 0 [pid 30304] getrlimit(RLIMIT_NPROC, {rlim_cur=582*1024, rlim_max=582*1024}) = 0
[pid 30304] brk(0x15cc5000)             = 0x15cc5000
[pid 30304] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid 30304] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid 30304] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
[pid 30304] stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
[pid 30304] stat("/var/opt/context/tex/texmf-linux-64/bin/uname", 0x7fff4598a100) = -1 ENOENT (No such file or directory) [pid 30304] stat("/var/www/xxx/bin/uname", 0x7fff4598a100) = -1 ENOENT (No such file or directory) [pid 30304] stat("/command/uname", 0x7fff4598a100) = -1 ENOENT (No such file or directory) [pid 30304] stat("/usr/local/bin/uname", 0x7fff4598a100) = -1 ENOENT (No such file or directory) [pid 30304] stat("/usr/local/sbin/uname", 0x7fff4598a100) = -1 ENOENT (No such file or directory) [pid 30304] stat("/bin/uname", {st_mode=S_IFREG|0755, st_size=29304, ...}) = 0 [pid 30304] stat("/bin/uname", {st_mode=S_IFREG|0755, st_size=29304, ...}) = 0
[pid 30304] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
[pid 30304] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
[pid 30304] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x439730, [], SA_RESTORER, 0x2b0b55989f60}, 8) = 0
[pid 30304] execve("/bin/uname", ["uname", "-m"], [/* 14 vars */]) = 0
[pid 30304] brk(0)                      = 0x144a4000
[pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2aee46ccf000
[pid 30304] uname({sys="Linux", node="aine.fiee.net", ...}) = 0
[pid 30304] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) [pid 30304] mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2aee46cd0000 [pid 30304] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
[pid 30304] open("/etc/ld.so.cache", O_RDONLY) = 4
[pid 30304] fstat(4, {st_mode=S_IFREG|0644, st_size=20573, ...}) = 0
[pid 30304] mmap(NULL, 20573, PROT_READ, MAP_PRIVATE, 4, 0) = 0x2aee46cd2000
[pid 30304] close(4)                    = 0
[pid 30304] access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
[pid 30304] open("/lib/libc.so.6", O_RDONLY) = 4
[pid 30304] read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0> \0\1\0\0\0\300\342\1\0\0\0\0\0@"..., 832) = 832
[pid 30304] fstat(4, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
[pid 30304] mmap(NULL, 3482232, PROT_READ|PROT_EXEC, MAP_PRIVATE| MAP_DENYWRITE, 4, 0) = 0x2aee46ed0000
[pid 30304] mprotect(0x2aee4701a000, 2093056, PROT_NONE) = 0
[pid 30304] mmap(0x2aee47219000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x149000) = 0x2aee47219000 [pid 30304] mmap(0x2aee4721e000, 17016, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aee4721e000
[pid 30304] close(4)                    = 0
[pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2aee47223000
[pid 30304] arch_prctl(ARCH_SET_FS, 0x2aee472236e0) = 0
[pid 30304] mprotect(0x2aee47219000, 12288, PROT_READ) = 0
[pid 30304] munmap(0x2aee46cd2000, 20573) = 0
[pid 30304] brk(0)                      = 0x144a4000
[pid 30304] brk(0x144c5000)             = 0x144c5000
[pid 30304] uname({sys="Linux", node="aine.fiee.net", ...}) = 0
[pid 30304] fstat(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
[pid 30304] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE| MAP_ANONYMOUS, -1, 0) = 0x2aee46cd2000
[pid 30304] write(1, "x86_64\n"..., 7 <unfinished ...>
[pid 30303] <... read resumed> "x86_64\n"..., 4096) = 7
[pid 30303] read(4,  <unfinished ...>
[pid 30304] <... write resumed> )       = 7
[pid 30304] close(1 <unfinished ...>
[pid 30303] <... read resumed> ""..., 4096) = 0
[pid 30303] close(4)                    = 0
[pid 30303] wait4(30304, Process 30303 suspended
 <unfinished ...>
[pid 30304] <... close resumed> )       = 0
[pid 30304] munmap(0x2aee46cd2000, 4096) = 0
[pid 30304] close(2)                    = 0
[pid 30304] exit_group(0)               = ?
Process 30303 resumed
Process 30304 detached
<... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 30304
--- SIGCHLD (Child exited) @ 0 (0) ---
munmap(0x2b8eb78a3000, 4096)            = 0
write(1, "x86_64\n\n"..., 8x86_64

)            = 8
exit_group(0)                           = ?





Greetlings, Hraban
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to