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  <20082009  2010  2011  2012  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  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: asyn problem
From: "Allison, Stephanie" <[email protected]>
To: "John Sinclair" <[email protected]>, "Tech-talk" <[email protected]>
Date: Tue, 6 May 2008 18:38:53 -0700
Hi John,

Are you using gpib support?  This may not be related but I get a segmentation fault when I set eos to non-NULL in the DSET gpibCmd.  To fix, in asyn/asynGpib/asynGpib.c, the readIt routine, the eomReason pointer needs to be checked before setting:

    if(pgpibPvt->eoslen==1 && nt>0) {
        if(data[nt-1]==pgpibPvt->eos) {
/****  add eomReason pointer check ****/
            if (eomReason) *eomReason |= ASYN_EOM_EOS;
            nt--;
        }
    }
    if(nt<maxchars) data[nt] = 0;
    if(nt==maxchars)
/****  add eomReason pointer check ****/
      if (eomReason) *eomReason |= ASYN_EOM_CNT;

Perhaps Mark Rivers can add this fix to the next version of asyn?  And perhaps I shouldn't use devGpib but it seemed less work to convert my old existing gpib stuff to devGpib...

Thank you,

Stephanie Allison

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of John Sinclair
> Sent: Tuesday, May 06, 2008 12:06 PM
> To: Tech-talk
> Subject: asyn problem
> 
> For EPICS R3.14.9 on x86 linux with asyn-vxi11-gpib talking to E5810A 
> device:
> 
> asyn R4-1 has worked well for several years.
> 
> Today, I reinstalled software and upgraded to asyn R4-9.
> 
> 
> I get the following message and a soft ioc crash (before 
> iocInit is called):
> 
> epics> vxi11Configure("L0","10.1.75.206",0,0.0,"gpib0",0,0)
> epics> 2008/05/06 13:36:40.977 L0 vxi11 clientCall errno Permission 
> denied clnt_stat 5
> 2008/05/06 13:36:40.977 L0 vxiCreateIrqChannel 
> (create_intr_chan): RPC: 
> Timed out
> 
> 2008/05/06 13:36:40.977 L0 Warning -- SRQ not operational.
> Segmentation fault
> 
> ----------------------------------------
> 
> Any guidance?
> 
> John Sinclair
> 
> 


Replies:
RE: asyn problem Mark Rivers
References:
asyn problem John Sinclair

Navigate by Date:
Prev: asyn problem John Sinclair
Next: Listing channels David Dudley
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: asyn problem John Sinclair
Next: RE: asyn problem Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·