From: luke.gru@... Date: 2019-06-23T19:25:38+00:00 Subject: [ruby-core:93325] [Ruby trunk Bug#15953] Wrong heap size given to ruby_sized_xfree when freeing shared root arrays Issue #15953 has been reported by luke-gru (Luke Gruber). ---------------------------------------- Bug #15953: Wrong heap size given to ruby_sized_xfree when freeing shared root arrays https://bugs.ruby-lang.org/issues/15953 * Author: luke-gru (Luke Gruber) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.4: UNKNOWN, 2.5: UNKNOWN, 2.6: UNKNOWN ---------------------------------------- In `ary_heap_free`, the macro `ARY_HEAP_CAPA` is used to pass on to `rb_sized_xfree`. However, `ARY_HEAP_CAPA` uses the `aux.capa` field, which is actually the number of shared strings that are using the root array, if a shared root is getting freed. The actually capa is `RARRAY_LEN(ary)`. I'll add a PR to fix this. Thanks, -- https://bugs.ruby-lang.org/ Unsubscribe: