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  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: iocLogClient and atExit crash
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Thu, 8 Oct 2015 14:21:57 -0500
On 10/08/2015 01:40 PM, Michael Davidsaver wrote:
> Actually, it looks to me like the call to errlogRemoveListeners could
> be moved to the beginning of logClientDestroy, before the client
> thread is stopped.

Be careful with that, the order that the two epicsAtExit() routines will
be run isn't obvious, and errlogRemoveListeners() doesn't always lock
the pvtData.listenerLock. The IOC is also not the only executable that
uses the errlog subsystem, although it's less common for other
applications to start a logClient.

I'm not saying we can't make that change, but it should be approached
with caution and tests which start (and hence shut down) the two
subsystems in both orders.

- Andrew


-- 
Light thinks it travels faster than anything but it is wrong.
No matter how fast light travels, it finds the darkness has
always got there first, and is waiting for it.
    -- Terry Pratchett, Reaper Man

References:
iocLogClient and atExit crash freddie.akeroyd
Re: iocLogClient and atExit crash Michael Davidsaver

Navigate by Date:
Prev: Re: iocLogClient and atExit crash Michael Davidsaver
Next: TMCM-3110 3-axis controller Peredkov, Sergey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: iocLogClient and atExit crash Michael Davidsaver
Next: RE: iocLogClient and atExit crash freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·