[#66126] Creation/Conversion methods/functions table for Ruby types — SASADA Koichi <ko1@...>
Hi,
5 messages
2014/11/07
[#66248] [ruby-trunk - Feature #10423] [PATCH] opt_str_lit*: avoid literal string allocations — normalperson@...
Issue #10423 has been updated by Eric Wong.
3 messages
2014/11/13
[#66595] [ruby-trunk - Bug #10557] [Open] Block not given when the argument is a string — bartosz@...
Issue #10557 has been reported by Bartosz Kopinski.
3 messages
2014/11/30
[ruby-core:66105] [ruby-trunk - Bug #10478] WEBrick's server.rb contains a return that should be a break
From:
headius@...
Date:
2014-11-05 20:17:28 UTC
List:
ruby-core #66105
Issue #10478 has been updated by Charles Nutter.
Ahh that explains the lost exception. We will investigate why the LJE managed to escape on JRuby.
----------------------------------------
Bug #10478: WEBrick's server.rb contains a return that should be a break
https://bugs.ruby-lang.org/issues/10478#change-49817
* Author: Charles Nutter
* Status: Closed
* Priority: Urgent
* Assignee: Akira Tanaka
* Category: lib
* Target version: current: 2.2.0
* ruby -v: trunk
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN
----------------------------------------
Commit 46253 (git hash 6f226d9) added the ability to shut down the running WEBrick server more gracefully, by monitoring a shutdown pipe. However, the logic to actually escape the server loop was written to use "return" instead of break", which causes a LocalJumpError when run inside a threaded server:
1) Error:
TestNetHTTPContinue#test_expect_continue:
LocalJumpError: unexpected return
/Users/headius/projects/jruby/lib/ruby/stdlib/webrick/server.rb:216:in `start'
It is not entirely clear why this does not show up for MRI running the same tests (JRuby master is now running MRI trunk stdlib and tests), but we believe this return should be a "break". A break here exits the server loop and allows the rest of the server logic to finish gracefully without an error bubbling out.
We have made this change in JRuby here: https://github.com/jruby/jruby/commit/ce7e292dcc899111a908467f90fd0c639cfbba18
I am marking this urgent, because MRI 2.2 is almost done, and JRuby plans to release shortly after with expected 2.2 compatibility.
Assigning to akr because he did the original commit.
--
https://bugs.ruby-lang.org/