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
unhandled Failure detected in DESTROY #6076
Comments
From @zoffixznetThe Failure has DESTROY submethod[^1] with a comment above it saying "Shouldn't happen". But I did manage to make it happen, Attached are the program and the output it generated. The warnings appear around test 100. |
From @zoffixznet$ perl6 foo.p6 # Failed test 'smartmatch of string ranges' # Failed test '0..10 ~~ "0"..3' # Failed test '0..FatRat.new(10, 1) ~~ "0"..3' # Failed test '0..10e0 ~~ "0"..3' # Failed test '0..10.0 ~~ "0"..3' # Failed test '0..10.0 ~~ "0"..3' # Failed test '0e0..10 ~~ "0"..3' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ "0"..3' # Failed test '0.0..10e0 ~~ "0"..3' # Failed test '0e0..10.0 ~~ "0"..3' # Failed test '0e0..10.0 ~~ "0"..3' # Failed test '0..10 ~~ "0"..3.0' # Failed test '0..FatRat.new(10, 1) ~~ "0"..3.0' # Failed test '0..10e0 ~~ "0"..3.0' # Failed test '0..10.0 ~~ "0"..3.0' # Failed test '0..10.0 ~~ "0"..3.0' # Failed test '0e0..10 ~~ "0"..3.0' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ "0"..3.0' # Failed test '0.0..10e0 ~~ "0"..3.0' # Failed test '0e0..10.0 ~~ "0"..3.0' # Failed test '0e0..10.0 ~~ "0"..3.0' # Failed test '0..10 ~~ "0"..3e0' # Failed test '0..FatRat.new(10, 1) ~~ "0"..3e0' # Failed test '0..10e0 ~~ "0"..3e0' # Failed test '0..10.0 ~~ "0"..3e0' # Failed test '0..10.0 ~~ "0"..3e0' # Failed test '0e0..10 ~~ "0"..3e0' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ "0"..3e0' # Failed test '0.0..10e0 ~~ "0"..3e0' # Failed test '0e0..10.0 ~~ "0"..3e0' # Failed test '0e0..10.0 ~~ "0"..3e0' # Failed test '0..10 ~~ "0"..FatRat.new(3, 1)' # Failed test '0..FatRat.new(10, 1) ~~ "0"..FatRat.new(3, 1)' # Failed test '0..10e0 ~~ "0"..FatRat.new(3, 1)' # Failed test '0..10.0 ~~ "0"..FatRat.new(3, 1)' # Failed test '0..10.0 ~~ "0"..FatRat.new(3, 1)' # Failed test '0e0..10 ~~ "0"..FatRat.new(3, 1)' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ "0"..FatRat.new(3, 1)' # Failed test '0.0..10e0 ~~ "0"..FatRat.new(3, 1)' # Failed test '0e0..10.0 ~~ "0"..FatRat.new(3, 1)' # Failed test '0e0..10.0 ~~ "0"..FatRat.new(3, 1)' # Failed test '0..10 ~~ 0..3' # Failed test '0..FatRat.new(10, 1) ~~ 0..3' # Failed test '0..10e0 ~~ 0..3' # Failed test '0..10.0 ~~ 0..3' # Failed test '0..10.0 ~~ 0..3' # Failed test '0e0..10 ~~ 0..3' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ 0..3' # Failed test '0.0..10e0 ~~ 0..3' # Failed test '0e0..10.0 ~~ 0..3' # Failed test '0e0..10.0 ~~ 0..3' # Failed test '0..10 ~~ 0.0..3' # Failed test '0..FatRat.new(10, 1) ~~ 0.0..3' # Failed test '0..10e0 ~~ 0.0..3' # Failed test '0..10.0 ~~ 0.0..3' # Failed test '0..10.0 ~~ 0.0..3' # Failed test '0e0..10 ~~ 0.0..3' WARNING: unhandled Failure detected in DESTROY: WARNING: unhandled Failure detected in DESTROY: WARNING: unhandled Failure detected in DESTROY: WARNING: unhandled Failure detected in DESTROY: WARNING: unhandled Failure detected in DESTROY: WARNING: unhandled Failure detected in DESTROY: # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ 0.0..3' # Failed test '0.0..10e0 ~~ 0.0..3' # Failed test '0e0..10.0 ~~ 0.0..3' # Failed test '0e0..10.0 ~~ 0.0..3' # Failed test '0..10 ~~ 0e0..3' # Failed test '0..FatRat.new(10, 1) ~~ 0e0..3' # Failed test '0..10e0 ~~ 0e0..3' # Failed test '0..10.0 ~~ 0e0..3' # Failed test '0..10.0 ~~ 0e0..3' # Failed test '0e0..10 ~~ 0e0..3' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ 0e0..3' # Failed test '0.0..10e0 ~~ 0e0..3' # Failed test '0e0..10.0 ~~ 0e0..3' # Failed test '0e0..10.0 ~~ 0e0..3' # Failed test '0..10 ~~ FatRat.new(0, 1)..3' # Failed test '0..FatRat.new(10, 1) ~~ FatRat.new(0, 1)..3' # Failed test '0..10e0 ~~ FatRat.new(0, 1)..3' # Failed test '0..10.0 ~~ FatRat.new(0, 1)..3' # Failed test '0..10.0 ~~ FatRat.new(0, 1)..3' # Failed test '0e0..10 ~~ FatRat.new(0, 1)..3' # Failed test 'FatRat.new(0, 1)..FatRat.new(10, 1) ~~ FatRat.new(0, 1)..3' # Failed test '0.0..10e0 ~~ FatRat.new(0, 1)..3' # Failed test '0e0..10.0 ~~ FatRat.new(0, 1)..3' # Failed test '0e0..10.0 ~~ FatRat.new(0, 1)..3' # Failed test 'smartmatch numeric range against string range [numeric strings]' |
From @zoffixznetuse Test; for @variants -> $r { subtest 'smartmatch of string ranges' => { for @true -> ($a, $b) { subtest 'smartmatch numeric range against string range [numeric strings]' => { for @variants -> $r { |
From @zoffixznetJust realized something: I fixed Str ~~ Numeric to not throw, so on HEAD there won't be any Failures at all with the sample code. I tried changing the tests to use $a + $b instead of $a ~~ $b, but then the DESTROY warning does not occur... ... should this ticket be closed? |
From @zoffixznetGonna close this since I can only repo this on a 32-bit box with a specific commit and don't know of a way to repro this on HEAD. |
@zoffixznet - Status changed from 'new' to 'rejected' |
Migrated from rt.perl.org#130786 (status was 'rejected')
Searchable as RT130786$
The text was updated successfully, but these errors were encountered: