[#86787] [Ruby trunk Feature#14723] [WIP] sleepy GC — ko1@...

Issue #14723 has been updated by ko1 (Koichi Sasada).

13 messages 2018/05/01
[#86790] Re: [Ruby trunk Feature#14723] [WIP] sleepy GC — Eric Wong <normalperson@...> 2018/05/01

ko1@atdot.net wrote:

[#87095] [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — ko1@...

Issue #14767 has been updated by ko1 (Koichi Sasada).

9 messages 2018/05/17
[#87096] Re: [Ruby trunk Feature#14767] [PATCH] gc.c: use monotonic counters for objspace_malloc_increase — Eric Wong <normalperson@...> 2018/05/17

ko1@atdot.net wrote:

[ruby-core:87013] [Ruby trunk Bug#14756] `Exception` may cause SEGV when `#backtrace` returns a string

From: spiketeika@...
Date: 2018-05-14 00:12:34 UTC
List: ruby-core #87013
Issue #14756 has been reported by yui-knk (Kaneko Yuichiro).

----------------------------------------
Bug #14756: `Exception` may cause SEGV when `#backtrace` returns a string
https://bugs.ruby-lang.org/issues/14756

* Author: yui-knk (Kaneko Yuichiro)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.6.0dev (2018-05-13 trunk 63413) [x86_64-linux]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
This code causes SEGV, because `print_backtrace` expects second argument to be an array but a string is given.

```ruby
class Exception
  def backtrace
    "backtrace"
  end
end

"".a
```

Also in ruby 2.3.7, 2.4.4, 2.5.1.



-- 
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>

In This Thread

Prev Next