errlog causes crash on IOC exit
Bug #693534 reported by
mdavidsaver
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
EPICS Base |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I ran into a case were errlogPrintf() is getting called after the errlog exit handler has run. This handler frees resources and sets a flag (AtExit) when this happens, but errlogPrintf() is ignoring the flag. This results in an attempt to lock a mutex which has been destroyed. Since it is using epicsMutexMustL
Solution is to return before the call to msgbufGetFree(). Patch attached.
Related branches
Changed in epics-base: | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in epics-base: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.