Skip to content
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

Rake tests fail on TruffleRuby head #3388

Open
andrykonchin opened this issue Jan 15, 2024 · 1 comment
Open

Rake tests fail on TruffleRuby head #3388

andrykonchin opened this issue Jan 15, 2024 · 1 comment

Comments

@andrykonchin
Copy link
Member

The failure:

Failure: test_cloned_items_stay_frozen(TestRakeFileList)
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/test/test_rake_file_list.rb:523:in `test_cloned_items_stay_frozen'
     520:     a.freeze
     521:     c = a.clone
     522:     error_class = defined?(FrozenError) ? FrozenError : RuntimeError
  => 523:     assert_raises(error_class) do
     524:       c << "more"
     525:     end
     526:   end
<internal:core> core/throw_catch.rb:36:in `catch'
<internal:core> core/throw_catch.rb:36:in `catch'

<FrozenError> expected but was
<SystemStackError(<stack level too deep
	from com.oracle.svm.core.graal.snippets.StackOverflowCheckImpl.newStackOverflowError0(StackOverflowCheckImpl.java:348)>)
<internal:core> core/type.rb:543:in `rb_inspect'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:210:in `resolve'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:78:in `inspect'
<internal:core> core/type.rb:544:in `rb_inspect'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:210:in `resolve'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:78:in `inspect'
<internal:core> core/type.rb:544:in `rb_inspect'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:210:in `resolve'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:78:in `inspect'
<internal:core> core/type.rb:544:in `rb_inspect'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:210:in `resolve'
/Users/andrykonchin/projects/truffleruby-gems-to-test/rake/lib/rake/file_list.rb:78:in `inspect'

Steps to reproduce:

bin/setup
rake
@eregon
Copy link
Member

eregon commented Jan 16, 2024

This happens because a custom inspect is modifying the object and FrozenError tries to inspect the receiver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants