* [ruby-core:119201] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
@ 2024-09-15 17:58 x-yuri (Yuri Kanivetsky) via ruby-core
2024-09-15 18:07 ` [ruby-core:119203] " x-yuri (Yuri Kanivetsky) via ruby-core
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: x-yuri (Yuri Kanivetsky) via ruby-core @ 2024-09-15 17:58 UTC (permalink / raw)
To: ruby-core; +Cc: x-yuri (Yuri Kanivetsky)
Issue #20743 has been reported by x-yuri (Yuri Kanivetsky).
----------------------------------------
Bug #20743: ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
https://bugs.ruby-lang.org/issues/20743
* Author: x-yuri (Yuri Kanivetsky)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-09-15T01:06:11Z master 532af89e3b) +PRISM [x86_64-linux-musl]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ docker run --rm alpine:3.20.3 sh -euxc '
apk add git build-base autoconf ruby yaml-dev zlib-dev openssl-dev libffi-dev
git clone https://github.com/ruby/ruby
cd ruby
git checkout 532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2
./autogen.sh
./configure cflags=-DUSE_RUBY_DEBUG_LOG --disable-install-doc
make -j8 install
ruby -v
RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e ""
'
...
+ RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e
RUBY_DEBUG_LOG=stderr [stderr]
RUBY_DEBUG_LOG_FILTER[0]=rb_thread_schedule_limit (all)
RUBY_DEBUG_LOG_FILTER[1]=rb_ractor_thread_switch (all)
...
```
As you can see `ruby` reports that `RUBY_DEBUG_LOG_FILTER[0]` equals `rb_thread_schedule_limit`, not `rb_thread_schedule_limits`.
This happens because here:
https://github.com/ruby/ruby/blob/532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2/debug.c#L353
`1` should not be subtracted.
Also in the following lines `str` is increased, but `len` is not decreased. It makes sense to recheck if there are no further mistakes.
--
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:119203] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
2024-09-15 17:58 [ruby-core:119201] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items x-yuri (Yuri Kanivetsky) via ruby-core
@ 2024-09-15 18:07 ` x-yuri (Yuri Kanivetsky) via ruby-core
2024-11-05 6:45 ` [ruby-core:119718] " ko1 (Koichi Sasada) via ruby-core
2025-01-28 0:42 ` [ruby-core:120804] " nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: x-yuri (Yuri Kanivetsky) via ruby-core @ 2024-09-15 18:07 UTC (permalink / raw)
To: ruby-core; +Cc: x-yuri (Yuri Kanivetsky)
Issue #20743 has been updated by x-yuri (Yuri Kanivetsky).
Apparently introduced in the following commit:
https://github.com/ruby/ruby/commit/5a4f997b2e8e819ed40731cd769826112072a9d4#diff-1cae4f3b0e13ea38a331366fa5370f5648b2c37090a19e8fba9b8e921c36f505R369
----------------------------------------
Bug #20743: ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
https://bugs.ruby-lang.org/issues/20743#change-109785
* Author: x-yuri (Yuri Kanivetsky)
* Status: Open
* ruby -v: ruby 3.4.0dev (2024-09-15T01:06:11Z master 532af89e3b) +PRISM [x86_64-linux-musl]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ docker run --rm alpine:3.20.3 sh -euxc '
apk add git build-base autoconf ruby yaml-dev zlib-dev openssl-dev libffi-dev
git clone https://github.com/ruby/ruby
cd ruby
git checkout 532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2
./autogen.sh
./configure cflags=-DUSE_RUBY_DEBUG_LOG --disable-install-doc
make -j8 install
ruby -v
RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e ""
'
...
+ RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e
RUBY_DEBUG_LOG=stderr [stderr]
RUBY_DEBUG_LOG_FILTER[0]=rb_thread_schedule_limit (all)
RUBY_DEBUG_LOG_FILTER[1]=rb_ractor_thread_switch (all)
...
```
As you can see `ruby` reports that `RUBY_DEBUG_LOG_FILTER[0]` equals `rb_thread_schedule_limit`, not `rb_thread_schedule_limits`.
This happens because here:
https://github.com/ruby/ruby/blob/532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2/debug.c#L353
`1` should not be subtracted.
Also in the following lines `str` is increased, but `len` is not decreased. It makes sense to recheck if there are no further mistakes.
--
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:119718] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
2024-09-15 17:58 [ruby-core:119201] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items x-yuri (Yuri Kanivetsky) via ruby-core
2024-09-15 18:07 ` [ruby-core:119203] " x-yuri (Yuri Kanivetsky) via ruby-core
@ 2024-11-05 6:45 ` ko1 (Koichi Sasada) via ruby-core
2025-01-28 0:42 ` [ruby-core:120804] " nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: ko1 (Koichi Sasada) via ruby-core @ 2024-11-05 6:45 UTC (permalink / raw)
To: ruby-core; +Cc: ko1 (Koichi Sasada)
Issue #20743 has been updated by ko1 (Koichi Sasada).
Assignee set to ko1 (Koichi Sasada)
----------------------------------------
Bug #20743: ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
https://bugs.ruby-lang.org/issues/20743#change-110385
* Author: x-yuri (Yuri Kanivetsky)
* Status: Open
* Assignee: ko1 (Koichi Sasada)
* ruby -v: ruby 3.4.0dev (2024-09-15T01:06:11Z master 532af89e3b) +PRISM [x86_64-linux-musl]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ docker run --rm alpine:3.20.3 sh -euxc '
apk add git build-base autoconf ruby yaml-dev zlib-dev openssl-dev libffi-dev
git clone https://github.com/ruby/ruby
cd ruby
git checkout 532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2
./autogen.sh
./configure cflags=-DUSE_RUBY_DEBUG_LOG --disable-install-doc
make -j8 install
ruby -v
RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e ""
'
...
+ RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e
RUBY_DEBUG_LOG=stderr [stderr]
RUBY_DEBUG_LOG_FILTER[0]=rb_thread_schedule_limit (all)
RUBY_DEBUG_LOG_FILTER[1]=rb_ractor_thread_switch (all)
...
```
As you can see `ruby` reports that `RUBY_DEBUG_LOG_FILTER[0]` equals `rb_thread_schedule_limit`, not `rb_thread_schedule_limits`.
This happens because here:
https://github.com/ruby/ruby/blob/532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2/debug.c#L353
`1` should not be subtracted.
Also in the following lines `str` is increased, but `len` is not decreased. It makes sense to recheck if there are no further mistakes.
--
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:120804] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
2024-09-15 17:58 [ruby-core:119201] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items x-yuri (Yuri Kanivetsky) via ruby-core
2024-09-15 18:07 ` [ruby-core:119203] " x-yuri (Yuri Kanivetsky) via ruby-core
2024-11-05 6:45 ` [ruby-core:119718] " ko1 (Koichi Sasada) via ruby-core
@ 2025-01-28 0:42 ` nobu (Nobuyoshi Nakada) via ruby-core
2 siblings, 0 replies; 4+ messages in thread
From: nobu (Nobuyoshi Nakada) via ruby-core @ 2025-01-28 0:42 UTC (permalink / raw)
To: ruby-core; +Cc: nobu (Nobuyoshi Nakada)
Issue #20743 has been updated by nobu (Nobuyoshi Nakada).
https://github.com/ruby/ruby/pull/12642
----------------------------------------
Bug #20743: ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items
https://bugs.ruby-lang.org/issues/20743#change-111671
* Author: x-yuri (Yuri Kanivetsky)
* Status: Assigned
* Assignee: ko1 (Koichi Sasada)
* ruby -v: ruby 3.4.0dev (2024-09-15T01:06:11Z master 532af89e3b) +PRISM [x86_64-linux-musl]
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
$ docker run --rm alpine:3.20.3 sh -euxc '
apk add git build-base autoconf ruby yaml-dev zlib-dev openssl-dev libffi-dev
git clone https://github.com/ruby/ruby
cd ruby
git checkout 532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2
./autogen.sh
./configure cflags=-DUSE_RUBY_DEBUG_LOG --disable-install-doc
make -j8 install
ruby -v
RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e ""
'
...
+ RUBY_DEBUG_LOG=stderr RUBY_DEBUG_LOG_FILTER=rb_thread_schedule_limits,rb_ractor_thread_switch ruby -e
RUBY_DEBUG_LOG=stderr [stderr]
RUBY_DEBUG_LOG_FILTER[0]=rb_thread_schedule_limit (all)
RUBY_DEBUG_LOG_FILTER[1]=rb_ractor_thread_switch (all)
...
```
As you can see `ruby` reports that `RUBY_DEBUG_LOG_FILTER[0]` equals `rb_thread_schedule_limit`, not `rb_thread_schedule_limits`.
This happens because here:
https://github.com/ruby/ruby/blob/532af89e3b5b78dd3a6fe29c6cc64ad1b073afe2/debug.c#L353
`1` should not be subtracted.
Also in the following lines `str` is increased, but `len` is not decreased. It makes sense to recheck if there are no further mistakes.
--
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-28 0:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-09-15 17:58 [ruby-core:119201] [Ruby master Bug#20743] ruby doesn't properly split RUBY_DEBUG_LOG_FILTER into items x-yuri (Yuri Kanivetsky) via ruby-core
2024-09-15 18:07 ` [ruby-core:119203] " x-yuri (Yuri Kanivetsky) via ruby-core
2024-11-05 6:45 ` [ruby-core:119718] " ko1 (Koichi Sasada) via ruby-core
2025-01-28 0:42 ` [ruby-core:120804] " nobu (Nobuyoshi Nakada) 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).