ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Henning Hraban Ramm <hraban@fiee.net>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: calling ConTeXt as a background process
Date: Thu, 7 Oct 2010 13:02:16 +0200	[thread overview]
Message-ID: <27C9A9C2-4637-4B11-8ABE-2F99EB610B13@fiee.net> (raw)
In-Reply-To: <746538930812A54DA07A768D5232947001CA302E73@exvic-mbx01.nexus.csiro.au>

Am 2010-10-07 um 12:16 schrieb <Robin.Kirkham@csiro.au>:
> Have you tried attaching to the stalled processes using strace (Linux)
> or dtruss (Mac)?  This will tell you what system call is blocking,  
> might
> give a clue. The defunct uname process in your original post suggests
> to me the parent did not calling wait() on the child (uname) and it  
> exited.

Here's the output of strace after I killed the stalled process:

execve("/var/opt/context/tex/texmf-linux-64/bin/context", ["/var/opt/ 
context/tex/texmf-linux"..., "--batchmode", "--once", "prd_streifband- 
d"], [/* 10 vars */]) = 0
brk(0)                                  = 0x1e4bd000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,  
0) = 0x2ababa192000
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) = 0x2ababa193000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or  
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=20573, ...}) = 0
mmap(NULL, 20573, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2ababa195000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or  
directory)
open("/lib/libncurses.so.5", O_RDONLY)  = 3
read(3, "\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
fstat(3, {st_mode=S_IFREG|0644, st_size=256288, ...}) = 0
mmap(NULL, 2353152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,  
0) = 0x2ababa393000
mprotect(0x2ababa3ce000, 2093056, PROT_NONE) = 0
mmap(0x2ababa5cd000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE| 
MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x2ababa5cd000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or  
directory)
open("/lib/libdl.so.2", O_RDONLY)       = 3
read(3, "\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(3, {st_mode=S_IFREG|0644, st_size=14616, ...}) = 0
mmap(NULL, 2109728, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,  
0) = 0x2ababa5d2000
mprotect(0x2ababa5d4000, 2097152, PROT_NONE) = 0
mmap(0x2ababa7d4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED| 
MAP_DENYWRITE, 3, 0x2000) = 0x2ababa7d4000
close(3)                                = 0
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or  
directory)
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\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(3, {st_mode=S_IFREG|0755, st_size=1375536, ...}) = 0
mmap(NULL, 3482232, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3,  
0) = 0x2ababa7d6000
mprotect(0x2ababa920000, 2093056, PROT_NONE) = 0
mmap(0x2ababab1f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE| 
MAP_FIXED|MAP_DENYWRITE, 3, 0x149000) = 0x2ababab1f000
mmap(0x2ababab24000, 17016, PROT_READ|PROT_WRITE, MAP_PRIVATE| 
MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ababab24000
close(3)                                = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,  
0) = 0x2ababab29000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,  
0) = 0x2ababab2a000
arch_prctl(ARCH_SET_FS, 0x2ababab29af0) = 0
mprotect(0x2ababab1f000, 12288, PROT_READ) = 0
munmap(0x2ababa195000, 20573)           = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/dev/tty", O_RDWR|O_NONBLOCK)     = -1 ENXIO (No such device or  
address)
ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff561b3e10) = -1 EINVAL  
(Invalid argument)
brk(0)                                  = 0x1e4bd000
brk(0x1e4be000)                         = 0x1e4be000
brk(0x1e4bf000)                         = 0x1e4bf000
getuid()                                = 1005
getgid()                                = 1006
geteuid()                               = 1005
getegid()                               = 1006
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
brk(0x1e4c0000)                         = 0x1e4c0000
open("/proc/meminfo", O_RDONLY)         = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,  
0) = 0x2ababa195000
read(3, "MemTotal:      2097152 kB\nMemFree"..., 4096) = 771
close(3)                                = 0
munmap(0x2ababa195000, 4096)            = 0
brk(0x1e4c1000)                         = 0x1e4c1000
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
uname({sys="Linux", node="aine.fiee.net", ...}) = 0
stat("/var/www/xxx/_textemp", {st_mode=S_IFDIR|0755,  
st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
getpid()                                = 26040
getppid()                               = 26038
brk(0x1e4c2000)                         = 0x1e4c2000
socket(PF_FILE, SOCK_STREAM, 0)         = 3
fcntl(3, F_SETFL, O_RDWR|O_NONBLOCK)    = 0
connect(3, {sa_family=AF_FILE, path="/var/run/nscd/socket"...}, 110) = 0
sendto(3, "\2\0\0\0\v\0\0\0\7\0\0\0passwd\0"..., 19, MSG_NOSIGNAL,  
NULL, 0) = 19
poll([{fd=3, events=POLLIN|POLLERR|POLLHUP}], 1, 5000) = 1 ([{fd=3,  
revents=POLLIN|POLLHUP}])
recvmsg(3, {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, {4}}, msg_flags=0},  
MSG_CMSG_CLOEXEC) = 15
mmap(NULL, 217016, PROT_READ, MAP_SHARED, 4, 0) = 0x2ababa195000
close(4)                                = 0
close(3)                                = 0
brk(0x1e4c3000)                         = 0x1e4c3000
getpgrp()                               = 29995
rt_sigaction(SIGCHLD, {0x439730, [], SA_RESTORER, 0x2ababa807f60},  
{SIG_DFL}, 8) = 0
getrlimit(RLIMIT_NPROC, {rlim_cur=582*1024, rlim_max=582*1024}) = 0
brk(0x1e4c4000)                         = 0x1e4c4000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
open("/var/opt/context/tex/texmf-linux-64/bin/context", O_RDONLY) = 3
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fff561b3e80) = -1 ENOTTY  
(Inappropriate ioctl for device)
lseek(3, 0, SEEK_CUR)                   = 0
read(3, "#!/bin/sh\nmtxrun --script context"..., 80) = 39
lseek(3, 0, SEEK_SET)                   = 0
getrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
dup2(3, 255)                            = 255
close(3)                                = 0
fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY| 
O_LARGEFILE)
fstat(255, {st_mode=S_IFREG|0755, st_size=39, ...}) = 0
lseek(255, 0, SEEK_CUR)                 = 0
brk(0x1e4c5000)                         = 0x1e4c5000
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, "#!/bin/sh\nmtxrun --script context"..., 39) = 39
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
brk(0x1e4c6000)                         = 0x1e4c6000
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat("/var/opt/context/tex/texmf-linux-64/bin/mtxrun",  
{st_mode=S_IFREG|0755, st_size=428842, ...}) = 0
open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 3
read(3, "65536\n"..., 31)               = 6
close(3)                                = 0
brk(0x1e546000)                         = 0x1e546000
getgroups(65536, [1006])                = 1
stat("/var/opt/context/tex/texmf-linux-64/bin/mtxrun",  
{st_mode=S_IFREG|0755, st_size=428842, ...}) = 0
brk(0x1e547000)                         = 0x1e547000
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID| 
SIGCHLD, child_tidptr=0x2ababab29b80) = 26041
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGINT, {0x43a340, [], SA_RESTORER, 0x2ababa807f60},  
{SIG_DFL}, 8) = 0
wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGTERM}], 0, NULL) = 26041
write(2, "/var/opt/context/tex/texmf-linux-"..., 116/var/opt/context/ 
tex/texmf-linux-64/bin/context: line 2: 26041 Terminated               
mtxrun --script context "$@"
) = 116
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fff561b3b74, WNOHANG, NULL) = -1 ECHILD (No child  
processes)
rt_sigreturn(0x8)                       = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x43a340, [], SA_RESTORER,  
0x2ababa807f60}, 8) = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
read(255, ""..., 39)                    = 0
exit_group(143)                         = ?


Can you tell what's going on?



Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___________________________________________________________________________________
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	other threads:[~2010-10-07 11:02 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07  7:06 Henning Hraban Ramm
2010-10-07  7:34 ` Henning Hraban Ramm
2010-10-07  8:42   ` Taco Hoekwater
2010-10-07  9:00     ` Henning Hraban Ramm
2010-10-07  9:06       ` Taco Hoekwater
2010-10-07 10:19         ` Henning Hraban Ramm
     [not found]           ` <90F33E64-7BB9-4DEB-9E89-A4FC99169401@awi.de>
2010-10-07 15:55             ` Henning Hraban Ramm
2010-10-07 16:32               ` Florian Wobbe
2010-10-08  7:36                 ` Henning Hraban Ramm
2010-10-08  7:59                   ` Florian Wobbe
2010-10-08  8:43                     ` Henning Hraban Ramm
2010-10-08  9:25                       ` Florian Wobbe
2010-10-08 10:00                         ` Henning Hraban Ramm
2010-10-08 11:46                           ` Florian Wobbe
2010-10-08 13:47                             ` Henning Hraban Ramm
2010-10-08 13:54                               ` luigi scarso
2010-10-08 13:54                               ` Taco Hoekwater
2010-10-08 14:22                                 ` Patrick Gundlach
2010-10-08 14:30                                 ` Henning Hraban Ramm
2010-10-08 14:57                                   ` Taco Hoekwater
2010-10-08 15:10                                     ` Hans Hagen
2010-10-08 15:08                                   ` Florian Wobbe
2010-10-08 19:44                                     ` calling ConTeXt as a background process (SOLVED) Henning Hraban Ramm
2010-10-10  8:47                                       ` Patrick Gundlach
2010-10-10  9:01                                         ` Henning Hraban Ramm
2010-10-26 19:28                                       ` Taco Hoekwater
2010-10-26 20:09                                         ` Hans Hagen
2010-10-26 20:56                                           ` Taco Hoekwater
2010-10-26 21:32                                             ` Hans Hagen
2010-10-26 20:13                                         ` Henning Hraban Ramm
2010-10-08 15:05                                 ` calling ConTeXt as a background process Henning Hraban Ramm
2010-10-07 18:16               ` taco
2010-10-08  8:00                 ` Henning Hraban Ramm
2010-10-08  8:12                   ` Patrick Gundlach
2010-10-08  9:21                     ` Henning Hraban Ramm
2010-10-08  9:27                       ` luigi scarso
2010-10-08  8:37                   ` luigi scarso
2010-10-08  8:47                     ` Henning Hraban Ramm
2010-10-08  8:54                       ` luigi scarso
2010-10-08 10:19                   ` Hans Hagen
2010-10-07 10:16       ` Robin.Kirkham
2010-10-07 11:02         ` Henning Hraban Ramm [this message]
2010-10-07 10:27       ` Patrick Gundlach
2010-10-07 15:44         ` Henning Hraban Ramm
2010-10-07 15:48           ` luigi scarso
2010-10-07 16:15             ` Henning Hraban Ramm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=27C9A9C2-4637-4B11-8ABE-2F99EB610B13@fiee.net \
    --to=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).