[ruby-core:86441] [Ruby trunk Bug#14642] Fiber make crash on Windows - webrick/httpproxy.rb ?

From: ko1@...
Date: 2018-04-03 10:26:45 UTC
List: ruby-core #86441
Issue #14642 has been updated by ko1 (Koichi Sasada).


Sorry for late fixing.

The easy repro is here:

```
  def assert_create_fiber_in_new_thread
    ret = Thread.new{
      Thread.new{
        Fiber.new{Fiber.yield :ok}.resume
      }.join
    }.join
    assert_euqal :ok, ret, '[Bug #14642]'
  end
```

And I believe r63073 will solve this issue. I'll clean this code later.

Eric, I repatch your webrick patch at r63074. Please fix if I missed anything....

Thanks,
Koichi

----------------------------------------
Bug #14642: Fiber make crash on Windows - webrick/httpproxy.rb ?
https://bugs.ruby-lang.org/issues/14642#change-71377

* Author: usa (Usaku NAKAMURA)
* Status: Closed
* Priority: Normal
* Assignee: ko1 (Koichi Sasada)
* Target version: 
* ruby -v: trunk r62966
* Backport: 2.3: DONTNEED, 2.4: DONTNEED, 2.5: DONTNEED
----------------------------------------
We found that r62966 causes crash on Windows.
Of course, the patch seems to be no problem, so I guess that this code just happened to reveal a potential bug.

FYI, AppVayor and mswinci both reported the crash, but they didn't show any details. 

Stable versions don't contain the patch, but will be backported later, maybe.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next