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: "Mark Rivers" <[email protected]>
To: "Allison, Stephanie" <[email protected]>, "John Sinclair" <[email protected]>, "Tech-talk" <[email protected]>
Date: Wed, 7 May 2008 13:38:16 -0500
John,
 
Can you see if Stephanie's fix works for you?  I will commit it to CVS, but I want to know if it fixes your problem too.
 
Mark
 

________________________________

From: [email protected] on behalf of Allison, Stephanie
Sent: Tue 5/6/2008 8:38 PM
To: John Sinclair; Tech-talk
Subject: RE: asyn problem



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
>
>





References:
asyn problem John Sinclair
RE: asyn problem Allison, Stephanie

Navigate by Date:
Prev: RE: Listing channels David Dudley
Next: Re: Listing channels Claude Saunders
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: RE: asyn problem Allison, Stephanie
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 
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 ·