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  2020  2021  2022  2023  <20242025  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  <20242025 
<== Date ==> <== Thread ==>

Subject: Re: startPVAServer prevents windows-x64 IOC from exiting
From: Michael Davidsaver via Core-talk <core-talk at aps.anl.gov>
To: Mark Rivers <rivers at cars.uchicago.edu>
Cc: "core-talk at aps.anl.gov" <core-talk at aps.anl.gov>
Date: Wed, 13 Mar 2024 07:10:06 -0400
Hi Mark,

My first suspicion is that an epicsAtExit() handler is hanging,
although I can't explain why this would differ between static
to dynamic linking.

Setting the atExitDebug IOC shell variable will print each
handler name as it is executed.

epics> var atExitDebug 1
epics> exit
atExit exitDatabase((nil))
atExit twdShutdown((nil))
atExit errlogExitHandler(0x558c4d454fb0)
atExit rlExit((nil))
atExit syncShutdown((nil))
atExit decShutdown((nil))
atExit dbndShutdown((nil))
atExit arrShutdown((nil))
atExit ClockTime_Shutdown((nil))


On 3/12/24 15:08, Mark Rivers via Core-talk wrote:
I previously sent this message to both tech-talk and core-talk.  Neither Andrew Johnson nor I received it.  I know that some people who are subscribed to tech-talk did receive it.  It looks like perhaps people who are subscribed to both lists do not receive the message at all?

I the future I will only send to one list or the other, since Andrew points out that core-talk is a subset of tech-talk.

*From:*Mark Rivers
*Sent:* Tuesday, March 12, 2024 3:54 PM
*To:* tech-talk at aps.anl.gov; core-talk at aps.anl.gov
*Subject:* startPVAServer prevents windows-x64 IOC from exiting

Folks,

I have found a serious problem with using the PVA server on Windows IOCs that are dynamically built.  The IOC runs fine, but cannot be exited either with the “exit” command or with ^C.  It can only be killed with the Windows Task Manager.  The problem occurs on the following:

  * EPICS_HOST_ARCH: window-x64, windows-x64-debug.  Does not occur on windows-x64-static.
  * EPICS BASE: 7.0.7 and 7.0.8.  Did not test other versions.
  * Test application: makeBaseApp.pl from base 7.0.8.  Modified st.cmd to add the line startPVAServer just before iocInit.  Also happens in ADSimDetector with commonPlugins.cmd.

Thanks,

Mark



Replies:
RE: startPVAServer prevents windows-x64 IOC from exiting Mark Rivers via Core-talk
References:
startPVAServer prevents windows-x64 IOC from exiting Mark Rivers via Core-talk
startPVAServer prevents windows-x64 IOC from exiting Mark Rivers via Core-talk

Navigate by Date:
Prev: startPVAServer prevents windows-x64 IOC from exiting Mark Rivers via Core-talk
Next: RE: startPVAServer prevents windows-x64 IOC from exiting Mark Rivers 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  <20242025 
Navigate by Thread:
Prev: startPVAServer prevents windows-x64 IOC from exiting Mark Rivers via Core-talk
Next: RE: startPVAServer prevents windows-x64 IOC from exiting Mark Rivers 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  <20242025