From: "nobu (Nobuyoshi Nakada)" Date: 2022-10-31T05:56:48+00:00 Subject: [ruby-core:110555] [Ruby master Bug#19095] use-after-poison with shapes Issue #19095 has been reported by nobu (Nobuyoshi Nakada). ---------------------------------------- Bug #19095: use-after-poison with shapes https://bugs.ruby-lang.org/issues/19095 * Author: nobu (Nobuyoshi Nakada) * Status: Open * Priority: Normal * Assignee: tenderlovemaking (Aaron Patterson) * Target version: 3.2 * ruby -v: ruby 3.2.0dev (2022-10-30T14:21:31Z master 7ed10abdd9) [x86_64-darwin21] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Compiling with the clang address sanitizer and the following patch, `make BASERUBY='$(MINIRUBY)' golf_prelude.c` aborts by use-after-poison. I can't make minimum code yet. ```patch diff --git i/template/prelude.c.tmpl w/template/prelude.c.tmpl index 428c9f4d014..7d4c3505d88 100644 --- i/template/prelude.c.tmpl +++ w/template/prelude.c.tmpl @@ -77,7 +77,7 @@ class Prelude result end end -Prelude.new(output, ARGV, vpath).instance_eval do +p(Prelude.new(output, ARGV, vpath)).instance_eval do -%> /* -*-c-*- THIS FILE WAS AUTOGENERATED BY template/prelude.c.tmpl. DO NOT EDIT. ``` ---Files-------------------------------- use-after-poison.txt (5.51 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: