![]() |
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
JRuby 1.7.0.pre2, JRuby 1.6.7 |
Assignee:
|
Unassigned |
Components:
|
Core Classes/Modules |
Created:
|
22/Aug/12 7:11 PM
|
Description:
|
Kernel#system and Kernel#` both invoke ShellLauncher in the context of a try block which catches Exception and discards the error, instead registering a process exit status of 127. In some cases, this is appropriate (for example, if the command is not found), but it can also mask significant underlying issues.
In my case, it was suppressing a java.io.IOException which was reporting an inability to allocate memory.
Ideally, either only a narrower subset of exceptions should be caught or the user should have the option to enable a "noisier" version which doesn't strictly adhere to C Ruby behavior.
Unfortunately, I'm not sure how to provide a test case which doesn't rely on tight memory conditions.
|
Environment:
|
Linux, OpenJDK 6
|
Project:
|
JRuby
|
Priority:
|
Minor
|
Reporter:
|
Matthew Boeh
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
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