Hi Michael
All seems well now. Thanks!
Cheers
Ben
Am Dienstag, 18. November 2014, 15:12:37 schrieb Michael Davidsaver:
> 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.
--
"Make it so they have to reboot after every typo." -- Scott Adams
________________________________
Helmholtz-Zentrum Berlin für Materialien und Energie GmbH
Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.
Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking
Sitz Berlin, AG Charlottenburg, 89 HRB 5583
Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin
http://www.helmholtz-berlin.de
- References:
- 3.15.0.2: Shutdown issues Ralph Lange
- Re: 3.15.0.2: Shutdown issues Michael Davidsaver
- Re: 3.15.0.2: Shutdown issues Michael Davidsaver
- Navigate by Date:
- Prev:
Re: ringPointerTest Andrew Johnson
- Next:
Re: ringPointerTest Andrew Johnson
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
- 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
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
|