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

Subject: Re: Scalcout data corruption on darwin-x86 with x86_64 arch class
From: Tim Mooney <[email protected]>
To: "J. Lewis Muir" <[email protected]>
Cc: [email protected]
Date: Thu, 18 Aug 2011 15:26:00 -0500 (CDT)
Awesome!  I haven't reproduced the symptom on my x86_64 system, but
anyway it's clear that the code needs this fix.  I'll look for other
similar problems.
Thanks to you both.
Tim

----- Original Message -----
> From: "J. Lewis Muir" <[email protected]>
> To: "Andrew Johnson" <[email protected]>
> Cc: [email protected]
> Sent: Thursday, August 18, 2011 2:43:54 PM
> Subject: Re: Scalcout data corruption on darwin-x86 with x86_64 arch class
> On 8/18/11 2:13 PM, Andrew Johnson wrote:
> > I'm guessing the scalcout record type (which is from synApps, not
> > part of
> > Base) is probably using long for integer value storage in some
> > places without
> > properly initializing the memory. An LP64 architecture is liable to
> > this kind
> > of problem (which is why Base maps DBF_LONG to epicsInt32), so I'd
> > expect
> > linux-x86_64 to exhibit it as well although I haven't tried as I
> > don't have
> > synApps installed.
> 
> Hi, Andrew.
> 
> Bingo! I think you're absolutely right. After applying the
> attached patch to [calc 2-8]/calcApp/src/sCalcPerform.c, it now
> works. Thanks for the hint!
> 
> Tim: Maybe other local variables in the sCalcPerform function
> should be initialized too? I don't know.
> 
> Thanks,
> 
> Lewis

-- 
Tim Mooney ([email protected]) (630)252-5417
Software Services Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab


Replies:
Re: Scalcout data corruption on darwin-x86 with x86_64 arch class J. Lewis Muir
References:
Re: Scalcout data corruption on darwin-x86 with x86_64 arch class J. Lewis Muir

Navigate by Date:
Prev: Re: Scalcout data corruption on darwin-x86 with x86_64 arch class J. Lewis Muir
Next: Re: Scalcout data corruption on darwin-x86 with x86_64 arch class J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Scalcout data corruption on darwin-x86 with x86_64 arch class J. Lewis Muir
Next: Re: Scalcout data corruption on darwin-x86 with x86_64 arch class J. Lewis Muir
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·