ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:118681] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1)
@ 2024-07-25  7:46 tompng (tomoya ishida) via ruby-core
  2024-07-29 18:29 ` [ruby-core:118721] " tompng (tomoya ishida) via ruby-core
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: tompng (tomoya ishida) via ruby-core @ 2024-07-25  7:46 UTC (permalink / raw)
  To: ruby-core; +Cc: tompng (tomoya ishida)

Issue #20651 has been reported by tompng (tomoya ishida).

----------------------------------------
Bug #20651: `false && (1 in 1)` produces argument stack underflow (-1)
https://bugs.ruby-lang.org/issues/20651

* Author: tompng (tomoya ishida)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
`false && (1 in 1)` and `true || (1 in 1)` produces argument stack underflow since ruby 3.0

~~~
# ruby -v
ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
# ruby -e "false && (1 in 1)"
-- raw disasm--------
   trace: 1
   0000 putobject            false                                       (   1)
   0002 leave                                                            (   1)
 <L004> [sp: 1, unremovable: 1, refcnt: 1]
 <L002> [sp: 1, unremovable: 0, refcnt: 0]
   0003 pop                                                              (   1)
*  0004 pop                                                              (   1)
   0005 putobject            false                                       (   1)
   0007 leave                                                            (   1)
---------------------
-e:1: argument stack underflow (-1)
-e: compile error (SyntaxError)
~~~




-- 
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:118721] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1)
  2024-07-25  7:46 [ruby-core:118681] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1) tompng (tomoya ishida) via ruby-core
@ 2024-07-29 18:29 ` tompng (tomoya ishida) via ruby-core
  2024-08-18  2:19 ` [ruby-core:118870] " nagachika (Tomoyuki Chikanaga) via ruby-core
  2024-09-02  9:57 ` [ruby-core:119007] " k0kubun (Takashi Kokubun) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: tompng (tomoya ishida) via ruby-core @ 2024-07-29 18:29 UTC (permalink / raw)
  To: ruby-core; +Cc: tompng (tomoya ishida)

Issue #20651 has been updated by tompng (tomoya ishida).


https://github.com/ruby/ruby/pull/11267

I think this issue is same as https://bugs.ruby-lang.org/issues/20571
~~~ruby
for _ in (true or 1 in 1)
end
~~~

----------------------------------------
Bug #20651: `false && (1 in 1)` produces argument stack underflow (-1)
https://bugs.ruby-lang.org/issues/20651#change-109256

* Author: tompng (tomoya ishida)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
`false && (1 in 1)` and `true || (1 in 1)` produces argument stack underflow since ruby 3.0

~~~
# ruby -v
ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
# ruby -e "false && (1 in 1)"
-- raw disasm--------
   trace: 1
   0000 putobject            false                                       (   1)
   0002 leave                                                            (   1)
 <L004> [sp: 1, unremovable: 1, refcnt: 1]
 <L002> [sp: 1, unremovable: 0, refcnt: 0]
   0003 pop                                                              (   1)
*  0004 pop                                                              (   1)
   0005 putobject            false                                       (   1)
   0007 leave                                                            (   1)
---------------------
-e:1: argument stack underflow (-1)
-e: compile error (SyntaxError)
~~~




-- 
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:118870] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1)
  2024-07-25  7:46 [ruby-core:118681] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1) tompng (tomoya ishida) via ruby-core
  2024-07-29 18:29 ` [ruby-core:118721] " tompng (tomoya ishida) via ruby-core
@ 2024-08-18  2:19 ` nagachika (Tomoyuki Chikanaga) via ruby-core
  2024-09-02  9:57 ` [ruby-core:119007] " k0kubun (Takashi Kokubun) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: nagachika (Tomoyuki Chikanaga) via ruby-core @ 2024-08-18  2:19 UTC (permalink / raw)
  To: ruby-core; +Cc: nagachika (Tomoyuki Chikanaga)

Issue #20651 has been updated by nagachika (Tomoyuki Chikanaga).

Backport changed from 3.1: REQUIRED, 3.2: REQUIRED, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED

ruby_3_2 commit:50399eebd96c76ce808ea4d84fe39693f585a531 merged revision(s) commit:1870505f478cc75993b296b7144a45137ace6937.

----------------------------------------
Bug #20651: `false && (1 in 1)` produces argument stack underflow (-1)
https://bugs.ruby-lang.org/issues/20651#change-109442

* Author: tompng (tomoya ishida)
* Status: Closed
* ruby -v: ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
* Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED
----------------------------------------
`false && (1 in 1)` and `true || (1 in 1)` produces argument stack underflow since ruby 3.0

~~~
# ruby -v
ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
# ruby -e "false && (1 in 1)"
-- raw disasm--------
   trace: 1
   0000 putobject            false                                       (   1)
   0002 leave                                                            (   1)
 <L004> [sp: 1, unremovable: 1, refcnt: 1]
 <L002> [sp: 1, unremovable: 0, refcnt: 0]
   0003 pop                                                              (   1)
*  0004 pop                                                              (   1)
   0005 putobject            false                                       (   1)
   0007 leave                                                            (   1)
---------------------
-e:1: argument stack underflow (-1)
-e: compile error (SyntaxError)
~~~




-- 
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:119007] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1)
  2024-07-25  7:46 [ruby-core:118681] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1) tompng (tomoya ishida) via ruby-core
  2024-07-29 18:29 ` [ruby-core:118721] " tompng (tomoya ishida) via ruby-core
  2024-08-18  2:19 ` [ruby-core:118870] " nagachika (Tomoyuki Chikanaga) via ruby-core
@ 2024-09-02  9:57 ` k0kubun (Takashi Kokubun) via ruby-core
  2 siblings, 0 replies; 4+ messages in thread
From: k0kubun (Takashi Kokubun) via ruby-core @ 2024-09-02  9:57 UTC (permalink / raw)
  To: ruby-core; +Cc: k0kubun (Takashi Kokubun)

Issue #20651 has been updated by k0kubun (Takashi Kokubun).

Backport changed from 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE

ruby_3_3 commit:6a4e79533b4454392f3afdfa0c4d35b763b68466 merged revision(s) commit:1870505f478cc75993b296b7144a45137ace6937.

----------------------------------------
Bug #20651: `false && (1 in 1)` produces argument stack underflow (-1)
https://bugs.ruby-lang.org/issues/20651#change-109582

* Author: tompng (tomoya ishida)
* Status: Closed
* ruby -v: ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
* Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE
----------------------------------------
`false && (1 in 1)` and `true || (1 in 1)` produces argument stack underflow since ruby 3.0

~~~
# ruby -v
ruby 3.4.0dev (2024-07-24T19:55:04Z master 30eba40f9c) [x86_64-linux]
# ruby -e "false && (1 in 1)"
-- raw disasm--------
   trace: 1
   0000 putobject            false                                       (   1)
   0002 leave                                                            (   1)
 <L004> [sp: 1, unremovable: 1, refcnt: 1]
 <L002> [sp: 1, unremovable: 0, refcnt: 0]
   0003 pop                                                              (   1)
*  0004 pop                                                              (   1)
   0005 putobject            false                                       (   1)
   0007 leave                                                            (   1)
---------------------
-e:1: argument stack underflow (-1)
-e: compile error (SyntaxError)
~~~




-- 
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:[~2024-09-02  9:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-25  7:46 [ruby-core:118681] [Ruby master Bug#20651] `false && (1 in 1)` produces argument stack underflow (-1) tompng (tomoya ishida) via ruby-core
2024-07-29 18:29 ` [ruby-core:118721] " tompng (tomoya ishida) via ruby-core
2024-08-18  2:19 ` [ruby-core:118870] " nagachika (Tomoyuki Chikanaga) via ruby-core
2024-09-02  9:57 ` [ruby-core:119007] " k0kubun (Takashi Kokubun) 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).