Project

General

Profile

Activity

From 11/26/2022 to 12/02/2022

12/02/2022

11:44 PM Bug #19173: syntax_suggest segfaults on syntax error when refinement activated
@schneems This seems to be less about syntax suggest than refinements. @tenderlovemaking already has a PR up that sho... ufuk (Ufuk Kayserilioglu)
10:14 PM Bug #19173: syntax_suggest segfaults on syntax error when refinement activated
Line 25 is the require which seems odd https://github.com/ruby/ruby/blob/85a1c67a6550641e5de96cdbee1713be3f1e8882/lib... schneems (Richard Schneeman)
12:44 PM Bug #19173 (Closed): syntax_suggest segfaults on syntax error when refinement activated
While reporting certain syntax errors (e.g. “Invalid yield”, “Invalid redo”), `syntax_suggest` segfaults when a refin... tomstuart (Tom Stuart)
10:43 PM Feature #18980: `it` as a default block parameter
Or `_$`:
```Ruby
[1, 2, 3].map { puts _$ }
```
```
[1, 2, 3].map { puts _$ }
```
Or even just `$` by itself:
```Ru...
maedi (Maedi Prichard)
09:26 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
I'm not against this feature, but I'm not sure if it has a valid use case.
I like the idea of using break as a sem...
ioquatix (Samuel Williams)
08:57 PM Feature #17325: Adds Fiber#cancel, which forces a Fiber to break/return
This should be closed, in favor of a (TBD) structured concurrency system, built on `Fiber.current.storage` (#19078) a... nevans (Nicholas Evans)
05:44 PM Bug #19174 (Closed): YJIT configure "checking whether rustc works for YJIT... no" in rustc 1.65.0 on x86_64
Applied in changeset commit:git|1015e69d37b8e75145a3d21e4bd54fa538d1fa68.
----------
YJIT: echo "\n" is not portable...
alanwu (Alan Wu)
04:33 PM Bug #19174: YJIT configure "checking whether rustc works for YJIT... no" in rustc 1.65.0 on x86_64
That check is intended for automatically enabling YJIT when we can find a suitable rustc.
When we get --enable-yjit ...
alanwu (Alan Wu)
02:45 PM Bug #19174 (Closed): YJIT configure "checking whether rustc works for YJIT... no" in rustc 1.65.0 on x86_64
On the latest master branch `11871e49c4fe493d6b958046969bc863f7fb6627` on Fedora 36,
```
$ uname -m
x86_64
$ ...
jaruga (Jun Aruga)
05:05 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
Thanks for the discussion and the name suggestion. I updated the PR https://github.com/ruby/ruby/pull/6766 to use `Da... ufuk (Ufuk Kayserilioglu)
03:13 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
Discussed at the dev meeting.
Regarding method names, @matz likes `Data#update`. However, @ko1 objects because "up...
mame (Yusuke Endoh)
02:54 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
RubyBugs (A Nonymous) wrote in #note-21:
> How is this?
Thanks for the update.
Now I have a question. Do you r...
mame (Yusuke Endoh)
04:58 PM Bug #19175 (Closed): Ripper does not recognize some pattern matching defining local variable
Ripepr does not recognize hshptn and aryptn splat defining local variables.
~~~ruby
Ripper.sexp('a in [*x]; x')
# ...
tompng (tomoya ishida)
04:23 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
@Dan0042 (Daniel DeLorme) wrote in #note-21:
> What about when we want per-ractor storage... a fourth type?
FWIW,...
nevans (Nicholas Evans)
03:00 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
I'm also a bit late to this. While I do have some nitpicks, I'll leave them for another ticket (if I ever get around... nevans (Nicholas Evans)
09:34 AM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
I made a compatibility shim for older Rubies. It's not 100% perfect, but it's close enough to be useful.
https://g...
ioquatix (Samuel Williams)
12:56 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
I hope I summarized it correctly: https://gitlab.com/gitlab-org/ruby/gems/prometheus-client-mmap/-/issues/39
I'm n...
mk (Matthias Käppler)
12:32 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Thanks for sharing this; I still don't think this is related to the memory map going away. Not exclusively anyway. My... mk (Matthias Käppler)
11:31 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
And to confirm, `FastMmappedFile` does unmap when it's GCed too:
```ruby
static void mm_free(mm_ipc *i_mm) {
...
byroot (Jean Boussier)
11:26 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Here's the repro:
```ruby
require 'prometheus'
require 'prometheus/client'
File.write("/tmp/mmap.txt", "a" * ...
byroot (Jean Boussier)
11:13 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
> calls into new_str0, which when the string is large enough, will be malloc'ed by MRI, correct?
No. It calls `rb...
byroot (Jean Boussier)
09:54 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
@byroot I wonder if you could help me understand the underlying issue better. I found a minimal, executable test case... mk (Matthias Käppler)
11:51 AM Bug #19012: BasicSocket#recv* methods return an empty packet instead of nil on closed connections
Apparently we can get this via `getsockopt(fd, SOL_SOCKET, SO_TYPE, &type, &length);`, the question being how portabl... byroot (Jean Boussier)
11:46 AM Bug #19012: BasicSocket#recv* methods return an empty packet instead of nil on closed connections
> I am not sure if there is a portable way to determine if the file descriptor behind an IO object is stream or data... byroot (Jean Boussier)
02:15 AM Bug #19012: BasicSocket#recv* methods return an empty packet instead of nil on closed connections
This is what @akr said at the dev meeting. (My understanding)
> The proposed behavior might be possible for stream...
mame (Yusuke Endoh)
09:14 AM Bug #19172 (Open): `ruby_thread_has_gvl_p` is innacurate sometimes -- document or change?
Howdy 👋! I work for Datadog [on the ddtrace gem](https://github.com/DataDog/dd-trace-rb) and I found a... sharp edge ... ivoanjo (Ivo Anjo)
08:54 AM Feature #6047 (Closed): read_all: Grow buffer exponentially in generic case
Applied in changeset commit:git|7390eb43fe1bfb069af80ba8f73f7dc4999df0fd.
----------
io.c (read_all): grow the buffe...
Anonymous
08:24 AM Bug #19169: Kernel#freeze doesn't propagate to singleton class when the singleton class has prepended modules
I ran it against older rubies, and it seems like it has been behaving like this since `prepend` was introduced.
It...
byroot (Jean Boussier)
07:59 AM Feature #19171 (Closed): Update Unicode data to Unicode Version 15.1
According to http://blog.unicode.org/2022/11/the-unicode-standard-2023-release.html, Unicode plans to release Version... duerst (Martin Dürst)
03:16 AM Misc #19170 (Closed): DevMeeting-2022-12-15
# The next dev meeting
**Date: 2022/12/15 13:00-17:00** (JST)
Log: https://github.com/ruby/dev-meeting-log/blob/m...
mame (Yusuke Endoh)
03:16 AM Misc #19074 (Closed): DevMeeting-2022-12-01 (postponed from 11-17)
mame (Yusuke Endoh)
02:33 AM Feature #19117: Include the method owner in backtraces, not just the method name
Discussed at the dev meeting. @matz was basically positive for this proposal. But there is still much to discuss and ... mame (Yusuke Endoh)

12/01/2022

11:46 PM Bug #19169 (Closed): Kernel#freeze doesn't propagate to singleton class when the singleton class has prepended modules
```ruby
a = []
singleton = a.singleton_class
a.freeze
p singleton.frozen? # => true
a = []
singleton = a.sing...
alanwu (Alan Wu)
10:43 PM Bug #19166 (Closed): Module#remove_method can change frozen modules when there is a prepended module
Applied in changeset commit:git|3d272b0fc822f5c2e9c716377b7fcecf15426b27.
----------
Module#remove_method: Check fro...
Anonymous
04:56 PM Bug #19166 (Closed): Module#remove_method can change frozen modules when there is a prepended module
```ruby
module A
prepend Module.new # remove this line and you'd get FrozenError as expected
def foo; end
f...
alanwu (Alan Wu)
10:43 PM Bug #19164 (Closed): [3.2.0dev] Freezing an object can prevent removing methods on its class
Applied in changeset commit:git|3d272b0fc822f5c2e9c716377b7fcecf15426b27.
----------
Module#remove_method: Check fro...
Anonymous
08:09 AM Bug #19164 (Closed): [3.2.0dev] Freezing an object can prevent removing methods on its class
The following snippet showcase the bug. It passes on 3.1 and older, but fails on 3.2.0
```ruby
klass = Class.new
...
byroot (Jean Boussier)
10:06 PM Bug #19165: Method (with no param) delegation with *, **, and ... is slow
How many allocations is it with `...` when not using forwardable but just delegation with `(...)`? I'd think 1 Array ... Eregon (Benoit Daloze)
08:55 AM Bug #19165: Method (with no param) delegation with *, **, and ... is slow
FYI for confirming "five Array objects and two Hash objects" that I wrote above, I used ko1's allocation_tracer as fo... matsuda (Akira Matsuda)
08:49 AM Bug #19165 (Open): Method (with no param) delegation with *, **, and ... is slow
I found that method delegation via Forwardable is much slower than normal method call when delegating a method that d... matsuda (Akira Matsuda)
10:03 PM Bug #19168 (Closed): "such file" is bad grammar
The error message for a missing required file has bad grammar:
$ irb
irb(main):001:0> require 'wuxx'
<interna...
masterleep2 (Bill Lipa)
06:10 PM Bug #19167 (Closed): Object#inspect does not correctly show NilClass TrueClass and FalseClass stored in instance variables

~~~ruby
Object.new.instance_eval do
@a = nil
@b = NilClass
@c = true
@d = TrueClass
@e = [nil, NilC...
tompng (tomoya ishida)
05:55 PM Bug #19145: TestException#test_exception_in_message timeouts
Thx for the fix. With commit:git|0436f1e15a, I don't observe the timeout anymore. vo.x (Vit Ondruch)
05:51 PM Bug #19147: `TestFileExhaustive#test_expand_path_for_existent_username` and `TestDir#test_home` fails on i686
Interestingly, testing with commit:git|0436f1e15a, there are now additional spec failures which appears to be the sam... vo.x (Vit Ondruch)
05:19 PM Bug #19079: Modules included in a DelegateClass cannot override delegate methods
This issue occurred for a private module in Rails: https://github.com/rails/rails/pull/46189#discussion_r991440668.
...
jonathanhefner (Jonathan Hefner)
02:57 PM Bug #19079: Modules included in a DelegateClass cannot override delegate methods
you can also try prepend instead of include:
```ruby
WithHelper = DelegateClass(Base) { prepend Helper }
```
Hanmac (Hans Mackowiak)
12:38 PM Bug #19079: Modules included in a DelegateClass cannot override delegate methods
If you want to include a module to a delegated class, try the following:
```ruby
class WithHelper<DelegateClass(B...
matz (Yukihiro Matsumoto)
05:11 AM Bug #19079 (Rejected): Modules included in a DelegateClass cannot override delegate methods
The `DelegateClass` defines an anonymous class and defines forwarding methods to the class. The reported (so-called)... matz (Yukihiro Matsumoto)
04:35 PM Bug #19087 (Closed): String#to_c supports multiple "_"
Applied in changeset commit:git|c0dc717c45fc3abc64a337c3481bc4555b675d87.
----------
[Bug #19087] Disallow successiv...
nobu (Nobuyoshi Nakada)
04:00 PM Feature #19163 (Closed): Data object should be frozen
Applied in changeset commit:git|a14a1a5626a4d8e661a3e606f8f92b8c455b9a04.
----------
[Feature #19163] Data object sh...
nobu (Nobuyoshi Nakada)
09:01 AM Feature #19163: Data object should be frozen
https://github.com/ruby/ruby/pull/6843 nobu (Nobuyoshi Nakada)
08:06 AM Feature #19163 (Closed): Data object should be frozen
If we call `initialize` (via `send`), we can rewrite an existing `Data` object.
```ruby
d=Data.define(:a, :b).new...
matz (Yukihiro Matsumoto)
03:00 PM Bug #19143: Windows - bundled extension gems compile, but don't copy *.so files to lib folder
@nobu
Yes, I agree, it might be very helpful when one has more than one platform installed and uses `--user-instal...
MSP-Greg (Greg L)
06:27 AM Bug #19143: Windows - bundled extension gems compile, but don't copy *.so files to lib folder
It is intended.
`*.so` files are architecture-dependent, which are "tainted" in other words, while `lib` directories...
nobu (Nobuyoshi Nakada)
12:40 PM Bug #19047: DelegateClass displays "method redefined" warning when overriding methods
For example, the example in #19079 does not give warning for overwriting the method `foo`.
Matz.
matz (Yukihiro Matsumoto)
08:52 AM Bug #19047: DelegateClass displays "method redefined" warning when overriding methods
> we missed the warnings from DelegateClass misuse
Do you have a reference to that?
byroot (Jean Boussier)
05:15 AM Bug #19047: DelegateClass displays "method redefined" warning when overriding methods
Sorry, but by this change, we missed the warnings from DelegateClass misuse. We will revert this change.
Matz.
matz (Yukihiro Matsumoto)
10:05 AM Feature #19078 (Closed): Introduce `Fiber#storage` for inheritable fiber-scoped variables.
It was merged. ioquatix (Samuel Williams)
08:44 AM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
Thanks so much for your time and discussion @matz et al. ioquatix (Samuel Williams)
04:59 AM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
This proposal contains 4 features:
(1) fiber[key]/fiber[key]=val - accepted.
(2) fiber.storage => hash - accepted...
matz (Yukihiro Matsumoto)
08:51 AM Feature #19107: Allow trailing comma in method signature
> Is there an actual case where this proposal is convenient?
Yes, when replacing old APIs that took an "option has...
byroot (Jean Boussier)
07:46 AM Feature #19107: Allow trailing comma in method signature
I don't care for consistency here (since formal arguments and actual arguments are different).
I am not sure for con...
matz (Yukihiro Matsumoto)
08:38 AM Bug #19108 (Closed): Format routines like pack blindly treat a string as ASCII-encoded
Applied in changeset commit:git|9869bd1d612b489df806cf95bcb56965a02424e0.
----------
[Bug #19108] Check for the enco...
nobu (Nobuyoshi Nakada)
08:15 AM Bug #19108: Format routines like pack blindly treat a string as ASCII-encoded
Template strings should be ASCII compatible, exceptions otherwise.
Matz.
matz (Yukihiro Matsumoto)
08:33 AM Feature #19036: Provide a way to set path for File instances created with for_fd
LGTM.
Matz.
matz (Yukihiro Matsumoto)
07:34 AM Feature #19036: Provide a way to set path for File instances created with for_fd
Ruby IO is a rich object and has an internal path. It seems reasonable that `IO.new` or `IO.for_fd` can set it. I don... ioquatix (Samuel Williams)
08:25 AM Bug #19150: pack/unpack silently ignores unknown directives
For 3.2 unknown directives always warn; for 3.3 they raise exceptions.
Matz.
matz (Yukihiro Matsumoto)
08:08 AM Bug #19003 (Rejected): TracePoint behavior inconsistency in 3.2.0-preview2
ko1 (Koichi Sasada)
08:08 AM Bug #19003: TracePoint behavior inconsistency in 3.2.0-preview2
Sorry for late.
We left this issue as an implementation details and the current behavior will be shipped with Ruby 3...
ko1 (Koichi Sasada)
08:06 AM Feature #19138 (Closed): `SyntaxError#path` for syntax_suggest
Applied in changeset commit:git|4e68b594314760611d0926c3de70a4cad26802cd.
----------
[Feature #19138] Add `SyntaxErr...
nobu (Nobuyoshi Nakada)
08:05 AM Feature #19138: `SyntaxError#path` for syntax_suggest
Sounds reasonable.
Matz.
matz (Yukihiro Matsumoto)
07:38 AM Feature #18951: Object#with to set and restore attributes around a block
Thank you Matz.
If it's not desired in ruby-core, I can add it to Active Support, that's no problem.
byroot (Jean Boussier)
07:36 AM Feature #18951: Object#with to set and restore attributes around a block
* `with_attr` is better than plain `with`
* this method can be useful for some cases, but I am not sure if it should...
matz (Yukihiro Matsumoto)
06:41 AM Feature #18980: `it` as a default block parameter
How about `_@`? It's your friendly neighborhood local-instance variable. I'm half joking but it is a local variable t... maedi (Maedi Prichard)
05:49 AM Bug #18751: Regression on master for Method#== when comparing public with private method
This should be fixed by #18798 which is accepted.
Matz.
matz (Yukihiro Matsumoto)
05:48 AM Feature #18798: `UnboundMethod#==` with inherited classes
LGTM.
Matz.
matz (Yukihiro Matsumoto)
03:09 AM Feature #13721 (Rejected): [PATCH] net/imap: dedupe attr keys in Net::IMAP::FetchData
Rejected because [Feature #13725] was reverted and not fixed yet.
shugo (Shugo Maeda)
02:13 AM Misc #19162 (Closed): [ANN] Restrict weak ssh public key for git.ruby-lang.org
We continuously migrate our ssh public keys on git.ruby-lang.org from svn and cvs.
I found some of pub keys used w...
hsbt (Hiroshi SHIBATA)

11/30/2022

11:47 PM Bug #19159: ObjectSpace segfaults
Just confirmed the fix. Thank you for the quick fix, @mame ! matsuda (Akira Matsuda)
10:40 PM Bug #19159: ObjectSpace segfaults
I confirmed to work with https://github.com/ruby/ruby/pull/6836 hsbt (Hiroshi SHIBATA)
07:09 PM Bug #19159 (Closed): ObjectSpace segfaults
Applied in changeset commit:git|ab4c7077cc44cd6725625562b7380a44cf462190.
----------
Prevent segfault in String#scan...
mame (Yusuke Endoh)
04:36 PM Bug #19159: ObjectSpace segfaults
https://github.com/ruby/ruby/pull/6836
An incomplete MatchData object was created during `String#scan` (which is c...
mame (Yusuke Endoh)
05:06 AM Bug #19159: ObjectSpace segfaults
`--disable-error_highlight` did not help when I execute it with Ruby 3.2.0dev.
``` ruby
$ rbenv install 3.2.0-dev...
yahonda (Yasuo Honda)
04:53 AM Bug #19159: ObjectSpace segfaults
I could reproduce this. And It resolve with `--disable-error_highlight`. (Thanks for investigating @yahonda )
hsbt (Hiroshi SHIBATA)
07:58 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
For comparison, you can plug in the following example code for a faster implementation of `#with` and it should work ... RubyBugs (A Nonymous)
07:52 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
mame (Yusuke Endoh) wrote in #note-17:
> @RubyBugs Please check my comment https://bugs.ruby-lang.org/issues/19000#no...
RubyBugs (A Nonymous)
03:20 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
p8 (Petrik de Heus) wrote in #note-18:
> If `dup` is chosen would it make sense to always allow `dup` methods to tak...
Dan0042 (Daniel DeLorme)
03:13 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
p8 (Petrik de Heus) wrote in #note-18:
> If `dup` is chosen would it make sense to always allow `dup` methods to tak...
Eregon (Benoit Daloze)
06:28 PM Bug #19158: Ruby 3.1.3 installs wrong gemspec for debug gem
Hi again @nagachika.
I was double checking this, because I thought you probably meant "master branch of Ruby" and ...
deivid (David Rodríguez)
08:33 AM Bug #19158: Ruby 3.1.3 installs wrong gemspec for debug gem
Just to clarify, the current master branch of Bundler is indeed not affected by this issue, but that's just "luck". I... deivid (David Rodríguez)
01:46 AM Bug #19158: Ruby 3.1.3 installs wrong gemspec for debug gem
Hello,
Thank you for the report.
nobu told me that the current master branch doesn't have the issue.
I will lookin...
nagachika (Tomoyuki Chikanaga)
06:21 PM Bug #18899: Inconsistent argument handling in IO#set_encoding
Naively, I would have expected "binary:utf-8" to take arbitrary input and force the encoding to UTF-8, and "utf-8:utf... Dan0042 (Daniel DeLorme)
05:55 PM Feature #19099: Support `private_constant` for an undefined constant
Another idea:
`private_constant X: expr`
equivalent to
`const_set :X, expr` + `private_constant :X`
Or just use clas...
Dan0042 (Daniel DeLorme)
05:17 PM Bug #19161: Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
Thanks everyone,
I can confirm that adding `cflags="-std=gnu99"` to the configure step worked around my issue. Re-...
werebus (Matt Moretti)
08:43 AM Bug #19161: Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
I investigated why our CI server for CentOS 7 could not find this problem. In short, this problem only occurs on tarb... mame (Yusuke Endoh)
07:52 AM Bug #19161 (Closed): Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
I could reproduce on CentOS 7 and confirmed to fix nobu's patch. hsbt (Hiroshi SHIBATA)
02:18 AM Bug #19161 (Feedback): Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
Could you try this?
```diff
diff --git i/configure.ac w/configure.ac
index fcae66f775e..c933ed8b91f 100644
--- ...
nobu (Nobuyoshi Nakada)
05:11 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
Maybe I'm too late here, but I have some thoughts/concerns about this.
First I should say I totally agree with the g...
Dan0042 (Daniel DeLorme)
02:30 PM Bug #19147: `TestFileExhaustive#test_expand_path_for_existent_username` and `TestDir#test_home` fails on i686
Yes, I was about to report this, however Vít was ahead of me 👍
At least 3.2.0preview3 ( commit:git|28611be6ee84ba8...
mtasaka (Mamoru TASAKA)
01:39 PM Bug #18779: `GC.compact` and other compaction related methods should be defined as rb_f_notimplement on non supported platforms.
If it helps, this [1] is the patch we are carrying around in Fedora for Ruby 3.1. I would appreciate if is backported... vo.x (Vit Ondruch)
10:31 AM Feature #17134 (Open): Add resolv_timeout to TCPSocket
hsbt (Hiroshi SHIBATA)
08:32 AM Feature #17134 (Closed): Add resolv_timeout to TCPSocket
Applied in changeset commit:git|c8bfbbc25e4bc7c3ff59fae40471923a2793ba48.
----------
Removed documentation for incom...
hsbt (Hiroshi SHIBATA)
09:54 AM Misc #18976: [ANN] blade.nagaokaut.ac.jp is down
I'm considering to migrate blade with the following plan:
* I'll build the simple txt archives like `https://blade.r...
hsbt (Hiroshi SHIBATA)
07:19 AM Feature #13221 (Closed): [PATCH] gems/bundled_gems: add "curses" RubyGem
There is no plan to add curses as the bundled gems now. I'll close this. hsbt (Hiroshi SHIBATA)
03:08 AM Feature #19090: Do not duplicate an unescaped string in CGI.escapeHTML
Thank you for the explanation, that's very good arguments and they address my concerns. Eregon (Benoit Daloze)

11/29/2022

09:56 PM Feature #19078: Introduce `Fiber#storage` for inheritable fiber-scoped variables.
marcotc (Marco Costa) wrote in #note-14:
> > > Regarding threads I think we shouldn't inherit automatically in new t...
ivoanjo (Ivo Anjo)
08:30 PM Bug #19161 (Feedback): Cannot compile 3.0.5 or 3.1.3 on Red Hat Enterprise Linux 7
When attempting to run `make` on either the 3.0.5 or 3.1.3 release, I get the following error (I included the whole o... werebus (Matt Moretti)
07:06 PM Bug #19160 (Closed): cmp_clamp arguments
If clamp receives min higher than max, it will raise an exception. The message says *min argument must be smaller tha... kaiquekandykoga (Kaíque Koga)
05:29 PM Misc #19030: [ANN] Migrate lists.ruby-lang.org to Google Groups
The emails are now containing too much empty lines. It already starts with the Redmine header which looks like:
~~...
vo.x (Vit Ondruch)
12:02 AM Misc #19030 (Closed): [ANN] Migrate lists.ruby-lang.org to Google Groups
The issue of discourse mirror for ruby-talk is resolved. https://rubytalk.org/t/i-sent-this-to-the-list-but-got-this-... hsbt (Hiroshi SHIBATA)
04:44 PM Feature #18996: Proposal: Introduce new APIs to reline for changing dialog UI colours
hsbt (Hiroshi SHIBATA) wrote in #note-10:
>
> ```ruby
> Reline.completion_colors = {
> foreground: :white,
> ...
st0012 (Stan Lo)
03:29 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Thank you, this helps a lot! I will test the patch you suggest and see if that addresses the immediate problem.
If...
mk (Matthias Käppler)
03:14 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Sorry, I meant:
```c
rb_ivar_set(ret, rb_intern("mmap"), obj);
```
byroot (Jean Boussier)
03:13 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
byroot (Jean Boussier) wrote in #note-15:
> It's even worse than using `str_new_static`, it's creating a regular s...
mk (Matthias Käppler)
03:12 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
I can't be bothered to create an account to submit a PR, but I suspect the following diff should fix your bug:
```...
byroot (Jean Boussier)
03:06 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Ok, I found the function that cause this bug:
```c
static VALUE mm_str(VALUE obj, int modify) {
mm_ipc *i_mm...
byroot (Jean Boussier)
03:03 PM Bug #19156 (Third Party's Issue): ObjectSpace.dump_all segfault during string inspection
> It indeed does sound like it is not strictly a bug with MRI
I'll mark the ticket as 3rd party issue. I'd suggest...
byroot (Jean Boussier)
03:00 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
I'm not sure this makes sense but: we know the address being referenced is somewhere (half-way) into a memory region ... mk (Matthias Käppler)
02:37 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
It looks like I can't do anything useful with that address:
```
(gdb) p *0x7fced23f4000
Cannot access memory at ...
mk (Matthias Käppler)
02:21 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
`str_new_static` sets a specific flag on the string:
```c
RBASIC(str)->flags |= STR_NOFREE;
```
So fr...
byroot (Jean Boussier)
02:18 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
byroot (Jean Boussier) wrote in #note-5:
> Also, based on the backtrace I believe that `ObjectSpace.each_object(Stri...
mk (Matthias Käppler)
02:12 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Also, assuming my `str_new_static` theory is correct, you could look at: `grep -IR str_new_static $(bundle show --pat... byroot (Jean Boussier)
02:09 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
> I tried the following, but it segfaults too:
Yeah, if the RString points to an invalid memory region, I think `r...
byroot (Jean Boussier)
02:02 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Oh yeah it's actually telling me it's the same address from the original segfault.
So would we conclude from this ...
mk (Matthias Käppler)
02:00 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
byroot (Jean Boussier) wrote in #note-4:
> Ideally you'd use `gdb` to go on the `dump_object) objspace_dump.c:388` f...
mk (Matthias Käppler)
01:21 PM Bug #19156: ObjectSpace.dump_all segfault during string inspection
Also, based on the backtrace I believe that `ObjectSpace.each_object(String, &:valid_encoding?)` should cause the sam... byroot (Jean Boussier)
11:39 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
> I suspect the heap slot that references the broken string crashes the VM before it even starts writing the object a... byroot (Jean Boussier)
11:10 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
byroot (Jean Boussier) wrote in #note-2:
> Do you have a core dump? It would be interesting to inspect what this stri...
mk (Matthias Käppler)
08:30 AM Bug #19156: ObjectSpace.dump_all segfault during string inspection
> I suspect this is also a problem with MRI master since the code looks unchanged from 3.0.4.
Well, It might not b...
byroot (Jean Boussier)
02:46 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
If `dup` is chosen would it make sense to always allow `dup` methods to take arguments for consistency?
For exampl...
p8 (Petrik de Heus)
04:09 AM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
@RubyBugs Please check my comment https://bugs.ruby-lang.org/issues/19000#note-13 . A wrong motivation example raises... mame (Yusuke Endoh)
01:14 PM Feature #19099: Support `private_constant` for an undefined constant
I wonder if the code below is acceptable:
```ruby
class C
private_constant {
X = ...
}
end
```
H...
okuramasafumi (Masafumi OKURA)
01:10 PM Bug #19159 (Closed): ObjectSpace segfaults
```
$ ruby -e 'p ObjectSpace.each_object.to_a'
```
segfaults on my M1MBP as follows:
```
$ ruby -e 'p Objec...
matsuda (Akira Matsuda)
12:57 PM Bug #19158 (Closed): Ruby 3.1.3 installs wrong gemspec for debug gem
A pristine installation of Ruby 3.1.3 shows an installed `debug-1.6.3.gemspec` file that claims that debug-1.6.3 has ... deivid (David Rodríguez)
09:59 AM Feature #12848 (Rejected): Crazy idea: Allow regex definition for methods (Do not take it seriously please)
Given the feature request I think we can just close it. byroot (Jean Boussier)
02:05 AM Feature #12848 (Open): Crazy idea: Allow regex definition for methods (Do not take it seriously please)
hsbt (Hiroshi SHIBATA)
09:56 AM Feature #6047: read_all: Grow buffer exponentially in generic case
I just tried my hand at this one: https://github.com/ruby/ruby/pull/6829
I think such a change would make sense. N...
byroot (Jean Boussier)
02:08 AM Feature #6047 (Open): read_all: Grow buffer exponentially in generic case
hsbt (Hiroshi SHIBATA)
06:11 AM Bug #19003: TracePoint behavior inconsistency in 3.2.0-preview2
This stays the same in the `preview3`. Are there any chances this will change until release?
Current behavior redu...
hurricup (Alexandr Evstigneev)
02:57 AM Feature #19134: ** is not allowed in def foo(...)
matz (Yukihiro Matsumoto) wrote in #note-2:
> LGTM.
Thank you. I've merged it.
I realized that my fix also ch...
shugo (Shugo Maeda)
02:22 AM Feature #19134 (Closed): ** is not allowed in def foo(...)
Applied in changeset commit:git|4fc668a4f3b9b67cc7566096ab55cab34c67c158.
----------
Allow ** in def foo(...)
[Feat...
shugo (Shugo Maeda)
02:06 AM Misc #10791 (Open): [PATCH 1/1] Remove unnecessary passing value from doc for Observable
hsbt (Hiroshi SHIBATA)
02:05 AM Misc #12911 (Open): Translate docs
hsbt (Hiroshi SHIBATA)
02:04 AM Feature #15047 (Open): Documentation and more functions for Hash functions in C API
hsbt (Hiroshi SHIBATA)
01:04 AM Bug #18657 (Closed): IRB raises exception when stdout is a pipe
This patch has been merged at https://github.com/ruby/irb/pull/353 hsbt (Hiroshi SHIBATA)

11/28/2022

11:46 PM Bug #19157 (Open): URI bad component validation can be tricked
`URI::HTTP` checks the validity of the URI components. For example, the path of a URI with authority component must b... straight-shoota (Johannes Müller)
10:39 PM Feature #19134: ** is not allowed in def foo(...)
LGTM.
Matz.
matz (Yukihiro Matsumoto)
08:16 AM Feature #19134: ** is not allowed in def foo(...)
I've created a pull request: https://github.com/ruby/ruby/pull/6818
With this change a test of rbs.gem fails becau...
shugo (Shugo Maeda)
07:15 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
bdewater (Bart de Water) wrote in #note-15:
> I like `dup` as the method name 👍
>
Is there a way we could get m...
RubyBugs (A Nonymous)
05:04 PM Feature #19000: Data: Add "Copy with changes method" [Follow-on to #16122 Data: simple immutable value object]
I like `dup` as the method name 👍
tomstuart (Tom Stuart) wrote in #note-9:
> Perhaps another way of putting this ...
bdewater (Bart de Water)
03:04 PM Misc #19155: documentation of Pathname#join with absolute path
There is a description.
The doc https://docs.ruby-lang.org/ja/latest/class/Pathname.html#I_JOIN says:
```ruby
...
sawa (Tsuyoshi Sawada)
09:35 AM Misc #19155 (Closed): documentation of Pathname#join with absolute path
Pathname#join ignores previous directory name before absolute path
Is this intentional?
```irb
irb(main):002:0...
colorbox (box color)
02:30 PM Bug #19156 (Third Party's Issue): ObjectSpace.dump_all segfault during string inspection
I am working on a feature that would allow our application to capture heap dumps during shutdown for later inspection... mk (Matthias Käppler)
05:36 AM Bug #19153 (Closed): Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot
hsbt (Hiroshi SHIBATA)
04:51 AM Bug #19153: Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot
mame (Yusuke Endoh) wrote in #note-1:
> As I wrote in https://github.com/ruby/cgi/pull/29#issuecomment-1325852303, R...
mame (Yusuke Endoh)
04:45 AM Bug #19153: Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot
FYI: https://github.com/ruby/cgi/pull/29#issuecomment-1328487556
I released [cgi-0.3.6](https://github.com/ruby/cgi/...
hsbt (Hiroshi SHIBATA)
12:51 AM Bug #4040: SystemStackError with Hash[*a] for Large _a_
I submitted a pull request to fix this: https://github.com/ruby/ruby/pull/6816 jeremyevans0 (Jeremy Evans)
12:43 AM Misc #19030: [ANN] Migrate lists.ruby-lang.org to Google Groups
I and @shugo have been migrated all of mailing-lists to google groups and mailmanlists.net.
```
ruby-core -...
hsbt (Hiroshi SHIBATA)

11/27/2022

05:49 AM Feature #19090: Do not duplicate an unescaped string in CGI.escapeHTML
I get what you're saying. My position on this issue is:
* `CGI` is not a good place either unless you're writing a C...
k0kubun (Takashi Kokubun)
04:57 AM Feature #19090: Do not duplicate an unescaped string in CGI.escapeHTML
Right, I forgot CGI is a default gem too.
I think it seems cleaner for other template engines (e.g. haml, slim, etc)...
Eregon (Benoit Daloze)
12:01 AM Bug #19154: Specify require and autoload guarantees in ractors
Besides this particular error, I am wondering about concurrency guarantees in parallel requires to the same file, or ... fxn (Xavier Noria)

11/26/2022

11:52 PM Bug #19154 (Closed): Specify require and autoload guarantees in ractors
Given a file `c.rb`:
```ruby
class C
end
```
the following script:
```ruby
r1 = Ractor.new do
require...
fxn (Xavier Noria)
11:20 PM Bug #18899: Inconsistent argument handling in IO#set_encoding
Please also see #18995 for another example of the intricate implementation behaving unexpectedly. During my own inve... javanthropus (Jeremy Bopp)
12:44 PM Bug #18899: Inconsistent argument handling in IO#set_encoding
I've taken a look in `IO#set_encoding` recently and it's such an unreadable mess, I think nobody would be able to exp... Eregon (Benoit Daloze)
09:58 PM Feature #19090: Do not duplicate an unescaped string in CGI.escapeHTML
I filed a PR for truffleruby https://github.com/ruby/erb/pull/39.
> I think it is important to keep the optimized HT...
k0kubun (Takashi Kokubun)
01:06 PM Feature #19090: Do not duplicate an unescaped string in CGI.escapeHTML
I did not expect `rb_str_dup()` is so costly on CRuby, I guess the allocation is slow and of course CRuby can't escap... Eregon (Benoit Daloze)
09:56 PM Feature #19102: Optimize ERB::Util.html_escape more than CGI.escapeHTML for template engines
Would you mind reviewing https://github.com/ruby/erb/pull/39? I skipped this ticket's change for truffleruby in the PR. k0kubun (Takashi Kokubun)
01:03 PM Feature #19102: Optimize ERB::Util.html_escape more than CGI.escapeHTML for template engines
I think it is unfortunate to add a C extension for ERB for that, ERB was always pure-Ruby and that was nice.
Also th...
Eregon (Benoit Daloze)
05:00 PM Bug #19153: Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot
This issue is discussed at https://github.com/ruby/cgi/pull/29 .
As I wrote in https://github.com/ruby/cgi/pull/29...
mame (Yusuke Endoh)
04:30 PM Bug #19153 (Closed): Since 2.7.7 CGI::Cookie raises ArgumentError when cookie domains is prefixed with a dot
The rspec tests of our Rails app started failing with an ArgumentError after upgrading to 2.7.7. On inspection, the i... cpinto (Celso Pinto)
12:40 PM Feature #19138: `SyntaxError#path` for syntax_suggest
schneems (Richard Schneeman) wrote in #note-6:
> Instead of adding #line though if we could attach the source that w...
Eregon (Benoit Daloze)
12:21 AM Feature #19138: `SyntaxError#path` for syntax_suggest
I love the idea.
Instead of adding #line though if we could attach the source that would be more impactful for syn...
schneems (Richard Schneeman)
06:32 AM Misc #19142: Run test suites against 'install', based on ENV variable?
I think that `test` needs `install` only when "preloadenv" and `--enable-load-relative` can't work.
At least `test-a...
nobu (Nobuyoshi Nakada)
 

Also available in: Atom