You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something inside RubyGems is breaking when running under mixed-mode execution that works in pure-interpreter or pure-jit. I dug into it a bit, and it looks like variables are getting munged, probably due to call protocols not aligning correctly. I have not dug into it any further.
This is the cause of -Pmain failure right now. You can run the short version via:
You'll get the same rspec/mocks error. If you unpack the runnable.jar it creates into a temporary directory, you should be able to run the commands above to reproduce. It will be running JRuby entirely from within that dir, so use those files for investigation.
What I Know
I tracked the problem as far as Gem.try_activate, which calls find_inactive_path and find_by_path. Those eventually get to BasicSpecification#contains_requirable_file?, and then here things started to go screwy. The base and suffixes variables could be seen to change values; base would be correct outside the suffixes.any? loop, but an empty string inside. suffixes changed to base's value at one point as I added and removed puts logging. I believe at one point it started working...I had added enough code that it compiled differently.
That's about all I have.
The text was updated successfully, but these errors were encountered:
Only one assertion fails now, so I've commented it out and re-enabled the spec in 63fa292. Still need @mkristian to figure out whether that failure is valid or just a stale spec.
Well this is a first...we have a bug that only manifests when running in mixed mode.
Something inside RubyGems is breaking when running under mixed-mode execution that works in pure-interpreter or pure-jit. I dug into it a bit, and it looks like variables are getting munged, probably due to call protocols not aligning correctly. I have not dug into it any further.
This is the cause of -Pmain failure right now. You can run the short version via:
You'll get the same
rspec/mocks
error. If you unpack the runnable.jar it creates into a temporary directory, you should be able to run the commands above to reproduce. It will be running JRuby entirely from within that dir, so use those files for investigation.What I Know
I tracked the problem as far as Gem.try_activate, which calls find_inactive_path and find_by_path. Those eventually get to BasicSpecification#contains_requirable_file?, and then here things started to go screwy. The
base
andsuffixes
variables could be seen to change values;base
would be correct outside thesuffixes.any?
loop, but an empty string inside.suffixes
changed tobase
's value at one point as I added and removedputs
logging. I believe at one point it started working...I had added enough code that it compiled differently.That's about all I have.
The text was updated successfully, but these errors were encountered: