Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Warning: snc bug...
From: wlupton@keck.hawaii.edu (William Lupton)
To: tech-talk@aps.anl.gov
Date: Fri, 23 Oct 1998 09:23:51 -1000
Dear all,

Rozelle Wright drew my attention to a bug in the state notation
compiler. If you use an undeclared variable or event flag as the
argument to one of the pvXxx() or efXxx() routines then you get a
segmentation violation.

I have fixed this bug and the fix will be in the next release of EPICS.
If you want to fix it in your own local version, here are the diffs:

gen_ss_code.c
===================================================================
13a14
> 23oct98,wfl     Avoided SEGV if variable or event flag was undeclared.
637c638,641
<               index = cp->index;
---
>               if (cp != 0)
>               {
>                       index = cp->index;
>               }

(in other words, replace the assignment to "index" at line 637 with the
conditional assignment).

William

Navigate by Date:
Prev: Re: Power PC floating point underflow William Lupton
Next: HELP - iocs logging to APS Janet B. Anderson
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: Power PC floating point underflow William Lupton
Next: HELP - iocs logging to APS Janet B. Anderson
Index: 1994  1995  1996  1997  <19981999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·