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

Subject: Re: Strange problem with EPICS areaDetector
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: Jörn Dreyer <j.dreyer at hzdr.de>
Cc: EPICS Tech Talk <tech-talk at aps.anl.gov>
Date: Wed, 19 Jun 2024 22:28:29 -0700
On 6/19/24 21:26, Michael Davidsaver wrote:
I see something like the following.  All of the 'f's mean that GCC
is unable to track the sizes of the objects involved.  I also don't
see a fault.

X test.LINR ptemp=ffffffffffffffff,ffffffffffffffff papChoice=ffffffffffffffff,ffffffffffffffff i=0

I spoke too soon.  I can reproduce, but not with a -debug build.
So I guess '-O2' vs '-O3' plays some role?

X test.LINR ptemp=ffffffffffffffff,28 papChoice=ffffffffffffffff,ffffffffffffffff i=0
X test.LINR ptemp=ffffffffffffffff,0 papChoice=ffffffffffffffff,ffffffffffffffff i=1
*** buffer overflow detected ***: terminated

The inferred size of 'ptemp' is 28 bytes, which I can only assume comes from
this line.

ptemp = &(pdbr_enumStrs->strs[0][0]);

I don't understand why 28 and not 1, 30, or 30*40 ?

The first iteration steps past this.

ptemp += sizeof(pdbr_enumStrs->strs[0]);

This is certainly an odd way to iterate an array...


Replies:
Re: Strange problem with EPICS areaDetector Jörn Dreyer via Tech-talk
References:
Strange problem with EPICS areaDetector Jörn Dreyer via Tech-talk
Re: Strange problem with EPICS areaDetector Ralph Lange via Tech-talk
Re: Strange problem with EPICS areaDetector Jörn Dreyer via Tech-talk
Re: Strange problem with EPICS areaDetector Jörn Dreyer via Tech-talk
Re: Strange problem with EPICS areaDetector Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: Strange problem with EPICS areaDetector Michael Davidsaver via Tech-talk
Next: Re: Strange problem with EPICS areaDetector Jörn Dreyer via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  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: Strange problem with EPICS areaDetector Michael Davidsaver via Tech-talk
Next: Re: Strange problem with EPICS areaDetector Jörn Dreyer via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  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, 20 Jun 2024 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·