Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
<== Date ==> <== Thread ==>

Subject: softioc crashes CAS (gateway) when using port number in EPICS_CA_ADDR_LIST
From: Dirk Zimoch <dirk.zimoch@psi.ch>
To: Jeff Hill <johill@lanl.gov>
Cc: TechTalk EPICS <tech-talk@aps.anl.gov>
Date: Fri, 12 Oct 2007 14:19:21 +0200
Hi Jeff and others,

I see strange crashes of the CA gateway which probably originate in the CAS code.

If I use an explicit port in EPICS_CA_ADDR_LIST like this

EPICS_CA_ADDR_LIST="gateway:5066"

and then start a softioc running a record with an INP link to a record behind the gateway (running on that port), the gateway starts printing errors and refuses to handle any more requests. It has to be restarted.

The gateway prints:

CAS: CAS Request: ? on pc3853.psi.ch:38210: cmd=13 cid=0 typ=11 cnt=5064 psz=0 avail=81818260

Oct 12 14:01:36 !!! Errlog message received (message is above)
bad request code=13 in DG

Oct 12 14:01:36 !!! Errlog message received (message is above)
filename="../../../../src/cas/generic/st/casDGIntfOS.cc" line number=498
protocol from client was invalid unexpected problem with UDP input from "pc3853.psi.ch:38210"


Oct 12 14:01:36 !!! Errlog message received (message is above)
CAS: CAS Request: ? on pc3853.psi.ch:38210: cmd=13 cid=0 typ=11 cnt=5064 psz=0 avail=81818260


Oct 12 14:01:36 !!! Errlog message received (message is above)
bad request code=13 in DG

Oct 12 14:01:36 !!! Errlog message received (message is above)
filename="../../../../src/cas/generic/st/casDGIntfOS.cc" line number=498
protocol from client was invalid unexpected problem with UDP input from "pc3853.psi.ch:38210"


Oct 12 14:01:36 !!! Errlog message received (message is above)
....

However, a simple caget works without problems, at least before the softioc crashes the gateway.


I tried 3.14.8 and 3.14.9 on the ioc side. The gateway runs with some pre-3.13.9 CVS snapshot. But I also tried it with the 3.14.9 libraries.


BTW: I could not recompile the gateway with 3.14.9, because the function epicsNTOH16 does not exist any more. I had to trick the 3.14.9 libraries into the gateway's library search path.

Please, don't remove API functions when changing Channel Access!

Any idea?
Dirk

--
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182

Replies:
Re: softioc crashes CAS (gateway) when using port number in EPICS_CA_ADDR_LIST Emmanuel Mayssat

Navigate by Date:
Prev: asyn interrupt and record Heinrich du Toit
Next: Re: firewire video on RTEMS-4.6.x-MVME5500 Kate Feng
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
Navigate by Thread:
Prev: RE: asyn interrupt and record Mark Rivers
Next: Re: softioc crashes CAS (gateway) when using port number in EPICS_CA_ADDR_LIST Emmanuel Mayssat
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·