Re: oratcl and child procs
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: oratcl and child procs

From: Matthias Kraft <Matthias.Kraft@nospam.softwareag.com>
Date: Thu Jun 30 2005 - 10:39:27 CEST

isil_light@yahoo.com wrote:
> error waiting for process to exit: child process lost (is SIGCHLD
> ignored or trapped?)

What operating system, version, machine type?

I am currently observing this error message with Redhat AS 4 on x86,
when executing e. g. "java -version". The behavior is not reliably
reproducable, however. Tested with [exec] and command pipe. In
approximatly one out of three cases it fails and ::errorCode is set
to ECHILD then.

But because the same code is running on other operating systems,
including SuSE ES 9 on x86, without any errors I suspect the guys at
Redhat did some unfortunate tweaking of their Linux system.

BTW, here is the failing output:

----
% exec /opt/jdk1.5.0_02/jre/bin/java -version 2>@stdout
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)
error waiting for process to exit: child process lost (is SIGCHLD ignored
or trapped?)
    while executing
"exec /opt/jdk1.5.0_02/jre/bin/java -version 2>@stdout"
% set ::errorCode
POSIX ECHILD {no children}
----
used Tcl version is a 8.4.1. Interesstingly the process table now
contains a zombie (infix is the Tcl interpreter):
----
UID        PID  PPID  C STIME TTY          TIME CMD
rdsadmin 27835 27834  0 10:12 pts/6    00:00:00 -sh
rdsadmin 27978 27835  0 10:13 pts/6    00:00:00 ./infix -execute standard
rdsadmin 28015 27978  0 10:14 pts/6    00:00:00 [java] <defunct>
----
kind regards
-- 
Matthias Kraft
Software AG, Germany
(They that can give up essential liberty to obtain a little temporary)
(safety deserve neither liberty nor safety.   --    Benjamin Franklin)
Received on Thu Sep 29 14:23:59 2005