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: Daron Chabot <[email protected]>
To: "Vigder, Mark" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 19 Jan 2011 15:33:06 -0500
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


Replies:
RE: Problem exiting IOC Jeff Hill
References:
Problem exiting IOC Vigder, Mark

Navigate by Date:
Prev: Problem exiting IOC Vigder, Mark
Next: RE: Problem exiting IOC Jeff Hill
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: Problem exiting IOC Vigder, Mark
Next: RE: Problem exiting IOC Jeff Hill
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 ·