EPICS Controls 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  2020  2021  2022  2023  2024  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  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: fix for a VXI addressing bugs in dbStaticLib
From: [email protected] (Rozelle Wright)
To: [email protected]
Date: Mon, 3 Aug 1998 13:18:26 -0600
Hi Everyone,
We are starting a new project using static VXI addressing and got into
a part of dbStaticLib that others may not be using.  I sent a fix to
Marty. The changes will be included in the next release.

The symptoms of the bugs are that addresses of either of these forms
#V<logical address> S<signal>
(.i.e. no parameter field)
or
#V<logical address> S<signal> @<string containing 'C'>
(a parameter field containing a capitol C)
causes the dbDumpRecord routine in dbStaticLib to get a segmentation error
which in turn causes dbst to get a segmentation error.

For anyone who wants to make the changes in their current copy of dbStaticLib.c
Marty sent me the diffs and they are included below.
Rozelle

----- Begin Included Message -----

>From [email protected] Mon Aug  3 07:48 MDT 1998
Sender: [email protected]
Date: Mon, 03 Aug 1998 08:48:20 -0500
X-Mailer: Mozilla 4.05 [en] (X11; U; SunOS 5.5.1 sun4u)
MIME-Version: 1.0
To: Rozelle Wright <[email protected]>
Subject: Re: A fix for another VXI addressing bug in dbStaticLib
References: <[email protected]>
Content-Type: multipart/mixed; boundary="------------7694A21533A1A0E6EB63EFAA"
X-Lines: 3813
Content-Length: 108242

Rozelle Wright wrote:

> I think we must be the only people using static VXI addressing with Epics3.13
> or you would have heard about this before.  I think it is important enough
> to include in the final release  and/or report the correction to tech talk.

I agree. Can you send a message to tech-talk?

I found one more suspicious piece of code. Here are complete diffs since
beta11

Index: dbStaticLib.c
===================================================================
RCS file:
/net/phoebus/epicsmgr/cvsroot/epics/base/src/dbStatic/dbStaticLib.c,v
retrieving revision 1.41
diff -r1.41 dbStaticLib.c
318c318
<       *pparm = NULL;
---
>       *pparm = pNullString;
2244c2244,2245
<                   if(!(end = strchr(pstr,'C')))  {
---
>                   plink->value.vxiio.parm = pNullString;
>                   if(!((end = strchr(pstr,'C'))&&(end < strchr(pstr,'@')) )) {
2657a2659
>     pform->nlines = nlines;

The first diff is the new suspicious piece of code. The last addiion was
a bug that showed up in JDCT.

I have also attached my latest version of dbStaticLib.c.

Thanks for finding problem and solution.

Marty
----- End Included Message -----


Navigate by Date:
Prev: Re: Setting States for an MBBI Record Dayle Kotturi
Next: CAMAC 2992 hangs vmebus Paul Sichta
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  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Setting States for an MBBI Record Dayle Kotturi
Next: CAMAC 2992 hangs vmebus Paul Sichta
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  2020  2021  2022  2023  2024 
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 ·