JRuby crashes if the same Ruby lib is required in RUBYOPT and the -r flag
-------------------------------------------------------------------------
Key: JRUBY-4783
URL: http://jira.codehaus.org/browse/JRUBY-4783
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.6
Reporter: Hiro Asari
Assignee: Thomas E Enebo
If the same library is required in both {{RUBYOPT}} and {{-f}} flag, JRuby
crashes. This does not happen with MRI.
Happens with both shell script and the native launcher.
{noformat}
$ RUBYOPT='-r rubygems' jruby.sh -vr rubygems -e 'p 0'
jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-05-07 b3ff58a) (Java
HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
:1: no such file to load -- -rubygems (LoadError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)
$ RUBYOPT='-r rubygems' jruby -vr rubygems -e 'p 0'jruby 1.6.0.dev (ruby 1.8.7
patchlevel 249) (2010-05-07 b3ff58a) (Java HotSpot(TM) 64-Bit Server VM
1.6.0_17) [x86_64-java]
:1: no such file to load -- -rubygems (LoadError)
...internal jruby stack elided...
from (unknown).(unknown)(:1)
$ RUBYOPT='-r rubygems' ruby -vr rubygems -e 'p 0'ruby 1.8.7 (2009-06-08
patchlevel 173) [universal-darwin10.0]
0
{noformat}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email