ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50073] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
       [not found] <redmine.issue-13432.20170413140714@ruby-lang.org>
@ 2017-04-13 14:07 ` the.deviant.world
  2017-06-16  6:11 ` [ruby-dev:50153] " nobu
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: the.deviant.world @ 2017-04-13 14:07 UTC (permalink / raw
  To: ruby-dev

Issue #13432 has been reported by masato_hi (Masato Hi).

----------------------------------------
Bug #13432: set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
https://bugs.ruby-lang.org/issues/13432

* Author: masato_hi (Masato Hi)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-04-13 trunk 58340) [x86_64-darwin16]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
以下のコードのように、Method#to_procで作成したProcオブジェクトをset_trace_funcに設定しSystemStackErrorを発生させるとRubyVMが停止する。

```
def trace_method(event, file, line, id, binding, klass); end

set_trace_func method(:trace_method).to_proc

def infinite_loop
  infinite_loop
end

infinite_loop #=> RubyVM stops
```

以下のコードではこの問題は発生しない。

```
set_trace_func lambda {|event, file, line, id, binding, klass|
}

def infinite_loop
  infinite_loop
end

infinite_loop #=> stack level too deep (SystemStackError)
```




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:50153] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
       [not found] <redmine.issue-13432.20170413140714@ruby-lang.org>
  2017-04-13 14:07 ` [ruby-dev:50073] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する the.deviant.world
@ 2017-06-16  6:11 ` nobu
  2017-06-16  8:12 ` [ruby-dev:50154] " nobu
  2017-07-09 19:49 ` [ruby-dev:50168] " nagachika00
  3 siblings, 0 replies; 4+ messages in thread
From: nobu @ 2017-06-16  6:11 UTC (permalink / raw
  To: ruby-dev

Issue #13432 has been updated by nobu (Nobuyoshi Nakada).

Description updated

r59100では起きないようです。

----------------------------------------
Bug #13432: set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
https://bugs.ruby-lang.org/issues/13432#change-65388

* Author: masato_hi (Masato Hi)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-04-13 trunk 58340) [x86_64-darwin16]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
以下のコードのように、Method#to_procで作成したProcオブジェクトをset_trace_funcに設定しSystemStackErrorを発生させるとRubyVMが停止する。

```ruby
def trace_method(event, file, line, id, binding, klass); end

set_trace_func method(:trace_method).to_proc

def stack_overflow
  stack_overflow
end

stack_overflow #=> RubyVM stops
```

以下のコードではこの問題は発生しない。

```ruby
set_trace_func lambda {|event, file, line, id, binding, klass|
}

def stack_overflow
  stack_overflow
end

stack_overflow #=> stack level too deep (SystemStackError)
```




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:50154] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
       [not found] <redmine.issue-13432.20170413140714@ruby-lang.org>
  2017-04-13 14:07 ` [ruby-dev:50073] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する the.deviant.world
  2017-06-16  6:11 ` [ruby-dev:50153] " nobu
@ 2017-06-16  8:12 ` nobu
  2017-07-09 19:49 ` [ruby-dev:50168] " nagachika00
  3 siblings, 0 replies; 4+ messages in thread
From: nobu @ 2017-06-16  8:12 UTC (permalink / raw
  To: ruby-dev

Issue #13432 has been updated by nobu (Nobuyoshi Nakada).

Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

r58349 で修正済み。

----------------------------------------
Bug #13432: set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
https://bugs.ruby-lang.org/issues/13432#change-65396

* Author: masato_hi (Masato Hi)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-04-13 trunk 58340) [x86_64-darwin16]
* Backport: 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED
----------------------------------------
以下のコードのように、Method#to_procで作成したProcオブジェクトをset_trace_funcに設定しSystemStackErrorを発生させるとRubyVMが停止する。

```ruby
def trace_method(event, file, line, id, binding, klass); end

set_trace_func method(:trace_method).to_proc

def stack_overflow
  stack_overflow
end

stack_overflow #=> RubyVM stops
```

以下のコードではこの問題は発生しない。

```ruby
set_trace_func lambda {|event, file, line, id, binding, klass|
}

def stack_overflow
  stack_overflow
end

stack_overflow #=> stack level too deep (SystemStackError)
```




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:50168] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
       [not found] <redmine.issue-13432.20170413140714@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2017-06-16  8:12 ` [ruby-dev:50154] " nobu
@ 2017-07-09 19:49 ` nagachika00
  3 siblings, 0 replies; 4+ messages in thread
From: nagachika00 @ 2017-07-09 19:49 UTC (permalink / raw
  To: ruby-dev

Issue #13432 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 2.2: REQUIRED, 2.3: DONE, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: DONE, 2.4: DONE

ruby_2_4 r59297 merged revision(s) 58334,58346,58349.

----------------------------------------
Bug #13432: set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する
https://bugs.ruby-lang.org/issues/13432#change-65706

* Author: masato_hi (Masato Hi)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-04-13 trunk 58340) [x86_64-darwin16]
* Backport: 2.2: REQUIRED, 2.3: DONE, 2.4: DONE
----------------------------------------
以下のコードのように、Method#to_procで作成したProcオブジェクトをset_trace_funcに設定しSystemStackErrorを発生させるとRubyVMが停止する。

```ruby
def trace_method(event, file, line, id, binding, klass); end

set_trace_func method(:trace_method).to_proc

def stack_overflow
  stack_overflow
end

stack_overflow #=> RubyVM stops
```

以下のコードではこの問題は発生しない。

```ruby
set_trace_func lambda {|event, file, line, id, binding, klass|
}

def stack_overflow
  stack_overflow
end

stack_overflow #=> stack level too deep (SystemStackError)
```




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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-07-09 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-13432.20170413140714@ruby-lang.org>
2017-04-13 14:07 ` [ruby-dev:50073] [Ruby trunk Bug#13432] set_trace_funcにproc->is_from_method = TRUEのオブジェクトを渡し、SystemStackErrorを発生させるとRubyVMが停止する the.deviant.world
2017-06-16  6:11 ` [ruby-dev:50153] " nobu
2017-06-16  8:12 ` [ruby-dev:50154] " nobu
2017-07-09 19:49 ` [ruby-dev:50168] " nagachika00

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).