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: "Jeff Hill" <[email protected]>
To: "'Daron Chabot'" <[email protected]>, "'Vigder, Mark'" <[email protected]>
Cc: [email protected]
Date: Wed, 19 Jan 2011 14:14:21 -0700

Ø  If I exited the EPICS ioc-shell using the command, "exit", the problem appeared.

 

possibly it’s this bug

 

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

 

Jeff
______________________________________________________
Jeffrey O. Hill           Email       
[email protected]
LANL MS H820              Voice        505 665 1831
Los Alamos NM 87545 USA   FAX          505 665 5107

 

Message content: TSPA

 

With sufficient thrust, pigs fly just fine. However, this is

not necessarily a good idea. It is hard to be sure where they

are going to land, and it could be dangerous sitting under them

as they fly overhead. -- RFC 1925

 

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

 


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

Navigate by Date:
Prev: Re: Problem exiting IOC Daron Chabot
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 
Navigate by Thread:
Prev: Re: Problem exiting IOC Daron Chabot
Next: RE: Problem exiting IOC Vigder, Mark
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 ·