-
-
Notifications
You must be signed in to change notification settings - Fork 942
Description
originaly reported here rubygems/bundler#6700
I was able to reproduce the problem on a WSL https://en.wikipedia.org/wiki/Windows_Subsystem_for_Linux
by running rails s command, it fails at this line
https://github.com/rails/rails/blob/5-2-1/railties/lib/rails/app_loader.rb#L53
there's a workaround jruby -S rails s
Script
exec Gem.ruby, '-v'
Environment
jruby 9.2.1.0-SNAPSHOT (2.5.0) 2018-09-28 8e6904f Java HotSpot(TM) 64-Bit Server VM 25.181-b13 on 1.8.0_181-b13 +jit [linux-x86_64]
Linux DESKTOP-2POPPQP 4.4.0-17134-Microsoft #285-Microsoft Thu Aug 30 17:31:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux
WSL 9.2.0.0 - fails
WSL 9.2.1.0 (master) - fails
WSL MRI 2.5.1 - works
free -h
total used free shared buffers cached
Mem: 15G 8,0G 7,9G 17M 33M 184M
-/+ buffers/cache: 7,8G 8,1G
Swap: 29G 47M 29G
Linux test 3.16.0-6-amd64 #1 SMP Debian 3.16.57-2 (2018-07-14) x86_64 GNU/Linux
debian 9.2.0.0 - works
debian 9.2.1.0 (master) - works
Expected Behavior
exec Gem.ruby, '-v'
jruby 9.2.1.0-SNAPSHOT (2.5.0) 2018-09-28 8e6904f Java HotSpot(TM) 64-Bit Server VM 25.181-b13 on 1.8.0_181-b13 +jit [linux-x86_64]
Actual Behavior
exec Gem.ruby, '-v'
Traceback (most recent call last):
8: from /home/ahorek/.rvm/rubies/jruby-head/bin/irb:13:in `<main>'
7: from org/jruby/RubyKernel.java:1178:in `catch'
6: from org/jruby/RubyKernel.java:1178:in `catch'
5: from org/jruby/RubyKernel.java:1412:in `loop'
4: from org/jruby/RubyKernel.java:1040:in `eval'
3: from (irb):7:in `evaluate'
2: from uri:classloader:/jruby/kernel/kernel.rb:17:in `exec'
1: from org/jruby/RubyKernel.java:1751:in `_exec_internal'
Errno::ENOMEM (Cannot allocate memory - No message available)
it's probably a WSL bug, but anyone has an idea where the actual problem is? how to debug it?