[#81999] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — ko1@...
Issue #13737 has been updated by ko1 (Koichi Sasada).
4 messages
2017/07/11
[#82005] [Ruby trunk Bug#13737] "can't modify frozen String" when installing bundled gems — nobu@...
Issue #13737 has been updated by nobu (Nobuyoshi Nakada).
3 messages
2017/07/12
[#82102] Re: register_fstring_tainted:FL_TEST_RAW(str, RSTRING_FSTR) — Eric Wong <normalperson@...>
Koichi Sasada <ko1@atdot.net> wrote:
4 messages
2017/07/18
[#82151] [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack — Rei.Odaira@...
Issue #13637 has been updated by ReiOdaira (Rei Odaira).
3 messages
2017/07/24
[ruby-core:82197] Re: [Ruby trunk Feature#13637] [PATCH] tool/runruby.rb: test with smallest possible machine stack
From:
Eric Wong <normalperson@...>
Date:
2017-07-27 09:36:25 UTC
List:
ruby-core #82197
Rei.Odaira@gmail.com wrote: > Thanks for the patch. Unfortunately, it did not solve the problem. Looks like this test does not call `nogvl_copy_stream_read_write()` but instead calls `copy_stream_fallback_body()`. As far as I read the code, there is no large array stack-allocated on that path...? Ah, looks like you're right. Hmm.. which OpenSSL version do you use? Perhaps we can set a higher stack size for some versions of OpenSSL on AIX; I don't think we've seen this other platforms... Also, are NFDBITS and HAVE_RB_FD_INIT macros defined? Platforms without them will allocate select() bitmaps on stack; which can get big. Perhaps enabling the (currently Linux-only) poll() rb_wait_for_single_fd can avoid big bitmaps for you: diff --git a/thread.c b/thread.c index b7ee1d8d9b..c9e52b8698 100644 --- a/thread.c +++ b/thread.c @@ -3823,7 +3823,7 @@ rb_thread_fd_select(int max, rb_fdset_t * read, rb_fdset_t * write, rb_fdset_t * * one we know of that supports using poll() in all places select() * would work. */ -#if defined(HAVE_POLL) && defined(__linux__) +#if defined(HAVE_POLL) && (defined(__linux__) || defined(_AIX)) # define USE_POLL #endif Also, does pahole work on your binaries? git clone git://git.kernel.org/pub/scm/devel/pahole/pahole.git That helps find down big stack users (including OpenSSL or any other 3rd party binaries). Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>