My soft IOC program generates errors, see below. I control the IOC from an edm panel, where one of the controlls tells the IOC to write a sring of bytes to the gpib KS3988 crate controller and then read the response. When I press the button soon after the IOC is started it seems to be working fine. However if I wait a few minutes after the IOC is started and then press the button the program generates errors. Sometimes it crashes with seg fault, like it did this time, and sometimes it recoveres after two subsequent button clicks. Looks like the connection to the device times out. Any ideas how to fix it?
Here is the output:
-------------------------------------
zms@esaux1 $ ../../bin/linux-x86/ksTest st.cmd
#!../../bin/linux-x86/ksTest
< envPaths
epicsEnvSet(ARCH,"linux-x86")
epicsEnvSet(IOC,"iocksTest")
epicsEnvSet(TOP,"/afs/slac.stanford.edu/g/esa/ilc/epics/iocTop/ksTest")
epicsEnvSet(ASYN,"/afs/slac/g/esa/ilc/epics/modules/asyn/4-8")
epicsEnvSet(GENSUB,"/afs/slac/g/esa/ilc/epics/modules/genSub/1-6")
epicsEnvSet(KS3988,"/afs/slac/g/esa/ilc/epics/modules/ks3988")
epicsEnvSet(EPICS_BASE,"/afs/slac/g/esa/ilc/epics/base/R3-14-9-ilc1")
cd /afs/slac.stanford.edu/g/esa/ilc/epics/iocTop/ksTest
## Register all support components
dbLoadDatabase("dbd/ksTest.dbd")
ksTest_registerRecordDeviceDriver(pdbbase)
vxi11Configure( "L0","134.79.64.25",0,0.0,"gpib0",0,0)
## Load record instances
dbLoadRecords( "db/dbExample1.db","P=KS:")
dbLoadRecords( "db/devKS3988.db","P=KS:,Q=AIO,W=AWRT,L=0,A=12")
dbLoadRecords( "db/asynIO.db","P=KS:,R=AIO,PORT=L0,ADDR=12,IMAX=100,OMAX=100")
dbLoadRecords( "db/asynWrt.db","P=KS:,R=AWRT,PORT=L0,ADDR=12,IMAX=100,OMAX=100")
cd /afs/slac.stanford.edu/g/esa/ilc/epics/iocTop/ksTest/iocBoot/iocksTest
iocInit()
Starting iocInit
############################################################################
## EPICS R3.14.9-lcls1 $R3-14-9$ $2007/02/05 16:31:45$
## EPICS Base built Oct 2 2007
############################################################################
iocInit: All initialization complete
epics> ksReadReg: c=12, n=0, a=0, f=1, nw=1, d=0, l=0, sm=0, dm=0
ksReadReg 3 bytes: 0x1e 0x0 0x1
This is a message number 0
2007/10/16 10:34:42.245 L0 vxi11 clientIoCall errno 104 clnt_stat 4
2007/10/16 10:34:42.245 L0 vxiDestroyDevLink RPC error : RPC: Unable to send; er
rno = Broken pipe
2007/10/16 10:34:42.246 L0 vxiDisconnectPort : RPC: Unable to send; errno = Brok
en pipe
2007/10/16 10:34:44.247 L0 vxiDestroyDevLink RPC error : RPC: Unable to send; er
rno = Broken pipe
L0 port not connected
2007/10/16 10:34:44.247 L0 asynGpib:pollAddr srqEnable
2007/10/16 10:34:44.247 KS:AIO: Write error, nout=0, L0 RPC failed
2007/10/16 10:34:44.247 L0 port not connected
2007/10/16 10:34:44.247 KS:AIO: Error L0 port is not connected
2007/10/16 10:34:44.247 KS:AIO: error nread -1210113632 L0 port is not connecte
d
2007/10/16 10:34:44.247 KS:AIO: Overflow nread -1210113632 L0 port is not connec
ted
Segmentation fault (core dumped)
--------------------------------------------------------
Thanks,
Zen
- Replies:
- RE: asyn Mark Rivers
- Navigate by Date:
- Prev:
Re: Installing EDM on OS X 10.4.10 Eric Norum
- Next:
RE: asyn Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Installing EDM on OS X 10.4.10 Bertrand H.J. Biritz
- Next:
RE: asyn Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|