Project

General

Profile

Actions

Bug #21011

closed

Constant massign segfaults in parse.y with shareable_constant_value: experimental_everything

Added by tompng (tomoya ishida) 14 days ago. Updated 13 days ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.5.0dev (2025-01-06T01:50:53Z master c8e3d745fa) [x86_64-linux]
[ruby-core:120529]

Description

This code segfaults with parse.y

# shareable_constant_value: experimental_everything
A,=1
$ ruby --parser=parse.y
# shareable_constant_value: experimental_everything
A,=1
-: [BUG] Segmentation fault at 0x0000000000000000
ruby 3.5.0dev (2025-01-06T01:50:53Z master c8e3d745fa) [x86_64-linux]

Updated by nobu (Nobuyoshi Nakada) 13 days ago

Even with prism:

# shareable_constant_value: experimental_everything
A, = ""
p A.frozen? #=> false

This A should be frozen?

Furthermore:

# shareable_constant_value: experimental_everything
A, a = "A", "a"
p A.frozen? #=> false
p a.frozen? #=> false

Should only A be frozen but not a?

Actions #2

Updated by nobu (Nobuyoshi Nakada) 13 days ago

  • Status changed from Open to Closed

Applied in changeset git|b81db531b24a6824bf5b89d8460baed5d5418835.


[Bug #21011] nd_value is NULL in massign

Actions

Also available in: Atom PDF

Like0
Like0Like0