New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
concurrent quicksort from Damien gives different crashes each time #6269
Comments
From skeldoy@gmail.comHi! I was just playing around with the concurrent quicksort thing that Damien made.. It's neat.. But problem is: It crashes in different ways each time... Here's a couple of examples: Run1: Run2: Run3: Run4: .... The code was just a slightly modified version of the example from Damien.. And it runs if I take away some numbers.. So I suspect that there is something weird going on.. Try it on your machines... My environment is Mac os x (sierra) running Here's the code: multi quicksort( [] ) { () }; multi quicksort( [$x] ) { $x }; multi quicksort( [$pivot, *@xs] ) { say "output = { quicksort [3,4,2,4,3,6,34589734,7,5,467,675,456,345,345,234,346,457,45,234,12,3123,3,9,8,7,6,7,8,9,8,7,6,7,8,9,8,7,7,6,5,5,5,4,4,4,444,9860,33,3,1,123,234,6,3,5,7,2,4543,2,342,143,234,234,234,4,36,234,324,5,234,457,678,3,1,4,1,5,9,2,6] }"; BR, |
From @lizmatFWIW, I can’t get this to break on 2017.05. Please note that a *LOT* of concurrency fixes landed after 2016.04. I suggest you use a more current version, preferably 2017.05. Unless this problem can be confirmed on a more recent Rakudo version, I suggest this ticket can be closed.
|
The RT System itself - Status changed from 'new' to 'open' |
From @cokeClosing based on last comment. |
@coke - Status changed from 'open' to 'resolved' |
From skeldoy@gmail.comHi! Sorry for the late reply. I just tried it on 2017.04 ... and the problem is still there.. So please reopen
|
@coke - Status changed from 'resolved' to 'open' |
From @lizmatCould you please retry on 2017.05? I cannot reproduce the problem, even after 1000 runs.
|
From skeldoy@gmail.comAnd three more tries: Original exception: input = 3 1 4 1 5 9 2 6 ... It's kinda amazing how it can break in different ways each time... three more: in whatevercode at ./quicksort_concurrent.p6 line 10 Original exception:
|
From skeldoy@gmail.com./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ;./quicksort_concurrent.p6 ; perl6 -v Original exception: input = 3 1 4 1 5 9 2 6 Third times the charm..
|
Migrated from rt.perl.org#131364 (status was 'open')
Searchable as RT131364$
The text was updated successfully, but these errors were encountered: