EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: 3.15.0.2: Shutdown issues
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Tue, 18 Nov 2014 15:12:37 -0500
On 11/18/2014 11:37 AM, Michael Davidsaver wrote:
> ...
> From a quick look I would guess that at least dbBkptExit(),
> dbLockExit(), and errlogExitHandler() can cause similar problems.  So
> I'll look at making these conditional as well.

Ok, so I think I've backed out enough of the DB cleanup to prevent
crashing due to shutdown races.

I think the remaining atexit hooks for softIoc shouldn't crash.  What is
done is:

> atExit exitDatabase((nil))

For a real IOC (as opposed to a unittest) only doCloseLinks() runs to
cleanup CA_LINK.  For records with extended device support it also
disables "I/O Intr" scans and call del_record().

> atExit ca_client_exit_handler((nil))

Frees a thread local variable.

> atExit dbCaExit((nil))

Stops the CA link worker.

> atExit cacExitHandler((nil))

Frees a thread local variable.

> atExit twdShutdown((nil))

Stops the watchdog thread.

> atExit errlogExitHandler((nil))

Stops the errlog thread

> atExit ClockTime_Shutdown((nil))

Stops the ClockTimeSync() thread.


None of these should free any global locks so that concurrent operations
using these locks shouldn't operate on free'd memory.


Replies:
Re: 3.15.0.2: Shutdown issues Benjamin Franksen
References:
3.15.0.2: Shutdown issues Ralph Lange
Re: 3.15.0.2: Shutdown issues Benjamin Franksen
Re: 3.15.0.2: Shutdown issues Benjamin Franksen
Re: 3.15.0.2: Shutdown issues Benjamin Franksen
Re: 3.15.0.2: Shutdown issues Michael Davidsaver
Re: 3.15.0.2: Shutdown issues Michael Davidsaver

Navigate by Date:
Prev: Re: Jenkins build became unstable: epics-base-3.15 #143 Michael Davidsaver
Next: Re: ringPointerTest Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: 3.15.0.2: Shutdown issues Michael Davidsaver
Next: Re: 3.15.0.2: Shutdown issues Benjamin Franksen
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·