EPICS Home

Experimental Physics and Industrial Control System


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

Subject: Re: epicsThread warnings
From: "Konrad, Martin via Core-talk" <[email protected]>
To: Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Fri, 10 Jan 2020 22:49:25 +0000
Hi Mark,
> That's a good point, but I don't see how it relates my current
> issue. As I said, I am getting these warning messages at iocInit when
> I first create the asynPortDriver object, long before I want to
> destroy it.
Sorry, I missed that. It seems like the message is emitted by
epicsThreadAwaitingJoin() [1] which seems to be a VxWorks-specific
function that gets called at the end of epicsThreadEntry() [2] (in other
words after callbackThread::run() has completed) and only if
EPICS_THREAD_CAN_JOIN is defined. It seems like the message is only
emitted if epicsThreadAwaitingJoin() hasn't been able to acquire joinSem
within a reasonable time. I'm wondering if some other code forgot to
release the semaphore.

Andrew is probably more familiar with the details of this code. At first
sight it looks to me like the problem is in libCom.

Have a good weekend!

Martin

[1]
https://github.com/epics-base/epics-base/blob/8f358f4dd87fe6fb8fb40c426af652d383840b04/modules/libcom/src/osi/os/vxWorks/osdThread.c#L207
[2]
https://github.com/epics-base/epics-base/blob/8f358f4dd87fe6fb8fb40c426af652d383840b04/modules/libcom/src/osi/os/vxWorks/osdThread.c#L245

-- 
Martin Konrad
High Performance Controls Team Leader
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: [email protected]

Replies:
Re: epicsThread warnings Johnson, Andrew N. via Core-talk
References:
epicsThread warnings Mark Rivers via Core-talk
Re: epicsThread warnings Konrad, Martin via Core-talk
Re: epicsThread warnings Konrad, Martin via Core-talk

Navigate by Date:
Prev: RE: epicsThread warnings Mark Rivers via Core-talk
Next: Re: epicsThread warnings Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: epicsThread warnings Mark Rivers via Core-talk
Next: Re: epicsThread warnings Johnson, Andrew N. via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024