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

STDERR.reopen causes exception output to be lost #2379

Open
headius opened this issue Dec 29, 2014 · 0 comments
Open

STDERR.reopen causes exception output to be lost #2379

headius opened this issue Dec 29, 2014 · 0 comments

Comments

@headius
Copy link
Member

@headius headius commented Dec 29, 2014

From http://jira.codehaus.org/browse/JRUBY-6154. Look for repro code there.

This appears to have been fixed on 1.7 but failing on JRuby master/9k.

If you reopen STDERR and subsequently cause an exception to be raised without rescuing it, the error output is lost and appears neither in the reopened destination nor the original terminal.

See the attached file for an example; the output:

doit.rb:1:in `foo': wrong number of arguments (0 for 1) (ArgumentError)
    from doit.rb:10:in `<main>'

is expected to be in the file "err", but the file is empty after execution.

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

1 participant