Re: Pike 8.0.182 release candidate

"Stephen R. van den Berg" <[email protected]>
Newsgroups gmane.comp.lang.pike.devel,gmane.comp.lang.pike.user
Message-ID <[email protected]>
Peter Bortas wrote:
>On Tue, Mar 1, 2016 at 5:15 PM, Stephen R. van den Berg <[email protected]> wrote:
>> Incidentally: this fix is incomplete.  So it fixes some of those
>> race-conditions, but not all of them.

>Is there a way of reducing that to a reproducable test? It doesn't
>have to be simple enough to go into the testsuite.

I'd guess it would be possible.

Basically what it boils down to is:
- Create a race.pmod which defines and initialises some variables and
  defines a method called trigger().
- Create a testrace.pike which splits up in say two (or more) threads
  and in each of those threads it calls up .race.trigger()
  at mostly the same moment.
- Then start testrace.pike, and after it finishes, restart it again.
- Hopefully every now and then, you'd trigger the compilerrace-bug.
-- 
Stephen.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.