[#114936] [Ruby master Feature#19908] Update to Unicode 15.1 — "nobu (Nobuyoshi Nakada) via ruby-core" <ruby-core@...>

Issue #19908 has been reported by nobu (Nobuyoshi Nakada).

24 messages 2023/10/02

[#115016] [Ruby master Bug#19921] TestYJIT#test_bug_19316 test failure — "vo.x (Vit Ondruch) via ruby-core" <ruby-core@...>

Issue #19921 has been reported by vo.x (Vit Ondruch).

21 messages 2023/10/12

[#115033] [Ruby master Misc#19925] DevMeeting-2023-11-07 — "mame (Yusuke Endoh) via ruby-core" <ruby-core@...>

Issue #19925 has been reported by mame (Yusuke Endoh).

12 messages 2023/10/13

[#115068] [Ruby master Bug#19929] Warnings for `mutex_m`, `drb` and `base64` appears while the gem spec has explicit dependencies — "yahonda (Yasuo Honda) via ruby-core" <ruby-core@...>

Issue #19929 has been reported by yahonda (Yasuo Honda).

8 messages 2023/10/17

[#115071] [Ruby master Misc#19931] to_int is not for implicit conversion? — "Dan0042 (Daniel DeLorme) via ruby-core" <ruby-core@...>

Issue #19931 has been reported by Dan0042 (Daniel DeLorme).

16 messages 2023/10/17

[#115139] [Ruby master Bug#19969] Regression of memory usage with Ruby 3.1 — "hsbt (Hiroshi SHIBATA) via ruby-core" <ruby-core@...>

Issue #19969 has been reported by hsbt (Hiroshi SHIBATA).

8 messages 2023/10/24

[#115165] [Ruby master Bug#19972] Install default/bundled gems into dedicated directories — "vo.x (Vit Ondruch) via ruby-core" <ruby-core@...>

Issue #19972 has been reported by vo.x (Vit Ondruch).

11 messages 2023/10/25

[#115196] [Ruby master Feature#19979] Allow methods to declare that they don't accept a block via `&nil` — "ufuk (Ufuk Kayserilioglu) via ruby-core" <ruby-core@...>

Issue #19979 has been reported by ufuk (Ufuk Kayserilioglu).

21 messages 2023/10/29

[ruby-core:115160] [Ruby master Bug#19970] Eval leaks callcache and callinfo objects on arm32 (linux)

From: "larsin (Lars Ingjer) via ruby-core" <ruby-core@...>
Date: 2023-10-25 05:36:45 UTC
List: ruby-core #115160
Issue #19970 has been updated by larsin (Lars Ingjer).


The issue has also been reproduced on master (ruby 3.3.0dev (2023-10-24 master 60196b4780) [armv7l-linux-eabihf]).

----------------------------------------
Bug #19970: Eval leaks callcache and callinfo objects on arm32 (linux)
https://bugs.ruby-lang.org/issues/19970#change-105069

* Author: larsin (Lars Ingjer)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.2.2 (2023-03-30 revision e51014f9c0) [armv7l-linux-eabihf]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
The following script demonstrates a memory leak on arm 32 (linux):
``` ruby
def gcdiff(n)
  GC.start
  if @last_gc_stat
     puts "GC.stat #{n} diff old_objects: #{GC.stat(:old_objects) - @last_gc_stat}"
  end
  
  @last_gc_stat = GC.stat(:old_objects)
end

def foo
end

10.times do |i|
  10_000.times do
    eval 'foo'
  end

  gcdiff(i)
  puts "Number of live objects: #{GC.stat(:heap_live_slots)}"
  puts "Memory usage: #{`ps -o rss= -p #{$$}`}"
  puts
end
```

Output:
```
Number of live objects: 41303
Memory usage: 11900

GC.stat 1 diff old_objects: 20037
Number of live objects: 61317
Memory usage: 13604

GC.stat 2 diff old_objects: 20001
Number of live objects: 81317
Memory usage: 14880

GC.stat 3 diff old_objects: 20000
Number of live objects: 101317
Memory usage: 16596

GC.stat 4 diff old_objects: 20000
Number of live objects: 121317
Memory usage: 17248

GC.stat 5 diff old_objects: 20000
Number of live objects: 141317
Memory usage: 18760

GC.stat 6 diff old_objects: 20000
Number of live objects: 161317
Memory usage: 19540

GC.stat 7 diff old_objects: 20000
Number of live objects: 181317
Memory usage: 21752

GC.stat 8 diff old_objects: 20000
Number of live objects: 201317
Memory usage: 21828

GC.stat 9 diff old_objects: 20000
Number of live objects: 221317
Memory usage: 24896
```

ObjectSpace.count_imemo_objects shows that imemo_callcache and imemo_callinfo are leaking.

The issue does not occur on arm64 mac or x86_64 linux with the same ruby version.
The issue has also been reproduced with the latest 3.2.2 snapshot (2023-09-30).



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

In This Thread