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
is-prime test failure in rakudo-star-2013.02 on OS X 10.8.2 #3111
Comments
From mykle@mykle.comHi. on the perl6 IRC channel, it was suggested i open a bug on this test failure, in is-prime.t :
|
From @UtilOn Tue Apr 23 13:48:44 2013, mykle@mykle.com wrote:
I have experienced the same bug on OS X 10.8.3. -- |
The RT System itself - Status changed from 'new' to 'open' |
From @UtilHere is more info on the symptom. When I run the code below, it always (Lines wrapped for clarity) ### Run#2 Note that at 172, *even* numbers start creeping in. Definitely not prime! ### Vitals: |
From @UtilThis is the NQP program I was using to probe the problem. |
From @UtilThe fix is in commit 16fa719. The problem was in src/vm/parrot/ops/nqp_bigint.ops . My take/guess on what was happening: On my system, C's (int)s are 32-bit, but Parrot's I-registers are If the high half of the register happens to be 0, then everything works If anyone thinks my analysis is in error, even after this ticket is |
From @nwc10On Tue Apr 30 15:44:27 2013, util wrote:
Yes, fixes the problem for me on FreeBSD and OS X.
I think your analysis is spot on. We had quite a few problems like Any cast to a pointer of a different size (or potentially a different It's also strange that the bug had all the symptoms of a GC bug Nicholas Clark |
From @usev6As this was resolved back in 2013, I'm closing the ticket. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#117731 (status was 'resolved')
Searchable as RT117731$
The text was updated successfully, but these errors were encountered: