* [ruby-core:120752] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne
@ 2025-01-21 20:53 segiddins (Samuel Giddins) via ruby-core
2025-01-21 21:45 ` [ruby-core:120753] " ufuk (Ufuk Kayserilioglu) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: segiddins (Samuel Giddins) via ruby-core @ 2025-01-21 20:53 UTC (permalink / raw)
To: ruby-core; +Cc: segiddins (Samuel Giddins)
Issue #21085 has been reported by segiddins (Samuel Giddins).
----------------------------------------
Bug #21085: [BUG] Stack consistency error with -ne
https://bugs.ruby-lang.org/issues/21085
* 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:120753] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne
2025-01-21 20:53 [ruby-core:120752] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne segiddins (Samuel Giddins) via ruby-core
@ 2025-01-21 21:45 ` ufuk (Ufuk Kayserilioglu) via ruby-core
2025-01-21 21:49 ` [ruby-core:120754] " segiddins (Samuel Giddins) via ruby-core
2025-01-22 2:13 ` [ruby-core:120758] " alanwu (Alan Wu) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: ufuk (Ufuk Kayserilioglu) via ruby-core @ 2025-01-21 21:45 UTC (permalink / raw)
To: ruby-core; +Cc: ufuk (Ufuk Kayserilioglu)
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:120754] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne
2025-01-21 20:53 [ruby-core:120752] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne 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
2025-01-22 2:13 ` [ruby-core:120758] " alanwu (Alan Wu) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: segiddins (Samuel Giddins) via ruby-core @ 2025-01-21 21:49 UTC (permalink / raw)
To: ruby-core; +Cc: segiddins (Samuel Giddins)
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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ruby-core:120758] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne
2025-01-21 20:53 [ruby-core:120752] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne 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 ` [ruby-core:120754] " segiddins (Samuel Giddins) via ruby-core
@ 2025-01-22 2:13 ` alanwu (Alan Wu) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: alanwu (Alan Wu) via ruby-core @ 2025-01-22 2:13 UTC (permalink / raw)
To: ruby-core; +Cc: alanwu (Alan Wu)
Issue #21085 has been updated by alanwu (Alan Wu).
Assignee set to prism
----------------------------------------
Bug #21085: [BUG] Stack consistency error with -ne
https://bugs.ruby-lang.org/issues/21085#change-111620
* Author: segiddins (Samuel Giddins)
* Status: Open
* Assignee: prism
* 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-01-22 2:13 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-21 20:53 [ruby-core:120752] [Ruby master Bug#21085] [BUG] Stack consistency error with -ne 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 ` [ruby-core:120754] " segiddins (Samuel Giddins) via ruby-core
2025-01-22 2:13 ` [ruby-core:120758] " alanwu (Alan Wu) via ruby-core
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).