EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Problem exiting IOC
From: "Vigder, Mark" <[email protected]>
To: "[email protected]" <[email protected]>
Date: Wed, 19 Jan 2011 17:01:41 -0500
Could be that bug. When I ran it on EPICS 3.14.11 it kept recursing and spitting out error messages until the stack overflowed.
 
Mark

possibly it’s this bug

 

https://bugs.launchpad.net/epics-base/+bug/693534

 

Jeff
______________________________________________________

 

From: [email protected] [mailto:[email protected]] On Behalf Of Daron Chabot
Sent: Wednesday, January 19, 2011 1:33 PM
To: Vigder, Mark
Cc: [email protected]
Subject: Re: Problem exiting IOC

 

Hi Mark,

 

I too observed this condition only yesterday, and have not had a chance to investigate. I was using New Focus Pico motors, not MDrive hardware.

 

If I exited the EPICS ioc-shell using the command, "exit", the problem appeared. This would lead me to start my search for code that has hooked into the iocsh exit routines (atexit ).

 

Note: things appeared to shutdown cleanly if I exited with a ctrl-c.

 

Perhaps someone more familiar with those different code paths can comment further and narrow down the search...?

 

 

-- dc

On Wed, Jan 19, 2011 at 2:58 PM, Vigder, Mark <[email protected]> wrote:

I'm yet another EPICS newbie. I've got a simple softIOC up and running
driving a couple of motors. Impressive software!
However I have a small problem. The IOC starts up fine and works
perfectly. But whenever I exit the IOC I get the following errors:

   epicsEvent pthread_mutex_destroy failed: error Device or resource busy
   epicsEvent pthread_cond_destroy failed: error Device or resource busy

My configuration is:
   Ubuntu 10.04
   EPICS base 3.14.12
   ASYN 4-15
   Motor 6-5-2

My st.cmd file is:

 #!../../bin/linux-x86_64/motorTest
 < envPaths
 dbLoadDatabase "${TOP}/dbd/motorTest.dbd"
 motorTest_registerRecordDeviceDriver pdbbase
 dbLoadTemplate("motor.substitutions") # Loads two records
 dbLoadRecords("$(MOTOR)/db/motorUtil.db", "P=IOC:")
 drvAsynIPPortConfigure("L0", "xxx.xxx.xxx.xxx:xxx",0,0,0)
 MDriveSetup(1, 10)
 MDriveConfig(0, "L0")
 cd ${TOP}/iocBoot/${IOC}
 iocInit

Any ideas on how I got into this problem? And what I do to get out of it
(and make sure it doesn't happen again)?

Thanks
Mark

===========
Mark Vigder
Control System Architect
Canadian Neutron Beam Centre

 


References:
Problem exiting IOC Vigder, Mark
Re: Problem exiting IOC Daron Chabot
RE: Problem exiting IOC Jeff Hill

Navigate by Date:
Prev: debian repository key change Davidsaver, Michael
Next: Re: Changing DOL field from a subroutine record Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Problem exiting IOC Jeff Hill
Next: Changing DOL field from a subroutine record Luchini, Kristi L.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·