Can't completely shutdown libCa and libCom
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Most recently, Carsten Winkler reported in https:/
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_
This problem has been reported and discussed previously, see https:/
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.
I am able to reproduce the issue, using the code that Carsten posted.
On deleting the timer queue, the thread destructor calls epicsThreadMust Join.
This gets stuck forever at line 642 in osdThread.c :
if(epicsThreadG etIdSelf( ) != id) { ject(pParmWIN32 ->handle, INFINITE);
DWORD status = WaitForSingleOb