[ruby-core:63254] [Backport21 - Backport #9828] [Closed] Segfault instead of stack overflow

From: nagachika00@...
Date: 2014-06-19 15:57:14 UTC
List: ruby-core #63254
Issue #9828 has been updated by Tomoyuki Chikanaga.

Status changed from Open to Closed
% Done changed from 0 to 100

Applied in changeset r46468.

----------
merge revision(s) r44712,r44715,r44716,r44722,r44725,r44726,r44753: [Backport #9454] [Backport #9828]

	* thread_pthread.c: get current main thread stack size, which may
	  be expanded than allocated size at initialization, by rlimit().
	  [ruby-core:60113] [Bug #9454]

	* thread_pthread.c: rlimit is only available on Linux.
	  At least r44712 breaks FreeBSD.
	  [ruby-core:60113] [Bug #9454]

	* thread_pthread.c (ruby_init_stack, ruby_stack_overflowed_p):
	  place get_stack above others to get stack boundary information.
	  [ruby-core:60113] [Bug #9454]

----------------------------------------
Backport #9828: Segfault instead of stack overflow
https://bugs.ruby-lang.org/issues/9828#change-47301

* Author: Arne Brasseur
* Status: Closed
* Priority: High
* Assignee: 
----------------------------------------
This causes a segmentation fault on 2.1.1 and 2.1.2, instead of `SystemStackError`

~~~ruby
define_method(:foo) { send(:foo) }
foo
~~~



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

In This Thread

Prev Next