[#70977] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3 — arai@...
Issue #11473 has been updated by Shunichi Arai.
3 messages
2015/10/04
[#71062] [Ruby trunk - Bug #10892] Deadlock in autoload — eregontp@...
Issue #10892 has been updated by Benoit Daloze.
4 messages
2015/10/12
[#71090] Re: [Ruby trunk - Bug #10892] Deadlock in autoload
— Eric Wong <normalperson@...>
2015/10/14
eregontp@gmail.com wrote:
[#71127] [Ruby trunk - Feature #11607] [PATCH] fiddle: release GVL for ffi_call — normalperson@...
Issue #11607 has been updated by Eric Wong.
3 messages
2015/10/20
[#71164] [Ruby trunk - Feature #11614] [Open] [RFC] use id_table for constant tables — normalperson@...
Issue #11614 has been reported by Eric Wong.
3 messages
2015/10/22
[#71211] [Ruby trunk - Feature #11607] [PATCH] fiddle: release GVL for ffi_call — naruse@...
Issue #11607 has been updated by Yui NARUSE.
6 messages
2015/10/27
[#71212] Re: [Ruby trunk - Feature #11607] [PATCH] fiddle: release GVL for ffi_call
— Eric Wong <normalperson@...>
2015/10/27
Yes, user must check if the function is MT-safe. Probably fine
[#71246] Re: [Ruby trunk - Feature #11607] [PATCH] fiddle: release GVL for ffi_call
— Aaron Patterson <tenderlove@...>
2015/10/28
On Tue, Oct 27, 2015 at 08:54:07AM +0000, Eric Wong wrote:
[#71254] Re: [Ruby trunk - Feature #11607] [PATCH] fiddle: release GVL for ffi_call
— Eric Wong <normalperson@...>
2015/10/28
Aaron Patterson <tenderlove@ruby-lang.org> wrote:
[#71230] [Ruby trunk - Feature #11625] Unlock GVL for SHA1 calculations — tenderlove@...
Issue #11625 has been updated by Aaron Patterson.
5 messages
2015/10/27
[#71236] Re: [Ruby trunk - Feature #11625] Unlock GVL for SHA1 calculations
— Юрий Соколов <funny.falcon@...>
2015/10/28
What's about other hashsum algos? MD5, SHA2, etc
[#71242] Re: [Ruby trunk - Feature #11625] Unlock GVL for SHA1 calculations
— Eric Wong <normalperson@...>
2015/10/28
Юрий Соколов <funny.falcon@gmail.com> wrote:
[#71239] [Ruby trunk - Bug #11384] multi-threaded autoload sometimes fails — shugo@...
Issue #11384 has been updated by Shugo Maeda.
4 messages
2015/10/28
[ruby-core:71107] [Ruby trunk - Bug #11600] indeterministic failures on socket operations when running out of file descriptors
From:
nobu@...
Date:
2015-10-19 01:34:05 UTC
List:
ruby-core #71107
Issue #11600 has been updated by Nobuyoshi Nakada.
Description updated
Accurately, it is not a bug but a intentional crash.
Citing from [`libdispatch-442.1.4/src/source.c`](https://opensource.apple.c=
om/tarballs/libdispatch/libdispatch-442.1.4.tar.gz):
~~~c
int err =3D errno;
switch (err) {
case EMFILE:
DISPATCH_CLIENT_CRASH("kqueue() failure: "
"process is out of file descriptors");
break;
case ENFILE:
DISPATCH_CLIENT_CRASH("kqueue() failure: "
"system is out of file descriptors");
break;
case ENOMEM:
DISPATCH_CLIENT_CRASH("kqueue() failure: "
"kernel is out of memory");
break;
default:
(void)dispatch_assume_zero(err);
DISPATCH_CRASH("kqueue() failure");
break;
}
~~~
----------------------------------------
Bug #11600: indeterministic failures on socket operations when running out =
of file descriptors
https://bugs.ruby-lang.org/issues/11600#change-54477
* Author: Erkki Eilonen
* Status: Open
* Priority: Normal
* Assignee:=20
* ruby -v: ruby 2.2.4p180 (2015-10-06 revision 52046) [x86_64-linux]
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
We've been getting indeterministic failures on socket operations when runni=
ng out of file descriptors, instead of the correct `Errno::EMFILE` being ra=
ised we've seen various failure modes, on both linux and osx:
1. This is what we're seeing in production the most, masquerading as a dns =
failure
>~~~
ruby test.rb=20
1017 tempfiles
freeing 4
test.rb:24:in `getaddrinfo': getaddrinfo: Name or service not known (Socket=
Error)
from test.rb:24:in `block (3 levels) in <main>'
2.
>~~~
>ruby test.rb=20
1017 tempfiles
freeing 4
test.rb:24: [BUG] =E2=80=A0 - errno =3D=3D 0
ruby 2.2.4p180 (2015-10-06 revision 52046) [x86_64-linux]
>
-- Control frame information -----------------------------------------------
c:0003 p:---- s:0009 e:000008 CFUNC :getaddrinfo
c:0002 p:0018 s:0004 e:000003 BLOCK test.rb:24 [FINISH]
c:0001 p:---- s:0002 e:000001 TOP [FINISH]
>
-- Ruby level backtrace information ----------------------------------------
test.rb:24:in `block (3 levels) in <main>'
test.rb:24:in `getaddrinfo'
3.
>~~~
>ruby test.rb=20
1017 tempfiles
freeing 4
test.rb:24: [BUG] rb_sys_fail(getaddrinfo) - errno =3D=3D 0
ruby 2.2.4p180 (2015-10-06 revision 52046) [x86_64-linux]
>
-- Control frame information -----------------------------------------------
c:0003 p:---- s:0009 e:000008 CFUNC :getaddrinfo
c:0002 p:0018 s:0004 e:000003 BLOCK test.rb:24 [FINISH]
c:0001 p:---- s:0002 e:000001 TOP [FINISH]
>
-- Ruby level backtrace information ----------------------------------------
test.rb:24:in `block (3 levels) in <main>'
test.rb:24:in `getaddrinfo'
Similar errors also happen doing other operations (eg `TCPSocket.open`)
Test case attached
---Files--------------------------------
test.rb (483 Bytes)
testcase.rb (431 Bytes)
--=20
https://bugs.ruby-lang.org/