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