EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022 
<== Date ==> <== Thread ==>

Subject: Re: ringPointerTest
From: Andrew Johnson <[email protected]>
To: Michael Davidsaver <[email protected]>, EPICS core-talk <[email protected]>
Date: Tue, 18 Nov 2014 16:48:31 -0600
Hi Michael,

On 11/17/2014 04:41 PM, Michael Davidsaver wrote:
> I've pushed a re-write of ringPointerTest which should address the
> occasional test failures we've been seeing.

Thanks, but running this on VxWorks I get:

ok 28 - !epicsRingPointerIsFull(ring)
ok 29 - epicsRingPointerGetFree(ring)==rsize
ok 30 - epicsRingPointerGetSize(ring)==rsize
ok 31 - epicsRingPointerGetUsed(ring)==0
# single producer, single consumer without locking
Bail out! Can't run test from thread with highest priority


If a test needs a specific thread priority, please start a thread that
meets those requirements and run it in that. The VxWorks shell by
default runs at the highest priority.

Also I am a little nervous about future compilers noticing that you're
creating pointers out of random integer offsets from a NULL pointer,
which assumes implementation-defined behaviour and on some of the more
obscure architectures could result in a trap representation (C99
6.3.2.3), e.g.
http://docs.cray.com/books/004-2179-001/html-004-2179-001/rvc5mrwh.html#ZFIXEDAWYU1A7W
Could this program not just malloc() a large buffer (1MB say) and make
up its pointers from offsets into that array?

- Andrew
-- 
People everywhere confuse what they read in newspapers with news.
-- A. J. Liebling

Replies:
Re: ringPointerTest Andrew Johnson
Re: ringPointerTest Michael Davidsaver
References:
ringPointerTest Andrew Johnson
Re: ringPointerTest Michael Davidsaver

Navigate by Date:
Prev: Re: 3.15.0.2: Shutdown issues Michael Davidsaver
Next: Re: ringPointerTest Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022 
Navigate by Thread:
Prev: Re: ringPointerTest Michael Davidsaver
Next: Re: ringPointerTest Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022 
ANJ, 18 Nov 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·