I am able to reproduce the issue, using the code that Carsten posted.
On deleting the timer queue, the thread destructor calls epicsThreadMustJoin.
This gets stuck forever at line 642 in osdThread.c :
if(epicsThreadGetIdSelf() != id) {
DWORD status = WaitForSingleObject(pParmWIN32->handle, INFINITE);
--
You received this bug notification because you are a member of EPICS
Core Developers, which is subscribed to EPICS Base.
Matching subscriptions: epics-core-list-subscription
https://bugs.launchpad.net/bugs/1879532
Title:
Can't completely shutdown libCa and libCom
Status in EPICS Base:
Confirmed
Bug description:
Most recently, Carsten Winkler reported in https://epics.anl.gov/tech-
talk/2020/msg00946.php
For a project I need to load and unload the Channel Access context in a
shared library. Loading is no problem but unloading. It always fails
during ca_context_destroy() function.
This problem has been reported and discussed previously, see
https://epics.anl.gov/tech-talk/2017/msg00371.php and
https://epics.anl.gov/tech-talk/2004/msg00743.php thus it is a known
issue which would probably require significant work to fix.
This bug report is a place-holder for any work towards making it
possible to completely shut down all libCom background threads and
releasing the resources allocated by those subsystems.
To manage notifications about this bug go to:
https://bugs.launchpad.net/epics-base/+bug/1879532/+subscriptions
- References:
- [Bug 1879532] [NEW] Can't completely shutdown libCa and libCom Andrew Johnson via Core-talk
- Navigate by Date:
- Prev:
Re: BASE 7.0.x@Windows_64 - Channel Access Context in shared library - "ca_context_destroy bug" Johnson, Andrew N. via Core-talk
- Next:
Build failed in Jenkins: EPICS-3.14 #673 Jenkins EPICS PSI via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
[Bug 1879532] [NEW] Can't completely shutdown libCa and libCom Andrew Johnson via Core-talk
- Next:
[Bug 1879532] Re: Can't completely shutdown libCa and libCom Freddie Akeroyd via Core-talk
- Index:
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
|