From: "segiddins (Samuel Giddins) via ruby-core" <ruby-core@ml.ruby-lang.org>
To: ruby-core@ml.ruby-lang.org
Cc: "segiddins (Samuel Giddins)" <noreply@ruby-lang.org>
Subject: [ruby-core:120754] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne
Date: Tue, 21 Jan 2025 21:49:41 +0000 (UTC) [thread overview]
Message-ID: <redmine.journal-111616.20250121214940.9519@ruby-lang.org> (raw)
In-Reply-To: <redmine.issue-21085.20250121205303.9519@ruby-lang.org>
Issue #21085 has been updated by segiddins (Samuel Giddins).
Good catch.
```
❯ ruby --dump=insns -vne '' --parser=parse.y
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) [arm64-darwin24]
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,0)>
0000 jump 4 ( 1)
0002 putnil
0003 pop
0004 putself
0005 getglobal :$/
0007 opt_send_without_block <calldata!mid:gets, argc:1, FCALL|ARGS_SIMPLE>
0009 branchif 4
0011 putnil
0012 leave
```
```
❯ ruby --dump=insns -vne '' --parser=prism
ruby 3.4.1 (2024-12-25 revision 48d4efcb85) +PRISM [arm64-darwin24]
== disasm: #<ISeq:<main>@-e:1 (1,0)-(1,0)>
0000 jump 7 ( 1)[Li]
0002 putnil
0003 pop
0004 jump 7
0006 putnil
0007 putself
0008 getglobal :$/
0010 opt_send_without_block <calldata!mid:gets, argc:1, FCALL|ARGS_SIMPLE>
0012 branchif 6
0014 putnil
0015 leave
```
----------------------------------------
Bug #21085: [BUG] Stack consistency error with -ne
https://bugs.ruby-lang.org/issues/21085#change-111616
* 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/
next prev parent reply other threads:[~2025-01-21 21:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-21 20:53 [ruby-core:120752] " segiddins (Samuel Giddins) via ruby-core
2025-01-21 21:45 ` [ruby-core:120753] " ufuk (Ufuk Kayserilioglu) via ruby-core
2025-01-21 21:49 ` segiddins (Samuel Giddins) via ruby-core [this message]
2025-01-22 2:13 ` [ruby-core:120758] " alanwu (Alan Wu) via ruby-core
2025-02-14 5:07 ` [ruby-core:121018] " k0kubun (Takashi Kokubun) via ruby-core
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-111616.20250121214940.9519@ruby-lang.org \
--to=ruby-core@ml.ruby-lang.org \
--cc=noreply@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).