EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Creating Zombies with epicsThreadExitMain
From: Michael Abbott <[email protected]>
To: [email protected]
Date: Mon, 12 May 2008 10:08:51 +0000 (GMT)
I'm finding some very strange behaviour with epicsThreadExitMain on Red 
Hat Enterprise Linux 4.  The default soft IOC implementation (softIoc.cpp) 
exits by calling epicsThreadExitMain(), but this has a very unfortunate 
effect on my system (RHEL 4) -- a Zombie process is created (apparently 
owned by init, which is the first puzzle) which continues to hold its 
executable file open.  I've also confirmed this on RHEL 5.

I guess there are two separate issues here:

1. Exiting with epicsThreadExitMain() appears to be a very bad thing, at 
least on RHEL;

2. RHEL appears to have an unpleasant bug involving process cleanup -- how 
else do I have persistent zombies owned by init?  Or else I'm missing 
something...


To reproduce this, create an EPICS IOC with the following code:

	int main()
	{
	    iocsh("/dev/null");
	    epicsThreadExitMain();
	}

The iocsh() call is necessary to reproduce the problem.

Replies:
RE: Creating Zombies with epicsThreadExitMain Thompson, David H.
Re: Creating Zombies with epicsThreadExitMain Michael Abbott

Navigate by Date:
Prev: RE: IP Card Problems on the Acromag Carrier 9670 Darrell Nineham
Next: RE: Creating Zombies with epicsThreadExitMain Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: IP Card Problems on the Acromag Carrier 9670 Darrell Nineham
Next: RE: Creating Zombies with epicsThreadExitMain Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·