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

Subject: Re: iocLogClient and atExit crash
From: Michael Davidsaver <mdavidsaver@gmail.com>
To: freddie.akeroyd@stfc.ac.uk, tech-talk@aps.anl.gov
Date: Thu, 08 Oct 2015 14:40:21 -0400
It looks like something similar has been done one the 3.15 and 3.16 (logClientDestroy calls errlogRemoveListeners).  Any chance you can test with >=3.15.1 to verify the fix?

Actually, it looks to me like the call to errlogRemoveListeners could be moved to the beginning of logClientDestroy, before the client thread is stopped.


On 10/08/2015 01:53 PM, freddie.akeroyd@stfc.ac.uk wrote:
> Hi,
> 
> I had an IOC crash during exiting while in logClientSend() - errlogThread() was trying to send a message after logClientDestroy() had already been called by epicsExitCallAtExits(). I was able to remove the crash by adding the line:
> 
> 	epicsAtExit(errlogRemoveListener, (void*)listener);
> 
> to the end of the errlogAddListener() function so that the log client is removed from the listener list before it is destroyed. I hope that is the correct fix. 
> 
> This was running base 3.14.12.4 on window x64 compiled with VS 2010
> 
> Regards,
> 
> Freddie 
> 
> 

Replies:
Re: iocLogClient and atExit crash Andrew Johnson
RE: iocLogClient and atExit crash freddie.akeroyd
References:
iocLogClient and atExit crash freddie.akeroyd

Navigate by Date:
Prev: iocLogClient and atExit crash freddie.akeroyd
Next: Re: iocLogClient and atExit crash Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017 
Navigate by Thread:
Prev: iocLogClient and atExit crash freddie.akeroyd
Next: Re: iocLogClient and atExit crash Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·