Project

General

Profile

Activity

From 06/08/2022 to 06/14/2022

06/14/2022

10:52 PM Bug #18780: Incorrect binding receiver for C API rb_eval_string()
alanwu (Alan Wu) wrote in #note-15:
> I spoke too soon! Flipping the `if` in `demo.rb`:
> ...
Doesn't the change in https://bugs.ruby-lang.org/issues/18487 (raising a kernel error) imply that this doesn't need to be fixed?
Also, tha...
daveola (David Stellar)
09:19 PM Bug #18780 (Open): Incorrect binding receiver for C API rb_eval_string()
> I wrote a reproducer and luckily, it's no
> ...
I spoke too soon! Flipping the `if` in `demo.rb`:
```text
ruby 3.2.0dev (2022-06-14T16:06:06Z master ab10f111c3) [x86_64-darwin21]
[:rbeval_string, :main, :mainl]
"p [:in_main, sel...
alanwu (Alan Wu)
09:12 PM Bug #18780: Incorrect binding receiver for C API rb_eval_string()
Thanks for the bug report. The "binding with mixed information from two
contexts" situation from <https://bugs.ruby-lang.org/issues/18780#note-4>
definitely looks wrong. I wrote a reproducer and luckily, it's no
longer an issue on the...
alanwu (Alan Wu)
08:42 PM Revision 788a5e14 (git): [ruby/fileutils] [DOC] More on cp_r (https://github.com/ruby/fileutils/pull/87)
* More on cp_r
https://github.com/ruby/fileutils/commit/82a2b62578
burdettelamar (Burdette Lamar)
08:26 PM Bug #18829 (Open): GC_COMPACTION_SUPPORTED macro should be set and detected automatically.
Thank you for the ticket. I have [a patch](https://github.com/ruby/ruby/pull/6019) that should fix this issue, please try it out and let me know if it works. peterzhu2118 (Peter Zhu)
07:54 PM Bug #18829 (Closed): GC_COMPACTION_SUPPORTED macro should be set and detected automatically.
Since this problem does not occur in the master branch (due to the increased page size), it seems like the bug has already been fixed/worked around. It seems unlikely we would backport the increased page size to older Ruby versions, and... jeremyevans0 (Jeremy Evans)
10:58 AM Bug #18829 (Closed): GC_COMPACTION_SUPPORTED macro should be set and detected automatically.
After backporting the patch [0] for GC compaction support from https://github.com/ruby/ruby/pull/5934 (for bug https://bugs.ruby-lang.org/issues/18779), I found that there is no mechanism to automatically define the GC_COMPACTION_SUPPORT... jprokop (Jarek Prokop)
08:10 PM Bug #18826: Symbol#to_proc inconsistent, sometimes calls private methods
I agree with the @Eregon 's analysis, and submitted a pull request that makes Symbol#to_proc return a proc that will only call public methods: https://github.com/ruby/ruby/pull/6018 . I'm not happy with the implementation as it copies a... jeremyevans0 (Jeremy Evans)
10:44 AM Bug #18826: Symbol#to_proc inconsistent, sometimes calls private methods
Also worth noting that for performance purposes, `Symbol#to_proc` should be able to be cached globally, i.e., cache the Proc in the/per Symbol instance.
So then the `self` inside that Proc should be a sentinel value (`nil` or the Symbol...
Eregon (Benoit Daloze)
10:06 AM Bug #18826: Symbol#to_proc inconsistent, sometimes calls private methods
I think Symbol#to_proc should behave like `public_send`, i.e., only allows calling public methods.
That makes sense given we don't really have a call-site where we can assess the caller self easily, especially if converted to something ...
Eregon (Benoit Daloze)
12:12 AM Bug #18826: Symbol#to_proc inconsistent, sometimes calls private methods
This appears to be caused by the use of the `VM_FCALL` flag in `vm_call_symbol`. Since `:foo.to_proc` should be treated as `lambda{|t| t.foo}`, not `lambda{|t| t.send(:foo)}`, I agree that this is a bug.
Fixing this for private metho...
jeremyevans0 (Jeremy Evans)
06:17 PM Bug #18808 (Assigned): Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
Thank you both. As long as we have rb_mjit_header.h, I think we can work on it. I'll work on what @michals provided to close this issue. k0kubun (Takashi Kokubun)
05:17 PM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
Line 22951-22953 of `rb_mjit_header.h`:
```c
__attribute__ ((__visibility__("default"))) extern
_Bool
rb_iseq_only_optparam_p(const rb_iseq_t *iseq)
```
Note the newline immediately following `extern`, which is unexpected by th...
xtkoba (Tee KOBAYASHI)
05:11 PM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
```
--- rb_mjit_header.h 2022-06-14 18:58:52.514742594 +0200
+++ rb_mjit_min_header-3.2.0.h 2022-06-14 07:47:37.415389264 +0200
...
@@ -22947,7 +16629,7 @@
((iseq)->body)->param.flags.has_kwrest == 0 &&
...
michals (Michal Suchánek)
04:17 PM Bug #18808 (Feedback): Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
Given that this is not reproduced on RubyCI, I think this report is not actionable until we see an entire rb_mjit_header.h (not rb_mjit_min_header-3.2.0.h) that reproduces this problem. I'll leave this issue until somebody uploads one.
...
k0kubun (Takashi Kokubun)
03:18 PM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
You can, but then the recipient should attach the files here anyway for everybody to be able to debug the issue with them. Do you have a browser to upload them yourself? k0kubun (Takashi Kokubun)
02:52 PM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
Can I email these files to someone directly rather than post them here? npn (John Davis)
08:46 AM Bug #18808 (Assigned): Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
mame (Yusuke Endoh)
08:09 AM Bug #18808 (Open): Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
mame (Yusuke Endoh)
05:58 AM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
```
/tmp/20220614-16633-i2edux.h:16633:1: error: multiple storage classes in declaration specifiers
__attribute__ ((__visibility__("default"))) extern
^
compilation terminated due to -Wfatal-errors.
```
```
_Bool
rb_simple_iseq...
michals (Michal Suchánek)
03:59 AM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
If `__attribute__ ((__visibility__("default")))` did not go with `extern` on a specific platform, then the following C code failed to compile:
```c
__attribute__ ((__visibility__("default"))) extern
int foo(void);
```
FWIW, with...
xtkoba (Tee KOBAYASHI)
05:24 PM Feature #18825: Specialized instruction for "array literal + `.hash`"
mame (Yusuke Endoh) wrote in #note-1:
> Just an idea. Is it possible to introduce a general instruction like `opt_newarray_send` instead of individual `opt_newarray_*` instructions?
It should be possible (IMO). But I guess it means ...
tenderlovemaking (Aaron Patterson)
01:26 AM Feature #18825: Specialized instruction for "array literal + `.hash`"
Just an idea. Is it possible to introduce a general instruction like `opt_newarray_send` instead of individual `opt_newarray_*` instructions? mame (Yusuke Endoh)
04:06 PM Revision ab10f111 (git): * 2022-06-15 [ci skip]
git[bot]
04:05 PM Revision 9357e310 (git): [ruby/psych] Fix libyaml download failure rescue under miniruby
I tried to build Ruby on a system without libyaml today and realized
that my attempt from <https://github.com/ruby/psych/pull/557> doesn't
fix the error in <https://github.com/ruby/psych/issues/552>. I still got
the same `LoadError` from...
alanwu (Alan Wu)
02:23 PM Revision 9f09397b (git): YJIT: On-demand executable memory allocation; faster boot (#5944)
This commit makes YJIT allocate memory for generated code gradually as
needed. Previously, YJIT allocates all the memory it needs on boot in
one go, leading to higher than necessary resident set size (RSS) and
time spent on boot initiali...
alanwu (Alan Wu)
01:52 PM Revision 9b9cc8ad (git): [ruby/fileutils] [DOC] More on paths and lists (https://github.com/ruby/fileutils/pull/86)
* More on paths and lists
https://github.com/ruby/fileutils/commit/c3d92d34f4
burdettelamar (Burdette Lamar)
11:42 AM Bug #18828 (Closed): [Ripper] Anonymous parameter forwarding failures are not checked
Applied in changeset commit:git|1a70973f7557af33bfca6e2edc5cd302937425a4.
----------
ripper: Check if anonymous parameters defined [Bug #18828]
nobu (Nobuyoshi Nakada)
09:34 AM Bug #18828: [Ripper] Anonymous parameter forwarding failures are not checked
https://github.com/ruby/ruby/pull/6016 nobu (Nobuyoshi Nakada)
09:26 AM Bug #18828 (Closed): [Ripper] Anonymous parameter forwarding failures are not checked
#### Anonymous rest parameter
```shell-session
$ ruby -c -e 'def b; c(*); end'
-e:1: no anonymous rest parameter
$ ruby -rripper -e 'p Ripper.new("def b; c(*); end").tap(&:parse).error?'
false
```
#### Anonymous keyword rest p...
nobu (Nobuyoshi Nakada)
11:41 AM Revision 1a70973f (git): ripper: Check if anonymous parameters defined [Bug #18828]
nobu (Nobuyoshi Nakada)
10:40 AM Misc #18803: DevMeeting-2022-06-16
* [Bug #18729] Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private (eregon)
* Please see https://bugs.ruby-lang.org/issues/18435#note-12
* Removing "ZSUPER methods" solves everything: simp...
Eregon (Benoit Daloze)
02:31 AM Misc #18803: DevMeeting-2022-06-16
* [Feature #18159] Integrate functionality of dead_end gem into Ruby (@duerst)
* How about this?
* IMO: We try to add `dead_end` as the default gems before releasing 3.2.0-preview2
hsbt (Hiroshi SHIBATA)
09:45 AM Feature #18749: Strangeness of endless inclusive ranges
@mame san, thanks for letting me know about the discussion.
It looks to me that the discussion you quoted was directed toward letting `1..` be an alias of `1...`, just like https://bugs.ruby-lang.org/issues/18749#note-1 suggests, all ...
sawa (Tsuyoshi Sawada)
07:07 AM Feature #18749 (Rejected): Strangeness of endless inclusive ranges
We were aware of this issue, and we agreed with the current behavior. This thread in Twitter discusses the issue: https://twitter.com/mrkn/status/987509913365594112
Here is a simple English translation:
* ko1: Under `ary = [1, 2, 3]`, ...
mame (Yusuke Endoh)
08:07 AM Bug #8973 (Assigned): Allow to configure archlibdir for multiarch
Okay thanks for your quick answer. @nobu Could you review the patch? mame (Yusuke Endoh)
07:12 AM Bug #8973: Allow to configure archlibdir for multiarch
Although I have not checked what is the situation with the `--with-rubyarchprefix` for a long time. vo.x (Vit Ondruch)
07:10 AM Bug #8973: Allow to configure archlibdir for multiarch
Yes please! We still carry around the patch in Fedora:
https://src.fedoraproject.org/rpms/ruby/blob/rawhide/f/ruby-2.1.0-Enable-configuration-of-archlibdir.patch
vo.x (Vit Ondruch)
06:13 AM Bug #8973 (Feedback): Allow to configure archlibdir for multiarch
@vo.x Do you still want this? I'd like to know if the patch is still need to review mame (Yusuke Endoh)
07:23 AM Feature #18773: deconstruct to receive a range
It would be easier to discuss if you could write a spec of what pattern match will pass what range. I understand as follows by reading your implementation. Right?
* `ary in [1, 2, 3]` will call `ary.deconstruct(3..3)`, which means "th...
mame (Yusuke Endoh)
04:34 AM Feature #18773 (Assigned): deconstruct to receive a range
mame (Yusuke Endoh)
06:36 AM Bug #10855 (Third Party's Issue): [PATCH] Matrix#inverse returns matrix of integers whenever possible
Now the matrix library is a bundled gem, so (if needed) let's continue to discuss it in their bug tracker https://github.com/ruby/matrix. mame (Yusuke Endoh)
03:43 AM Bug #18827: `__ENCODING__` is not set to the source encoding when saving script lines
https://github.com/ruby/ruby/pull/6015 nobu (Nobuyoshi Nakada)
02:33 AM Bug #18827 (Closed): `__ENCODING__` is not set to the source encoding when saving script lines
`__ENCODING__` should respect the encoding of the given source code.
```shell-session
$ ruby -Ke -e 'p __ENCODING__'
#<Encoding:EUC-JP>
```
```ruby
p eval("__ENCODING__".encode("euc-jp")) #=> #<Encoding:EUC-JP>
```
But it is ig...
nobu (Nobuyoshi Nakada)
03:31 AM Feature #18183: make SecureRandom.choose public
> - `Random::Formatter#from_set(set, n = 16)` (or `Random::Formatter#from_set(n = 16, set: …)`)
I like `Random::Formatter#from_set` or `Random::Formatter#from_alphabet` because `from` makes it clear what the purpose of the additional ...
olleicua (Antha Auciello)
03:25 AM Feature #18183: make SecureRandom.choose public
mame (Yusuke Endoh) wrote in #note-13:
> austin (Austin Ziegler) wrote in #note-11:
> ...
I think that `#alphanumeric` might still be the better name as the alphabet could be `[*'ABCDFGHKMNPQRTUVWXYZ'.split(''), *'0'..'9']`. If that’s ...
austin (Austin Ziegler)
02:40 AM Feature #18183: make SecureRandom.choose public
austin (Austin Ziegler) wrote in #note-11:
> One option would be to extend `Random::Formatter#alphanumeric` to have an optional "alphabet":
This approach looks nice to me. If "numeric" sounds a bit weird here, how about introducing `...
mame (Yusuke Endoh)
01:21 AM Revision 048f1422 (git): Add placeholder to let braces match
nobu (Nobuyoshi Nakada)

06/13/2022

08:43 PM Bug #18826 (Closed): Symbol#to_proc inconsistent, sometimes calls private methods
The following usage calls a protected method and prints "hello":
``` ruby
class Test
protected
def referenced_columns
puts "hello"
end
end
Test.new.tap(&:referenced_columns)
```
However, the follow...
bjfish (Brandon Fish)
08:23 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
> AbstractSyntaxTree already has script_lines for the sake of AST.of method. I think it's reasonable to make these lines accessible from SyntaxError too.
That is perfect. Not having to read in a file to get contents makes this much ea...
schneems (Richard Schneeman)
09:16 AM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
@schneems If this proposal was accepted, can you transfer `dead_end` to under the ruby organization? The ruby committer needs to develop the upstream because the change of Ruby interpreter broke the default gems.
It's great to fix it ...
hsbt (Hiroshi SHIBATA)
05:49 PM Misc #18691: An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
nobu (Nobuyoshi Nakada) wrote in #note-1:
> I think you can pass build-time-only flags to `make`:
> ...
I tested. And I see that the `make install` also needs the `ARCH_FLAG` to build some native extension gems.
```
$ make install ...
jaruga (Jun Aruga)
05:36 PM Misc #18691: An option to build Ruby with build only flags not propagated to `rbconfig.rb`.
> > https://github.com/ruby/ruby/pull/5879
> ...
As you know, the PR to add `configure --enable-mkmf-verbose` option above was merged.
jaruga (Jun Aruga)
05:21 PM Feature #18819 (Closed): Moving Strings between size pools
I merged it. tenderlovemaking (Aaron Patterson)
05:11 PM Revision 56cc3e99 (git): Move String RVALUES between pools
And re-embed any strings that can now fit inside the slot they've been
moved to
eightbitraptor (Matt V-H)
04:49 PM Feature #18825 (Rejected): Specialized instruction for "array literal + `.hash`"
Feature #18611 is merged. That feature encourages people to write hash methods like this:
```
def hash
[@a, @b, @c].hash
end
```
I would like to add a specialized instruction for this case `opt_newarray_hash`. It's similar ...
tenderlovemaking (Aaron Patterson)
04:41 PM Feature #18824 (Closed): Drop MinGW support of MJIT
Removed in commit:f8502a26990c652a2c3c1131614230fec446ab25 k0kubun (Takashi Kokubun)
07:07 AM Feature #18824 (Closed): Drop MinGW support of MJIT
## Proposal
Stop supporting MJIT on MinGW from Ruby 3.2
## Motivation
Compilers on MinGW behave weirdly and MinGW-specific C code is sometimes required as a workaround. Despite the high maintenance cost, nobody seems to be using MJI...
k0kubun (Takashi Kokubun)
04:28 PM Revision f8502a26 (git): Drop MinGW support of MJIT (#6012)
[Feature #18824] k0kubun (Takashi Kokubun)
03:39 PM Revision c3ee80ff (git): * 2022-06-14 [ci skip]
git[bot]
03:39 PM Revision 9a381c24 (git): [ruby/fileutils] [DOC] Clarify path arguments (https://github.com/ruby/fileutils/pull/85)
https://github.com/ruby/fileutils/commit/5f9ef9ddc8 burdettelamar (Burdette Lamar)
02:58 PM Bug #18823: _Bool not defined for C++
Thanks for the clarification.
I see that ruby core uses bool pretty consistently, and _Bool is used only in a few places.
Not sure where I copied it from.
michals (Michal Suchánek)
02:12 PM Bug #18823: _Bool not defined for C++
michals (Michal Suchánek) wrote in #note-6:
> include/ruby/internal/stdbool.h defines _Bool, and in most cases just uses bool defined by the runtime.
No. C99 defines "_Bool" as an intrinsic type, and C's stdbool.h defines "bool" as a...
mame (Yusuke Endoh)
01:55 PM Bug #18823: _Bool not defined for C++
include/ruby/internal/stdbool.h defines _Bool, and in most cases just uses bool defined by the runtime.
I have no idea how there would even be _Bool if not defined there.
_Bools is used in bigdecimal and detected in extconf so it's...
michals (Michal Suchánek)
01:39 PM Bug #18823 (Rejected): _Bool not defined for C++
michals (Michal Suchánek) wrote in #note-3:
> I added a _Bool argument as part of other development which prevents ruby from building on older compiler versions and VS - eg. https://github.com/ruby/ruby/commit/6c72653d98c36c2a816bfff4e4...
mame (Yusuke Endoh)
11:06 AM Bug #18823: _Bool not defined for C++
```
generating cxxanyargs-x64-mswin64_140.def
compiling ../../../../src/ext/-test-/cxxanyargs/cxxanyargs.cpp
cxxanyargs.cpp
D:\a\ruby\ruby\src\include\ruby/internal/intern/select/win32.h(213): error C2061: syntax error: identifier '_...
michals (Michal Suchánek)
11:00 AM Bug #18823: _Bool not defined for C++
I added a _Bool argument as part of other development which prevents ruby from building on older compiler versions and VS - eg. https://github.com/ruby/ruby/commit/6c72653d98c36c2a816bfff4e4e9b1c451154a9e michals (Michal Suchánek)
12:02 AM Bug #18823 (Feedback): _Bool not defined for C++
> When a _Bool argument is added to rb_fd_select
I cannot understand what do you mean. Could you elaborate how to reproduce your issue and show the error log?
mame (Yusuke Endoh)
01:46 PM Bug #18816: Ractor segfaulting MacOS 12.4 (aarch64 / M1 processor)
I've tried to reproduce the problem in a container running from the M1 mac as host, but it seems the issue is mac-specific, as I couldn't make it SEGV.
```
Linux ac9a228ca7ac 5.15.40-0-virt #1-Alpine SMP Wed, 18 May 2022 08:12:19 +00...
brodock (Gabriel Mazetto)
12:11 PM Revision 753da6de (git): [ruby/fileutils] [DOC] Enhanced Rdoc (https://github.com/ruby/fileutils/pull/84)
Treats:
::chown_R
::touch
::commands
::options
::have_option?
::options_of
::collect_method
https://github.com/ruby/fileutils/commit/5df0324f52
burdettelamar (Burdette Lamar)
10:33 AM Revision b1397e96 (git): [ruby/reline] Revert "Merge pull request #441 from nevans/workaround-linker-script-so"
This reverts commit https://github.com/ruby/reline/commit/4ccf128ffa18, reversing
changes made to https://github.com/ruby/reline/commit/a2651419e9a0.
https://github.com/ruby/reline/commit/51053138a4
st0012 (Stan Lo)
10:12 AM Revision a80f5c53 (git): Enable "make annocheck" on platforms other than Linux.
The annocheck supports ELF format binaries compiled for any OS and for any
architecture. It can work in not only Linux but also FreeBSD and Solaris.
It is designed to be independent of the host OS and the architecture.
Even in Mac, as t...
Jun Aruga
06:22 AM Revision b2e58b02 (git): compile.c (add_adjust_info): Remove `insns_info_index > 0`
... because insns_info_index could not be zero here. Also it adds an
invariant check for that.
This change will prevent the following warning of GCC 12.1
http://rubyci.s3.amazonaws.com/arch/ruby-master/log/20220613T000004Z.log.html.gz
...
mame (Yusuke Endoh)
06:18 AM Revision 5060c9d8 (git): cont.c: prevent a warning of GCC 12.1
... by assigning a dummy value to the allocated stack.
http://rubyci.s3.amazonaws.com/arch/ruby-master/log/20220613T000004Z.log.html.gz
```
cont.c: In function ‘cont_restore_0.constprop’:
cont.c:1489:28: warning: ‘*sp’ may be used unini...
mame (Yusuke Endoh)
04:12 AM Revision 425a4613 (git): Handle case where write result is zero.
Samuel Williams
03:17 AM Revision d9ccb6b3 (git): [ruby/reline] Check the ambiguous char width only on tty
It sent the char to check even to non-tty, e.g., pipe.
This causes `unknown command: "\xE2\x96\xBDstart ` warnings on
ruby's parallel test on Windows, where non-standard FDs cannot be
passed to child processes.
https://github.com/ruby/r...
nobu (Nobuyoshi Nakada)
01:38 AM Revision abc828bc (git): Prevent a "warning: `*' interpreted as argument prefix"
mame (Yusuke Endoh)
01:38 AM Revision 54be0e4f (git): * 2022-06-13 [ci skip]
git[bot]
01:37 AM Revision 670de716 (git): Prevent a warning: assigned but unused variable - out
http://rubyci.s3.amazonaws.com/ubuntu1804/ruby-master/log/20220613T003003Z.log.html.gz
```
/home/chkbuild/chkbuild/tmp/build/20220613T003003Z/ruby/test/ruby/test_yjit_exit_locations.rb:96: warning: assigned but unused variable - out
/hom...
mame (Yusuke Endoh)
01:33 AM Bug #18808 (Feedback): Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
I cannot reproduce the issue with Ubuntu 20.04 on ppc64le. Could you provide config.log? mame (Yusuke Endoh)

06/12/2022

09:49 PM Bug #18823: _Bool not defined for C++
Apparently for MSVC to report the correct c++ version it needs the /Zc:__cplusplus flag.
I don't know where to inject this flag, though.
The other failure cases are probably really obsolete.
michals (Michal Suchánek)
09:33 PM Bug #18823 (Rejected): _Bool not defined for C++
When a _Bool argument is added to rb_fd_select ruby cannot be compiled on
VisualStudio 2022
VisualStudio 2019
gcc-5
gcc-4.8
clang-5
clang-4
clang-3.9
c++98 (llvm 14)
c++2a (llvm 14)
which suggests that `if defined(HAV...
michals (Michal Suchánek)
08:38 PM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
```
diff --git a/tool/transform_mjit_header.rb b/tool/transform_mjit_header.rb
index 8867c556f0..63a072573a 100644
--- a/tool/transform_mjit_header.rb
+++ b/tool/transform_mjit_header.rb
@@ -194,10 +194,10 @@ def self.conflicting_types?(...
michals (Michal Suchánek)
08:30 PM Bug #18808: Cannot compile ruby 3.1.2 on powerpc64le-linux without disabling the jit features
Also a problem on SLE 12
Deleting the `extern` reports the same error on the next line with `__attribute__ ((__visibility__("default"))) extern` which suggests that `extern` does not go with `__attribute__ ((__visibility__("default")))`...
michals (Michal Suchánek)
11:35 AM Bug #18780: Incorrect binding receiver for C API rb_eval_string()
daveola (David Stellar) wrote in #note-11:
> I hear the suggestion and I will just have to switch to using a debugger for my code to work, it's not a conditional, I need the ability to write a different version of eval() for my code, and...
Eregon (Benoit Daloze)
02:06 AM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
schneems (Richard Schneeman) wrote in #note-19:
> One idea: In addition to the `SyntaxError#path`, is it possible to also attach the source code the parser was just looking at maybe an API like `SyntaxError#source_contents`?
`Abstrac...
nobu (Nobuyoshi Nakada)

06/11/2022

07:12 PM Bug #18780: Incorrect binding receiver for C API rb_eval_string()
Eregon (Benoit Daloze) wrote in #note-10:
> I'm reluctant to reply since you seem to ignore my comments as a Ruby implementer.
I'm sorry you feel that way, and I regret posting to the truffleruby discussion by mistake, I lost track o...
daveola (David Stellar)
12:56 PM Bug #18780 (Rejected): Incorrect binding receiver for C API rb_eval_string()
I'm reluctant to reply since you seem to ignore my comments as a Ruby implementer.
Anyway, you are asking for something to get the caller's binding, that is very much on purpose not provided by Ruby.
Such a functionality breaks encapsul...
Eregon (Benoit Daloze)
05:02 PM Revision ee7aca31 (git): * 2022-06-12 [ci skip]
git[bot]
05:02 PM Revision d0bf31e6 (git): [rubygems/rubygems] Don't on gemspecs with invalid `require_paths`, just warn
These gemspecs already work most of the times. When they are installed
normally, the require_paths in the gemspec stub line becomes actually
correct, and the incorrect value in the real gemspec is ignored. It only
becomes an issue in sta...
deivid (David Rodríguez)
12:26 PM Revision 28e27ee7 (git): Fix typo in yjit.c comments [ci skip]
takp (Takayoshi Nishida)
11:17 AM Bug #18767: IO.foreach hangs up when passes limit=0
I agree that the current behaviour completely makes sense.
The point is that there are other IO methods (that read multiple lines) which don't accept 0 as a limit. So it's more a consistency issue.
For instance `IO.readlines` and `IO#e...
andrykonchin (Andrew Konchin)
09:43 AM Revision 7f9eb888 (git): [rubygems/rubygems] Reuse package from the installer for extracting the specification
Previously we would instantiate two different packages and extract the
specification from the package twice for each gem installed. We can
reuse the installer for this so that we just need to do it once.
https://github.com/rubygems/ruby...
deivid (David Rodríguez)
09:43 AM Revision 965c314e (git): [rubygems/rubygems] Move security exception handling to the only place using it
https://github.com/rubygems/rubygems/commit/ba975b3b7f deivid (David Rodríguez)
09:43 AM Revision bf8dc36e (git): [rubygems/rubygems] Swapping should not raise any errors
https://github.com/rubygems/rubygems/commit/600a9ac658 deivid (David Rodríguez)
09:43 AM Revision 6292b365 (git): [rubygems/rubygems] Remove unclear comment
This is the explanation of why we do the swapping, not of why we
download the gem.
https://github.com/rubygems/rubygems/commit/1a25eb7e7b
deivid (David Rodríguez)
09:43 AM Revision 52cc76d1 (git): [rubygems/rubygems] `Gem::Specification.loaded_from` is already set by the installer
https://github.com/rubygems/rubygems/commit/796eebfdbf deivid (David Rodríguez)
09:43 AM Revision 22c97ab8 (git): [rubygems/rubygems] Refactor some more duplicated logic
https://github.com/rubygems/rubygems/commit/9bd389e1b6 deivid (David Rodríguez)
09:43 AM Revision 95f5194b (git): [rubygems/rubygems] Move `no_install` setting check to a more sensible place
It's only related to the `bundle cache` command, so it should be checked
there.
https://github.com/rubygems/rubygems/commit/cf749f8ffa
deivid (David Rodríguez)
09:43 AM Revision 3f69774b (git): [rubygems/rubygems] No need to redownload if package already there
https://github.com/rubygems/rubygems/commit/285ccbc07e deivid (David Rodríguez)
09:43 AM Revision a9077af7 (git): [rubygems/rubygems] No need to overwrite path when there's a remote
https://github.com/rubygems/rubygems/commit/d86fb2c316 deivid (David Rodríguez)
09:43 AM Revision 870e5a39 (git): [rubygems/rubygems] Remove another unnecessary require
https://github.com/rubygems/rubygems/commit/04e6a5ae31 deivid (David Rodríguez)
09:43 AM Revision 692fec4e (git): [rubygems/rubygems] Simplify `Gem::Security::Exception` handling
These days all these errors are raised as `Gem::Security::Exception` so
there's no need to do any matching on the exception message.
https://github.com/rubygems/rubygems/commit/bd3403da57
deivid (David Rodríguez)
09:43 AM Revision 572f3240 (git): [rubygems/rubygems] Remove unnecessary require
The `security_policies` method already requires it.
https://github.com/rubygems/rubygems/commit/d19b088f2f
deivid (David Rodríguez)
09:43 AM Revision 4a758496 (git): [rubygems/rubygems] Remove unnecessary `spec.remote` guard
It's checked before calling the method already.
https://github.com/rubygems/rubygems/commit/4eb00e9586
deivid (David Rodríguez)
09:43 AM Revision d5288c8a (git): [rubygems/rubygems] Refactor ambiguous gems check
https://github.com/rubygems/rubygems/commit/a00c79a4da deivid (David Rodríguez)
05:22 AM Revision 7e1788e1 (git): fix typo in dir documentation (#6002)
Jaeson Lauritzen
05:05 AM Bug #18031 (Closed): Nested TracePoint#enable with define_method target crashes
Applied in changeset commit:git|e75cb61d4645b9833b14a0cc4190cceffc9b6551.
----------
Fix nested bmethod TracePoint and memory leak
df317151a5b4e0c5a30fcc321a9dc6abad63f7ed removed the code to free
rb_hook_list_t, so repeated targeting ...
alanwu (Alan Wu)

06/10/2022

09:48 PM Revision 52da90ac (git): Make method id explicit in rb_exec_recursive_outer
Previously, because opt_aref and opt_aset don't push a frame, when they
would call rb_hash to determine the hash value of the key, the initial
level of recursion would incorrectly use the method id at the top of the
stack instead of "has...
jhawthorn (John Hawthorn)
09:48 PM Revision f4747958 (git): Add mid argument to exec_recursive
jhawthorn (John Hawthorn)
09:41 PM Revision 44b3daa0 (git): [ruby/fileutils] Enhanced RDoc (https://github.com/ruby/fileutils/pull/83)
Treats ::chmod_R and ::chown.
https://github.com/ruby/fileutils/commit/df4ac84bef
burdettelamar (Burdette Lamar)
09:11 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
I 100% agree. I think we should aim to get it into a preview and ideally get another preview release. If people have a strong reaction against it, then we don't need to invest more time. If people see it being helpful then we can work mo... schneems (Richard Schneeman)
09:44 AM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
schneems (Richard Schneeman) wrote in #note-19:
> It's maybe worth asking as well, how confident is Ruby core that this is a feature they want? Basically: I am worried that if I ask you for too many changes or new interfaces and then ...
duerst (Martin Dürst)
08:47 PM Revision fc484be5 (git): Add assertion for embedded to embedded ivar copy
jemmai (Jemma Issroff)
05:52 PM Revision 9ed9cc98 (git): Add tests for a variety of string-subclass operations (#5999)
This way YJIT has to match CRuby for each of them.
Remove unused string_p() Rust function
Noah Gibbs
04:29 PM Revision 46333f59 (git): * 2022-06-11 [ci skip]
git[bot]
04:29 PM Revision e777ac91 (git): Don't return a value from jit_guard_known_klass. We never return anything but true at this point and we don't usually check the returned value. (#6000)
Noah Gibbs
03:46 PM Bug #18768: Inconsistent behavior of IO, StringIO and String each_line methods when return paragraph and chomp: true passed
mame (Yusuke Endoh) wrote in #note-8:
> @jeremyevans0 Thank you for your explanation, I understand. The keyword name "chomp" might be a bit confusing.
I agree, the behavior is not obvious from the name `chomp`. However, it is obviou...
jeremyevans0 (Jeremy Evans)
09:39 AM Bug #18768: Inconsistent behavior of IO, StringIO and String each_line methods when return paragraph and chomp: true passed
@jeremyevans0 Thank you for your explanation, I understand. The keyword name "chomp" might be a bit confusing. mame (Yusuke Endoh)
02:56 PM Revision 1e528e8c (git): small fix on `setup_debug_log()`
* print `ruby_debug_log_mode` at first.
* show filters when `ruby_debug_log_mode` is not "disabled".
ko1 (Koichi Sasada)
02:12 PM Revision c54f4264 (git): Remove duplicated rb_yjit_get_stats (#5997)
`rb_yjit_get_stats` is defined twice in yjit.c, it only needs to be
defined once.
Eileen M. Uchitelle
12:11 PM Feature #11164: Garbage collector in Ruby 2.2 provokes unexpected CoW
That seems to be exactly what https://github.com/ko1/nakayoshi_fork solves anyway. byroot (Jean Boussier)
10:15 AM Feature #11164 (Rejected): Garbage collector in Ruby 2.2 provokes unexpected CoW
This ticket raised GC's efficiency issue. As far as I read, it was not a regression. I consider that this is not a bug, but a suggestion for improvement. I'd like to move this to the Feature tracker, and close it for now because I don't ... mame (Yusuke Endoh)
10:58 AM Bug #18771 (Closed): IO.foreach/.readlines ignores the 4th positional argument
Applied in changeset commit:git|27eb36596a65d6bca44b4420ca6526175bf1b431.
----------
Stop ignoring 4th positional argument to IO.#{foreach,readlines}
Fixes [Bug #18771]
jeremyevans (Jeremy Evans)
09:55 AM Bug #10213 (Feedback): bundled gems ignored by make install
Maybe because of time, I cannot understand what is a problem. What do you mean "ignored"?
A bundled gem has been used for many years as a bare gem that is automatically installed during "make install" (i.e., it can be uninstalled), an...
mame (Yusuke Endoh)
07:33 AM Bug #18801 (Rejected): Dead YARV instructions produced when `branchif` is used
I believe this is not a bug. The current YARV compiler is a product of trial and error, and we know that sometimes it emits dead code (mainly due to peephole optimization). It may be room for improvement, but not a bug. mame (Yusuke Endoh)
07:24 AM Bug #18050 (Closed): Cannot build ruby-2.7.4 on NetBSD
According to the OP, there is the same issue in Ruby 3.0 and the same fix works for Ruby 3.0. Continue to discuss it in #18049. Closing this. mame (Yusuke Endoh)
07:19 AM Bug #17843 (Closed): Ruby on Rails error[BUG] Segmentation fault at 0x0000000000000110 ruby 3.0.1p64 (2021-04-05 revision 0fb782ee38) [x86_64-darwin15] (#42110)
I found two bug reports in other projects that have a similar stack trace:
https://github.com/lastpass/lastpass-cli/issues/170
https://www.mail-archive.com/[email protected]/msg07932.html
Both are on El Capitan. I ...
mame (Yusuke Endoh)
06:31 AM Bug #16277 (Closed): UNIXServer#listen fails with Errno::EADDRINUSE error under Windows 10 / WSL Ubuntu 18.04
I tried the script on Windows 11 / WSL2 Ubuntu 22.04, but couldn't repro the issue. I guess WSL2 solved the issue. Please ping me if it still occurs. mame (Yusuke Endoh)
06:15 AM Bug #10584 (Rejected): String.valid_encoding?, String.ascii_only? fails to account for BOM.
For the third and forth examples, you can use `BOM|UTF-8` encoding.
```
$ ruby -e 'p File.read("utf-8-with-bom-file", encoding: "BOM|UTF-8").ascii_only?'
true
$ ruby -e 'p File.read("utf-8-with-bom-file", encoding: "BOM|UTF-8")[0]'...
mame (Yusuke Endoh)
05:39 AM Bug #9921 (Feedback): gmtime_r, win32.h, and <string>
Does this still reproduce? mame (Yusuke Endoh)
05:23 AM Bug #9431 (Rejected): In windows ruby IO.write returns count of bytes without count of CR character
I believe this is a spec of Windows. Ruby's IO interface is based on C's stdio, and I confirmed that `fwrite("Hello\n", 1, 6, fp)` returns 6 and actually outputs 7 bytes on Windows with cl.exe. mame (Yusuke Endoh)
02:24 AM Feature #16495: Inconsistent quotes in error messages
The more pervasive Markdown becomes, the more annoying this quoting style becomes. ioquatix (Samuel Williams)
01:10 AM Revision e75cb61d (git): Fix nested bmethod TracePoint and memory leak
df317151a5b4e0c5a30fcc321a9dc6abad63f7ed removed the code to free
rb_hook_list_t, so repeated targeting of the same bmethod started
to leak the hook list. You can observe how the maximum memory use
scales with input size in the following...
alanwu (Alan Wu)

06/09/2022

11:17 PM Revision cedc36ec (git): Remove a leftover require
I thought about using it in 2931957d6ff16b5c095f6e8095384c98130133ad
once and then ended up not using it.
k0kubun (Takashi Kokubun)
09:59 PM Revision e69e47f8 (git): Fix exit locations test (#5995)
I originally added the check for
RubyVM::YJIT.trace_exit_locations_enabled? to fix errors when these
tests run without the stats feature enabled. However I forgot that this
will never be true when this test is booting, so nothing was run...
Eileen M. Uchitelle
08:03 PM Revision c2468fd8 (git): [ruby/fileutils] Enhanced RDoc (https://github.com/ruby/fileutils/pull/82)
Treats ::chmod; adds Pathname usage to ::install.
https://github.com/ruby/fileutils/commit/9db4cb129c
burdettelamar (Burdette Lamar)
07:13 PM Feature #18183: make SecureRandom.choose public
In case we really can't agree on the name.
I reimplement the functionality as an independent class on a GitHub's Gist; without using non-public API and the `send` hack, of course.
https://gist.github.com/midnight-wonderer/8fec1c670...
midnight (Sarun R)
06:48 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
Thanks you for the patch. I am not the best to review the C code but I have looked at it. Notably the test seems to indicate that my prior problems of "cannot monkeypatch" have been addressed:
```
e = assert_raise(SyntaxError) ...
schneems (Richard Schneeman)
01:59 PM Feature #18159: Integrate functionality of syntax_suggest gem into Ruby
A draft of `SyntaxError#detailed_message`.
https://github.com/nobu/ruby/tree/syntax_error-detail
nobu (Nobuyoshi Nakada)
06:40 PM Revision adcfd696 (git): [DOC] Fix markup for `String` (#5984)
* Add missing space for `String#start_with?`.
* Add missing pluses for `String#tr` and
`Methods for Converting to New String` label.
* Move quote into the tag for `Whitespace in Strings` label.
Alexander Ilyin
04:59 PM Revision 473ee328 (git): Add ability to trace exit locations in yjit (#5970)
When running with `--yjit-stats` turned on, yjit can inform the user
what the most common exits are. While this is useful information it
doesn't tell you the source location of the code that exited or what the
code that exited looks like...
Eileen M. Uchitelle
04:46 PM Bug #17810 (Closed): addr2line.c: Some symbol names missing in C backtrace with Clang/LLVM
Applied in changeset commit:git|940c8b093de1d903b67b7d80cc33f698a5debf1c.
----------
Skip `NULL` values from `dladdr(3)`
Fixes [Bug #17810]
xtkoba (Tee KOBAYASHI)
04:46 PM Bug #18170 (Closed): Exception#inspect should not include newlines
Applied in changeset commit:git|9d927204e7b86eb00bfd07a060a6383139edf741.
----------
error.c: Let Exception#inspect inspect its message
... only when the message string has a newline.
`p StandardError.new("foo\nbar")` now prints `#<St...
mame (Yusuke Endoh)
03:22 PM Revision 1b5828f9 (git): * 2022-06-10 [ci skip]
git[bot]
03:22 PM Revision 27eb3659 (git): Stop ignoring 4th positional argument to IO.#{foreach,readlines}
Fixes [Bug #18771] jeremyevans (Jeremy Evans)
03:20 PM Bug #18768: Inconsistent behavior of IO, StringIO and String each_line methods when return paragraph and chomp: true passed
mame (Yusuke Endoh) wrote in #note-6:
> I have no strong opinion about this issue and am never against Jeremy's change, but I'm just curious. I thought that `each_line(..., chomp: true) {|s| ... }` was equal to `each_line(...) {|s| s = ...
jeremyevans0 (Jeremy Evans)
10:16 AM Bug #18768: Inconsistent behavior of IO, StringIO and String each_line methods when return paragraph and chomp: true passed
I have no strong opinion about this issue and am never against Jeremy's change, but I'm just curious. I thought that `each_line(..., chomp: true) {|s| ... }` was equal to `each_line(...) {|s| s = s.chomp; ... }`. In the above examples, S... mame (Yusuke Endoh)
02:42 PM Feature #18822: Ruby lack a proper method to percent-encode strings for URIs (RFC 3986)
This looks good to me and I think it's a good addition.
In the past, I've referred to this operation as "URI.encode_path" as it seems specifically related to how paths are created and escaped. However, I'd be interested to know if there...
ioquatix (Samuel Williams)
10:10 AM Feature #18822: Ruby lack a proper method to percent-encode strings for URIs (RFC 3986)
Proposed implementation: https://github.com/ruby/cgi/pull/26 byroot (Jean Boussier)
09:42 AM Feature #18822: Ruby lack a proper method to percent-encode strings for URIs (RFC 3986)
I forgot to mention that we'd need the decode method as well. byroot (Jean Boussier)
09:12 AM Feature #18822 (Closed): Ruby lack a proper method to percent-encode strings for URIs (RFC 3986)
### Context
There are two fairly similar encoding methods that are often confused.
`application/x-www-form-urlencoded` which is how form data is encoded, and "percent-encoding" as defined by [RFC 3986](https://www.rfc-editor.org/r...
byroot (Jean Boussier)
11:43 AM Revision 940c8b09 (git): Skip `NULL` values from `dladdr(3)`
Fixes [Bug #17810] xtkoba (Tee KOBAYASHI)
10:33 AM Bug #18729 (Open): Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
mame (Yusuke Endoh) wrote in #note-17:
> @matz changed his mind: https://bugs.ruby-lang.org/issues/18435#note-11
> ...
I cannot agree that to possibly be spec, I would like @matz to reconsider and this time we just remove "ZSUPER metho...
Eregon (Benoit Daloze)
09:35 AM Bug #18729 (Rejected): Method#owner and UnboundMethod#owner are incorrect after using Module#public/protected/private
mame (Yusuke Endoh) wrote in #note-6:
> @ko1 proposed the following, and @matz approved this at the dev meeting.
> ...
@matz changed his mind: https://bugs.ruby-lang.org/issues/18435#note-11
Now he thinks the behavior of Ruby 3.1 is...
mame (Yusuke Endoh)
10:23 AM Bug #18435: Calling `protected` on ancestor method changes result of `instance_methods(false)`
I believe the only way that makes sense here is to remove "ZSUPER methods" altogether.
Other Ruby implementations do not have this needless complexity and near-impossible-to-understand semantics.
https://bugs.ruby-lang.org/issues/18751...
Eregon (Benoit Daloze)
09:58 AM Revision 4e21b19a (git): [ruby/timeout] Keep a private reference to `Process.clock_gettime`
`timeout 0.3.0` broke our test suite because we have some
tests that stubs `Process.clock_gettime` making it return
a value in the past, causing `Timeout` to trigger almost immediately.
I beleive it wasn't a problem before because it wa...
byroot (Jean Boussier)
09:48 AM Bug #18767 (Rejected): IO.foreach hangs up when passes limit=0
I believe this is not a bug. I don't think the current behavior is very useful, but I don't think it is so problematic either. Considering the following example, the behavior is consistent in a sense.
```
irb(main):001:0> File.writ...
mame (Yusuke Endoh)
09:28 AM Bug #18643 (Closed): test-bundler failed on ruby_3_1 CI
This issue already resolved. znz (Kazuhiro NISHIYAMA)
09:25 AM Bug #18590 (Closed): String#downcase and CAPITAL LETTER I WITH DOT ABOVE
Fixed at commit:bda4d91f0599a8e2d278bc13660a5576d4ced353 mame (Yusuke Endoh)
09:21 AM Revision bda4d91f (git): doc/case_mapping.rdoc: Fix references for case mapping
The chart (https://www.unicode.org/charts/case) that is currently
referred seems to be wrong.
Also, use the "latest" redirect and add titles of the section and table.
[Bug #18590]
mame (Yusuke Endoh)
09:19 AM Bug #18081 (Feedback): addr2line.c: Wrong section for `DW_AT_ranges`
@xtkoba I'm not familiar with DWARF. Could you show a reference to justify your change, for example the section of the DWARF spec that explains the spec change? mame (Yusuke Endoh)
09:14 AM Feature #16597: missing poll()
Is there some change of getting the poll() semantic available in ruby? michals (Michal Suchánek)
09:13 AM Bug #18121 (Feedback): addr2line.c: Endianness
@xtkoba What platform did you use to test your patch? mame (Yusuke Endoh)
09:11 AM Bug #18123 (Feedback): addr2line.c: Define `SHF_COMPRESSED`
@xtkoba Can you give me an example of a specific environment where this would be an actual problem? I can't verify this. mame (Yusuke Endoh)
08:59 AM Bug #17813 (Closed): rb_funcall() may reset the latest socket error unexpectedlly since Ruby 3.0.0
This ticket was created to confirm whether this is a bug of Ruby (https://github.com/ruby/fiddle/issues/72#issuecomment-822253220), and @usa answered that it was not. And the fix in fiddle has been already backported to ruby/ruby commit:... mame (Yusuke Endoh)
08:40 AM Bug #17656: Improper functions shown in C level backtrace information
I could reproduce it with clang 12.
Could you explaiun the rationale of `traces[i] = (void *)(((uintptr_t)traces[i] & (~1)) - 1);`? [The message you referred](http://lists.dwarfstd.org/pipermail/dwarf-discuss-dwarfstd.org/2020-July/00...
mame (Yusuke Endoh)
07:48 AM Bug #17656 (Feedback): Improper functions shown in C level backtrace information
I couldn't reproduce the issue on AWS Graviton2 instance. Could you elaborate how to reproduce the issue?
```
$ uname -a
Linux rubyci-ubuntu2004-arm 5.13.0-1022-aws #24~20.04.1-Ubuntu SMP Thu Apr 7 22:14:11 UTC 2022 aarch64 aarch64 ...
mame (Yusuke Endoh)
07:24 AM Feature #18821: Expose Pattern Matching interfaces in core classes
I'll write a bit more on this later in longer form, but I do believe we have a very interesting and amusingly very Ruby idea hiding in here:
The keys passed to pattern matching's `deconstruct_keys` are representations before they are ...
baweaver (Brandon Weaver)
04:58 AM Feature #18821: Expose Pattern Matching interfaces in core classes
I have opened one PR against CSV: https://github.com/ruby/ruby/pull/5994
I have noted the potential precedent this may set in the PR, and the larger later discussion on whether or not we treat pattern matching keys as `Symbol`s (liter...
baweaver (Brandon Weaver)
03:41 AM Feature #18821: Expose Pattern Matching interfaces in core classes
matz (Yukihiro Matsumoto) wrote in #note-2:
> I agree with part of the proposal. Set and OpenStruct do not have order of elements, so it's not suitable for converting to arrays (ordered collections), where others are OK.
> ...
Understa...
baweaver (Brandon Weaver)
03:30 AM Feature #18821: Expose Pattern Matching interfaces in core classes
I agree with part of the proposal. Set and OpenStruct do not have order of elements, so it's not suitable for converting to arrays (ordered collections), where others are OK.
Matz.
matz (Yukihiro Matsumoto)
06:51 AM Bug #16143 (Feedback): BOM UTF-8 is not removed after rewind
I think this issue can be easily worked around by using `IO#set_encoding_by_bom` which was introduced by #15210.
```
csv = CSV.open('bom_test.csv', 'r:BOM|UTF-8', headers: true)
p csv.shift #=> #<CSV::Row "Name":"John Doe" "City":"...
mame (Yusuke Endoh)
06:12 AM Bug #14607 (Assigned): Fix use of the rb_profile_frames start parameter
I assume that "additional calculation" means the code `if (start > 0) { start--; continue; }`, but the "additional calculation" seems to make no sense at all to me either.
```
for (i=0; i<limit && cfp != end_cfp;) {
if (...
mame (Yusuke Endoh)
05:39 AM Revision 90b240d1 (git): Fix MJIT's ISEQ_BODY macro usage at 5f10bd634fb
k0kubun (Takashi Kokubun)
05:33 AM Bug #14434 (Feedback): IO#reopen fails after EPIPE
I asked @nobu about the current status of this ticket, and he said "the current behavior is definitely a bug, but I am not able to think of a good way to fix it now." I'd like to set this as feedback for a good fix. mame (Yusuke Endoh)
04:19 AM Revision 2931957d (git): MJIT: Ignore existence of .bundle.dSYM on macOS
We could fix it, but removing files in the directory recursively is
tedious in C and --mjit-debug is not a concern for users. We have
TestMJITDebug for detecting linker problems that are ignored by -O. It's
not really for maintaining --m...
k0kubun (Takashi Kokubun)
12:35 AM Revision 67a9845a (git): Fix compile error
```
compiling ../debug.c
../debug.c:452:1: error: conflicting types for 'ruby_debug_log_filter'
ruby_debug_log_filter(const char *func_name, const char *file_name)
^
../vm_debug.h:87:6: note: previous declaration is here
bool ruby_debug_...
znz (Kazuhiro NISHIYAMA)

06/08/2022

08:38 PM Revision 9b7208fc (git): [ruby/fileutils] [DOC] Enhanced RDoc (https://github.com/ruby/fileutils/pull/81)
https://github.com/ruby/fileutils/commit/b9d5a79e38 burdettelamar (Burdette Lamar)
07:23 PM Bug #18820: on aarch64/Android/Termux/Ubuntu jammy server, ALL versions before Ruby 3.1.x don't compile!
the 2.5.x build-failure was due to all warnings being converted to errors, and some screwy casting ( between types ).
it looked to me like the reasons were different for different versions.
libweirdness (Antryg Revok)
05:00 AM Bug #18820 (Closed): on aarch64/Android/Termux/Ubuntu jammy server, ALL versions before Ruby 3.1.x don't compile!
hsbt (Hiroshi SHIBATA)
04:50 AM Bug #18820 (Closed): on aarch64/Android/Termux/Ubuntu jammy server, ALL versions before Ruby 3.1.x don't compile!
btw, this is a frustrating bug-reporting system to report a bug in?
so if I've reported it in the wrong place,
just delete my report.
My learning-programming environment is within a tablet,
so
aarch64 / Android 11 ( originally 10 ...
libweirdness (Antryg Revok)
05:49 PM Revision da883af4 (git): MJIT: Directly compile .c to .so (#5987)
I'm planning to redesign the MJIT worker pipeline, and this allows you to simplify the implementation and let it run efficiently except for MinGW. k0kubun (Takashi Kokubun)
04:51 PM Revision 5a4f997b (git): func: and file: prefix for `RUBY_DEBUG_LOG_FILTER`
`RUBY_DEBUG_LOG_FILTER` specified only function names but this
patch also check file names for each log events.
If you specify `file:` or `func:` prefix, it's only filter
file names or func names (otherwize check both).
foo
# show l...
ko1 (Koichi Sasada)
04:09 PM Revision 8d573363 (git): Fix major GC thrashing
Only growth heaps are allowed to start major GCs. Before this patch,
growth heaps are defined as size pools that freed more slots than had
empty slots (i.e. there were more dead objects that empty space).
But if the size pool is relativ...
peterzhu2118 (Peter Zhu)
03:53 PM Bug #18748 (Closed): Range#cover? returns true for beginless range of different type
Fixed by commit:c5475f42694eff35465c3332e0182c0611ca5918 (I messed up the bug reference in the commit message). jeremyevans0 (Jeremy Evans)
03:44 PM Bug #15644 (Closed): ThreadsWait problems with Thread#report_on_exception
jeremyevans0 (Jeremy Evans)
03:40 PM Bug #17349 (Closed): Rake での並行実行における正規表現マッチングの異常
jeremyevans0 (Jeremy Evans)
03:38 PM Bug #18079 (Closed): [PATCH] make error for MinGW with Clang/LLVM + LLD
jeremyevans0 (Jeremy Evans)
03:38 PM Bug #18123: addr2line.c: Define `SHF_COMPRESSED`
I added a pull request for this patch and the patches for #18121 and #18081: https://github.com/ruby/ruby/pull/4957 jeremyevans0 (Jeremy Evans)
03:34 PM Bug #18657: IRB raises exception when stdout is a pipe
irb pull request for this issue: https://github.com/ruby/irb/pull/353 jeremyevans0 (Jeremy Evans)
03:26 PM Revision 08a6ec34 (git): * 2022-06-09 [ci skip]
git[bot]
03:25 PM Revision d1b6c8a1 (git): Fix compilation error when USE_RVARGC=0
force_major_gc_count was not defined when USE_RVARGC=0. peterzhu2118 (Peter Zhu)
02:03 PM Revision fafe6818 (git): Add key force_major_gc_count to GC.stat_heap
force_major_gc_count is the number of times the size pool forced major
GC to run.
peterzhu2118 (Peter Zhu)
12:35 PM Revision a07acbe4 (git): [ruby/fileutils] File trees (https://github.com/ruby/fileutils/pull/80)
Adds a note about file tree examples.
https://github.com/ruby/fileutils/commit/65ac65067a
burdettelamar (Burdette Lamar)
08:49 AM Revision 6a6531d3 (git): Update "Reporting Issues" link in the README
This link is broken. Alexander Ilyin
08:25 AM Bug #18464: RUBY_INTERNAL_EVENT_NEWOBJ tracepoint causes an interpreter crash when combined with Ractors
I opened a PR with this patch. Happy to try fixing it a different way but this at least stops the crash. https://github.com/ruby/ruby/pull/5990 kjtsanaktsidis (KJ Tsanaktsidis)
08:25 AM Bug #18796: GC compaction gets stuck on Mac OS when a debugger is attached
I opened a PR with this patch: https://github.com/ruby/ruby/pull/5991 kjtsanaktsidis (KJ Tsanaktsidis)
08:24 AM Bug #18795: Verbose GC debug output with -DRGENGC_DEBUG=5 causes a crash
I opened a pull request with this patch: https://github.com/ruby/ruby/pull/5992 kjtsanaktsidis (KJ Tsanaktsidis)
07:28 AM Feature #18821: Expose Pattern Matching interfaces in core classes
I think it's a good idea to create a pull request in each repository.
https://github.com/ruby/set
https://github.com/ruby/matrix
https://github.com/ruby/csv
https://github.com/ruby/ruby (MatchData is built-in class)
https://github...
znz (Kazuhiro NISHIYAMA)
06:07 AM Feature #18821 (Closed): Expose Pattern Matching interfaces in core classes
## Problem Statement
Pattern matching is an exceptionally powerful feature in modern versions of Ruby, but it has one critical weakness that we should discuss:
It is only as powerful as the number of classes which implement its int...
baweaver (Brandon Weaver)
04:30 AM Revision 790825db (git): Update the help message on /benchmark
I wanted to point out there's --output=all. k0kubun (Takashi Kokubun)
03:35 AM Bug #8677 (Closed): $LOAD_PATH did not encoded into the "internal encoding"
I'm unsure the precise procedure to reproduce the issue, but I couldn't repro it in any way. Maybe fixed by #18191? Feel free to ping me if it is not fixed yet. mame (Yusuke Endoh)
02:55 AM Revision ccfbcc73 (git): [DOC] RDoc now accepts other than magic numbers at `rb_attr`
nobu (Nobuyoshi Nakada)
12:27 AM Bug #18170: Exception#inspect should not include newlines
Thanks for your investigating and patches.
This looks like a great improvement.
Test frameworks should probably avoid making assertions on formatted output, so your proposal makes sense to me. Even better is something like `assert_...
ioquatix (Samuel Williams)
 

Also available in: Atom