From: "ufuk (Ufuk Kayserilioglu) via ruby-core" Date: 2025-01-21T21:45:54+00:00 Subject: [ruby-core:120753] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne Issue #21085 has been updated by ufuk (Ufuk Kayserilioglu). This succeeds with the `parse.y` parser, so it seems to be a Prism compiler bug: ```shell ��� echo '' | ruby --parser=parse.y -vne '' ruby 3.4.1 (2024-12-25 revision 48d4efcb85) [arm64-darwin23] ��� echo '' | ruby --parser=prism -vne '' ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin23] -e:1: [BUG] Stack consistency error (sp: 7, bp: 6) ... ``` ---------------------------------------- Bug #21085: [BUG] Stack consistency error with -ne https://bugs.ruby-lang.org/issues/21085#change-111615 * Author: segiddins (Samuel Giddins) * Status: Open * ruby -v: ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24] * Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN ---------------------------------------- Running the following crashes for me ``` shell echo '' | ruby -ne '' ``` Attached the diagnostic report as requested ---Files-------------------------------- ruby-2025-01-21-125203.ips (9.83 KB) -- 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/lists/ruby-core.ml.ruby-lang.org/