Issue #14642 has been updated by MSP-Greg (Greg L).


I did a vc14 build (`ruby 2.6.0dev (2018-03-31 trunk 63043) [x64-mswin64_140]`), it behaves the same as the MinGW build.

Using the test `TestWEBrickHTTPProxy#test_proxy` in `test/webrick/test_httpproxy.rb`, when `HTTPProxyServer#perform_proxy_request` (`lib/webrick/httpproxy.rb`) is called

link - https://github.com/ruby/ruby/blob/46b391ff731d66883082e6347d5fc4e54386d7bd/lib/webrick/httpproxy.rb#L298-L347.

The code runs to line 334, the `Fiber.yield` statement, and stops, as in back to command prompt, with no indication of the problem.  The fiber is first started by `req_fib.resume` on line 339.

Thanks, Greg

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

* Author: usa (Usaku NAKAMURA)
* Status: Assigned
* 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>