Project

General

Profile

Activity

From 08/18/2021 to 08/24/2021

08/24/2021

07:59 PM Bug #18131 (Open): addr2line.c: Some inlined functions mistakenly shown
What is observed in ppc64le CI (pathnames edited for readability):
```
-- C level backtrace information ---------...
xtkoba (Tee KOBAYASHI)
03:36 PM Revision 71662466 (git): * 2021-08-25 [ci skip]
git[bot]
03:34 PM Revision 14a9c364 (git): Fix warnings in test_optimization.rb
These were introduced in the test for tracing optimized methods
added in 48c8df9e0eb295af06d593ce37ce1933c0ee1d90.
jeremyevans (Jeremy Evans)
01:48 PM Bug #18117 (Closed): Segmentation fault when yielding values from Ractors during GC sweeping
Applied in changeset commit:git|bbedd29b6e98ef6e3fc2ce2b358d2b509b7cd1bb.
----------
[Bug #18117] Fix Ractor race co...
peterzhu2118 (Peter Zhu)
01:47 PM Revision bbedd29b (git): [Bug #18117] Fix Ractor race condition with GC
rb_objspace_reachable_objects_from requires that the GC not be active.
Since the Ractor barrier is not executed for i...
peterzhu2118 (Peter Zhu)
01:12 PM Bug #16492: TestBugReporter#test_bug_reporter_add test failures
What I noticed in the description is that "C level backtrace information" is not shown, which suggests that the funct... xtkoba (Tee KOBAYASHI)
11:45 AM Bug #16492: TestBugReporter#test_bug_reporter_add test failures
Perhaps this issue is relevant with #17052 .
jaruga (Jun Aruga)
12:03 PM Bug #17722: define_method with shareable results in "defined in a different Ractor"
The reason of the unexpected error is, the block parameter of `define_method` is un-shareable.
I created a patch to ...
tagomoris (Satoshi Tagomori)
11:55 AM Bug #18062: Ruby with enabled LTO segfaults during build
I noticed gcc-11 LTO and clang-14 LTO cases are added to the CI. Thanks @nobu!
https://github.com/ruby/ruby/commit/2...
jaruga (Jun Aruga)
11:43 AM Bug #18024: Ractor crashes when connections are closed in multiple Ractors
As a follow-up of this report, I found that the same thing happens when:
* a Ractor accepts connections, then send c...
tagomoris (Satoshi Tagomori)
10:29 AM Revision b62ed309 (git): [ruby/securerandom] [DOC] fix a code mark up [ci skip]
https://github.com/ruby/securerandom/commit/de47532707 nobu (Nobuyoshi Nakada)
09:08 AM Revision 4a6b5f46 (git): Revert "tool/test-bundled-gems.rb: Use the bundled RBS code to test TypeProf"
This reverts commit 22deda43cb98aa3cee48d0bebbff7c4db1d7652a.
It was incomplete. Sorry!
mame (Yusuke Endoh)
09:02 AM Revision 80597f25 (git): [ruby/un] gemspec: Explicitly list 0 executables
This gem exposes no executables, so this makes that clear to the reader.
https://github.com/ruby/un/commit/012c298e12
olleolleolle (Olle Jonsson)
09:02 AM Revision b126a27d (git): [ruby/un] LICENSE
https://github.com/ruby/un/commit/762c38c176 hsbt (Hiroshi SHIBATA)
09:02 AM Revision 2eed62fb (git): [ruby/un] Use STDIN if no arguments
https://github.com/ruby/un/commit/8e0d6f62cb znz (Kazuhiro NISHIYAMA)
09:02 AM Revision 66abeb03 (git): [ruby/un] Add colorize command
https://github.com/ruby/un/commit/4d080eeec0 znz (Kazuhiro NISHIYAMA)
09:02 AM Revision d140b030 (git): Added ruby/un entry
hsbt (Hiroshi SHIBATA)
08:55 AM Revision 2be84afe (git): .github/workflows/compilers.yml: Specify a container running user as root.
Explicitly specify the root as a user to run tests in the containers.
Coming new ruby/ruby-ci-image images are requi...
Jun Aruga
08:43 AM Revision 22deda43 (git): tool/test-bundled-gems.rb: Use the bundled RBS code to test TypeProf
Formerly, TypeProf was tested with the latest RBS code during
`make test-bundled-gems`. However, when a new version o...
mame (Yusuke Endoh)
08:03 AM Bug #18130 (Closed): Showing exceptions from Ractor on console causes errors
`ErrorHighlight.formatter` fetches a default (or configured) exception formatter from the module variable, and if it ... tagomoris (Satoshi Tagomori)
07:18 AM Revision bcc5a2b6 (git): [ruby/fiddle] Simplify libc and libm path logics (https://github.com/ruby/fiddle/pull/91)
* Simplify libc_so and libm_so
If nil, no need to set to nil.
* Get rid of repeating inversions
https://github.com...
nobu (Nobuyoshi Nakada)
07:18 AM Revision 0f1e8f38 (git): [ruby/fiddle] Improve "offsetof" calculations (https://github.com/ruby/fiddle/pull/90)
I need to get the offset of members inside sub structures. This patch
adds sub-structure offset support for structs....
tenderlovemaking (Aaron Patterson)
01:52 AM Revision 8d2af51a (git): netbsd coroutine uses assembly instead and little build fix.
David Carlier
01:38 AM Feature #18051 (Closed): Move symbols exported under internal
Applied in changeset commit:git|c38c2d8ee26c70300e2e0a4eec867273a8520579.
----------
Moved exported symbols in inter...
nobu (Nobuyoshi Nakada)
01:37 AM Revision d9f084ed (git): Moved rb_deprecate_constant declaration [Feature #18051]
nobu (Nobuyoshi Nakada)
01:37 AM Revision 5d99800d (git): Moved rb_int_positive_pow declaration [Feature #18051]
nobu (Nobuyoshi Nakada)
01:37 AM Revision c38c2d8e (git): Moved exported symbols in internal/util.h to ruby/util.h
[Feature #18051] nobu (Nobuyoshi Nakada)
12:23 AM Revision 4794a8a7 (git): Add stat_time function
S_H_ (Shun Hiraoka)

08/23/2021

10:08 PM Bug #18129 (Closed): Ractor-incompatible global variables can be accessed through alias
Some global variables are not allowed in non-main Ractors. For example, the following code does not run:
``` ruby
R...
rm155 (Rohit Menon)
10:05 PM Bug #18128 (Closed): Ractor allows class variables that have been used before
In order to avoid data races, Ractor is not supposed to allow class variables. For example, the following code does n... rm155 (Rohit Menon)
09:59 PM Feature #18127 (Closed): Ractor-local version of Singleton
**Background**
When the Singleton module (from the Singleton library) is included in a class, that class will have o...
rm155 (Rohit Menon)
06:58 PM Revision 70abda1a (git): * 2021-08-24 [ci skip]
git[bot]
06:57 PM Revision 6648b411 (git): Replace intptr_t with uintptr_t in gc.c
Pointers may be large to the point where intptr_t would be negative.
This is problematic when doing comparisons of po...
peterzhu2118 (Peter Zhu)
06:08 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler

xtkoba (Tee KOBAYASHI) wrote in #note-31:
> I might have been misleading. The patch in #note-9 is necessary for co...
vo.x (Vit Ondruch)
05:07 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
I might have been misleading. The patch in #note-9 is necessary for correctly reading `DW_FORM_ref_addr` values in `.... xtkoba (Tee KOBAYASHI)
04:46 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
xtkoba (Tee KOBAYASHI) wrote in #note-29:
> The behavior seems as if the patch in #note-9
Should it be applied? B...
vo.x (Vit Ondruch)
04:06 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
The behavior seems as if the patch in #note-9 (https://bugs.ruby-lang.org/attachments/8974) were not applied. If I re... xtkoba (Tee KOBAYASHI)
03:41 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
Just FTR, these are the build options:
~~~
gcc -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-swit...
vo.x (Vit Ondruch)
02:20 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
Byte 0x54 of the `.debug_info` is the 3rd byte of
```
<52> DW_AT_abstract_origin: <0x6a6c3a>
```
of the...
xtkoba (Tee KOBAYASHI)
01:55 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
~~~
(gdb) c
Continuing.
-e:1: [BUG] Segmentation fault at 0x590fb15c00000020
ruby 3.0.2p107 (2021-07-07 revision ...
vo.x (Vit Ondruch)
02:54 PM Revision eddd369e (git): Revert "[Feature #18045] Implement size classes for GC"
This reverts commits 48ff7a9f3e47bffb3e4d067a12ba9b936261caa0
and b2e2cf2dedd104acad8610721db5e4d341f135ef because it...
peterzhu2118 (Peter Zhu)
01:16 PM Feature #18045 (Closed): Variable Width Allocation Phase II
Applied in changeset commit:git|48ff7a9f3e47bffb3e4d067a12ba9b936261caa0.
----------
[Feature #18045] Remove T_PAYLO...
peterzhu2118 (Peter Zhu)
01:15 PM Revision b2e2cf2d (git): [Feature #18045] Implement size classes for GC
This commits implements size classes in the GC for the Variable Width
Allocation feature. Unless `USE_RVARGC` compile...
peterzhu2118 (Peter Zhu)
01:15 PM Revision 48ff7a9f (git): [Feature #18045] Remove T_PAYLOAD
This commit removes T_PAYLOAD since the new VWA implementation no longer
requires T_PAYLOAD types.
Co-authored-by: A...
peterzhu2118 (Peter Zhu)
05:29 AM Bug #18126 (Closed): Process termination three seconds after thread termination dumps core
The following code occasionally dumps core.
```
3000.times{Thread.new{}}
sleep 2.99
```
```
$ ruby test.rb
...
mame (Yusuke Endoh)
05:12 AM Revision 83244b8c (git): [DOC] Match each `Time.now` for comparison [ci skip]
nobu (Nobuyoshi Nakada)
01:59 AM Feature #17847 (Closed): `ruby -run -e httpd` displays URL
> Alternatively this could be part of the default output when starting WEBrick,
That's a good idea. However, since...
gotoken (Kentaro Goto)
12:59 AM Revision 116e52f3 (git): * 2021-08-23 [ci skip]
git[bot]
12:59 AM Revision 689962ea (git): improves message. thanks to eregon
Kentaro Goto
12:59 AM Revision f18e1752 (git): Display httpd URLs supporting HTTPS
Kentaro Goto
12:59 AM Revision 8361675e (git): Display httpd URLs
Kentaro Goto

08/22/2021

01:27 PM Revision d7da5ca5 (git): Fix links [ci skip]
znz (Kazuhiro NISHIYAMA)
11:28 AM Revision 0b9a3371 (git): [ruby/date] Add zontab.list dependency
https://github.com/ruby/date/commit/7e1ffbf568 nobu (Nobuyoshi Nakada)
11:16 AM Revision 877bfd1b (git): Suppress unused-label warnings
nobu (Nobuyoshi Nakada)
03:11 AM Revision d574b841 (git): Fix failures on non-UTF-8 environment [Bug #18077]
Call `IOSpecs.io_fixture` with the default encoding explicitly.
`IOSpecs.closed_io` calls the method without optional...
nobu (Nobuyoshi Nakada)
01:39 AM Revision 18031f41 (git): Add rb_encoding_check function
S_H_ (Shun Hiraoka)
01:33 AM Bug #18077 (Closed): Marshal.dump(closed_io) raises IOError instead of TypeError
Applied in changeset commit:git|6594623f623a0982da62cc105094da0701d499da.
----------
Fix Marshal.dump(closed_io) to ...
Anonymous
01:33 AM Revision 6594623f (git): Fix Marshal.dump(closed_io) to raise TypeError and allow encoding on closed IO
Mashalling a closed IO object raised "closed stream (IOError)" before instead of TypeError.
This changes IO#(in|ex)te...
Lars Kanis

08/21/2021

09:19 PM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
I should have read the PR first.
Yes, removing the old example and adding the new one with a version guard is perfec...
Eregon (Benoit Daloze)
09:17 PM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
larskanis (Lars Kanis) wrote in #note-5:
> @eregon This was my first though as well, but the current behavior is alr...
Eregon (Benoit Daloze)
10:48 AM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
I removed the old example from https://github.com/ruby/ruby/pull/4758 . larskanis (Lars Kanis)
08:03 AM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
Since this is a bug report, I think that the old example in rubyspec should be removed. nobu (Nobuyoshi Nakada)
05:47 PM Revision c527d278 (git): Bundle RBS 1.5.1 (#4760)
soutaro (Soutaro Matsumoto)
05:15 PM Bug #14870 (Closed): Both TracePoint's :call and :c_call filters seem to skip a lot of builtin methods
Applied in changeset commit:git|48c8df9e0eb295af06d593ce37ce1933c0ee1d90.
----------
Allow tracing of optimized meth...
jeremyevans (Jeremy Evans)
05:15 PM Revision ad99edc7 (git): * 2021-08-22 [ci skip]
git[bot]
05:15 PM Revision 48c8df9e (git): Allow tracing of optimized methods
This updates the trace instructions to directly dispatch to
opt_send_without_block. So this should cause no slowdown...
jeremyevans (Jeremy Evans)
09:31 AM Misc #18125 (Closed): A strange behavior when same name variable/method coexist issue.
Local variables are defined when they appear in assignments, thus
```ruby
deploy_to = "#{deploy_to} new place"
...
matz (Yukihiro Matsumoto)
08:28 AM Misc #18125: A strange behavior when same name variable/method coexist issue.
It is excepted because of variable hoisting.
Same reason why `foo = 1 unless foo` works.
byroot (Jean Boussier)
08:07 AM Misc #18125 (Closed): A strange behavior when same name variable/method coexist issue.
Following is a example.
## Reproduce
```rb
def deploy_to
"deploy_to"
end
deploy_to = "#{deploy_to} new ...
zw963 (Wei Zheng)
07:50 AM Revision f51a6ace (git): [DOC] prefer RUBY_DEFAULT_FREE to a magic number [ci skip]
nobu (Nobuyoshi Nakada)
07:48 AM Revision 8f755ad6 (git): [DOC] mention rb_define_alloc_func [ci skip]
nobu (Nobuyoshi Nakada)
07:01 AM Feature #10917: Add GC.stat[:total_time] when GC profiling enabled
> It can affect performance on some cases.
But less than `GC::Profiler`, so for users of this feature it would be ...
byroot (Jean Boussier)
06:27 AM Bug #17643: Ruby 3 embedded - no GC methods?
I don't want to do either of those things. Instead I would like to embed Ruby into a C++ program and then use it run ... cfis (Charlie Savage)
01:54 AM Bug #17643: Ruby 3 embedded - no GC methods?
No arguments means reading the script from stdin.
You need to give a script name or an `-e` option.
nobu (Nobuyoshi Nakada)
02:22 AM Revision e2b2b577 (git): * 2021-08-21 [ci skip]
git[bot]
02:21 AM Revision 5e7cc0ee (git): [DOC] update extension.ja.rdoc [ci skip]
`rb_cData` has been deprecated for years. nobu (Nobuyoshi Nakada)
12:52 AM Feature #18083: Capture error in ensure block.
> A few places, but in relative usages probably 1/1000 of begin/rescue or ensure/end patterns, right?
I scanned top ...
ioquatix (Samuel Williams)

08/20/2021

10:09 PM Feature #18083: Capture error in ensure block.
BTW, deprecating and removing `$!` has another advantage:
a raised Ruby exception wouldn't immediately leak to the c...
Eregon (Benoit Daloze)
10:03 PM Feature #18083: Capture error in ensure block.
@matz based on the above discussion, do you agree to deprecate and remove `$!` if possible? ioquatix (Samuel Williams)
10:00 PM Feature #18083: Capture error in ensure block.
> lots of code does need to make this differentiation.
A few places, but in relative usages probably 1/1000 of beg...
Eregon (Benoit Daloze)
01:09 AM Feature #18083: Capture error in ensure block.
> the exception that happens inside is not a proof the resource is at fault, it could be anything, including a NoMemo... ioquatix (Samuel Williams)
09:54 PM Feature #17847: `ruby -run -e httpd` displays URL
Sounds fine to me.
Alternatively this could be part of the default output when starting WEBrick,
I think that would b...
Eregon (Benoit Daloze)
05:57 PM Feature #17847: `ruby -run -e httpd` displays URL
I'd like to merge this PR soon. Let me know if you have any objection. mame (Yusuke Endoh)
09:48 PM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
mame (Yusuke Endoh) wrote in #note-13:
> Agreed. I think thread-local behavior is more reasonable. So, the current `t...
Eregon (Benoit Daloze)
06:34 PM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
This was discussed at the August 2021 developer meeting, and it was decided that TracePoint#enable with a block will ... jeremyevans0 (Jeremy Evans)
04:14 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
Eregon (Benoit Daloze) wrote in #note-10:
> I do expect:
> ```
> TracePoint.new(:line) {|tp| p tp }.enable do
> ...
mame (Yusuke Endoh)
06:52 PM Feature #18124: Hash shorthands (matching constructors functionality in JS)
osyo (manga osyo) wrote in #note-7:
> mame (Yusuke Endoh) wrote in #note-3:
> > For "Destructuring", you can use on...
myxoh (Nicolas Klein)
06:46 PM Feature #18124: Hash shorthands (matching constructors functionality in JS)
mame (Yusuke Endoh) wrote in #note-3:
> For "Destructuring", you can use one-line pattern matching since Ruby 3.0:
> ...
osyo (manga osyo)
06:42 PM Feature #18124: Hash shorthands (matching constructors functionality in JS)
mame (Yusuke Endoh) wrote in #note-3:
> For "Destructuring", you can use one-line pattern matching since Ruby 3.0:
...
myxoh (Nicolas Klein)
06:26 PM Feature #18124: Hash shorthands (matching constructors functionality in JS)
For "Destructuring", you can use one-line pattern matching since Ruby 3.0:
```
hash = {a: 'a', b: 'b'}
hash => {...
mame (Yusuke Endoh)
06:04 PM Feature #18124 (Closed): Hash shorthands (matching constructors functionality in JS)
# **Suggestion:**
To implement one shorthand operators that allows you to construct hash into local variables and co...
myxoh (Nicolas Klein)
06:31 PM Bug #15428: Refactor Proc#>> and #<<
This was discussed at the August 2021 developer meeting, but no decision was made. @matz is considering whether to c... jeremyevans0 (Jeremy Evans)
11:19 AM Bug #18123 (Feedback): addr2line.c: Define `SHF_COMPRESSED`
Currently, `addr2line.c` defines `SHF_COMPRESSED` as `0` if not defined. This is problematic because this results in ... xtkoba (Tee KOBAYASHI)
07:27 AM Revision 5e9598ba (git): [ruby/error_highlight] Fixed the argument for DidYouMean.formatter=
Looks like this bug was hidden by did_you_mean's rescuing any
exceptions.
https://github.com/ruby/error_highlight/co...
mame (Yusuke Endoh)
07:18 AM Revision cad83fa3 (git): ast.c: Rename "save_script_lines" to "keep_script_lines"
... as per ko1's preference. He is preparing to extend this feature to
ISeq for his new debugger. He prefers "keep" t...
mame (Yusuke Endoh)
06:18 AM Revision 4c93c124 (git): Turned the reminder comment to a compile-time message
nobu (Nobuyoshi Nakada)
06:18 AM Revision 371bb4ea (git): Add RBIMPL_TODO
Make `RUBY_VERSION_SINCE` and `RUBY_VERSION_BEFORE` to take major
and minor numbers so usable also in preprocessor di...
nobu (Nobuyoshi Nakada)
05:14 AM Misc #18122 (Closed): DevelopersMeeting20210916Japan
# The next dev meeting
**Date: 2021/09/16 13:00-17:00**
Place/Sign-up/Agenda/Log: https://github.com/ruby/dev-mee...
mame (Yusuke Endoh)
05:04 AM Revision b32987a3 (git): Simplify repeated member access macros
nobu (Nobuyoshi Nakada)
01:44 AM Bug #14744 (Closed): Refinements modules have a superclass
Applied in changeset commit:git|754adbee91c2d4a4e84e9271724ca33f630d1916.
----------
Module#ancestors should not ret...
shugo (Shugo Maeda)
01:42 AM Revision 754adbee (git): Module#ancestors should not return superclasses of refinements
[ruby-core:86949] [Bug #14744]
Reported by Eregon (Benoit Daloze). Thanks!
shugo (Shugo Maeda)

08/19/2021

11:58 PM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
At least commit:c0f4e4ca needs to be backported, since `p ObjectSpace::InternalObjectWrapper.new` segfaults. nobu (Nobuyoshi Nakada)
11:56 PM Bug #18007 (Closed): Help developers of C extensions meet requirements in "doc/extension.rdoc"
nobu (Nobuyoshi Nakada)
05:32 PM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
Benoit, thanks for helping clarify the language in the description. I've also updated the PR commit log to use this l... mdalessio (Mike Dalessio)
02:47 PM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
My confusion was that the description of this issue talks about the *allocate method*, but actually it's about the *a... Eregon (Benoit Daloze)
01:51 PM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
Thank you for your time, Matz, Naruse, and Nobu.
I've made the requested change in the [pull request](https://gith...
mdalessio (Mike Dalessio)
06:26 AM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
@naruse objects to that warning appearing every time that instance is created.
So I propose to undefine the allocato...
nobu (Nobuyoshi Nakada)
05:40 AM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
In my opinion, it should be merged, and it should cause errors (not warnings) in the future. But we need a migration ... matz (Yukihiro Matsumoto)
11:30 PM Revision 70510d15 (git): * 2021-08-20 [ci skip]
git[bot]
11:30 PM Revision c0f4e4ca (git): undefine alloc functions for C extensions
per guidance in doc/extension.rdoc, these classes now undefine their
alloc functions:
- ObjectSpace::InternalObjectW...
mdalessio (Mike Dalessio)
11:30 PM Revision e8e3b7a0 (git): Undefine the alloc function for T_DATA classes
which have not undefined or redefined it.
When a `T_DATA` object is created whose class has not undefined or
redefin...
mdalessio (Mike Dalessio)
05:48 PM Bug #18078 (Closed): rb_fix2uint should avoid method lookup and use FIXNUM_NEGATIVE_P
Fixed by commit:d668cd188ca91cf08ea7678bad1dd0bc8a997a81 jeremyevans0 (Jeremy Evans)
05:09 PM Bug #18121 (Feedback): addr2line.c: Endianness
A patch is attached to partially fix endianness issues in `addr2line.c`.
It would be more desirable if we could ge...
xtkoba (Tee KOBAYASHI)
05:05 PM Bug #18120 (Closed): Deadlock and segfault when using autoload in Ractor
The following scripts with autoload causes Ractor to report a deadlock and segfault (tested on Ubuntu 20.04 and macOS... peterzhu2118 (Peter Zhu)
04:42 PM Feature #18083: Capture error in ensure block.
I think use-cases needing separate cleanups whether there is a Ruby exception or "normal execution or non-local contr... Eregon (Benoit Daloze)
09:57 AM Feature #18083: Capture error in ensure block.
@matz I agree with your general feeling completely. But it's too late: We already have "ugly and against the basic co... ioquatix (Samuel Williams)
08:19 AM Feature #18083: Capture error in ensure block.
I hesitate to enhance `ensure`. It's ugly and against the basic concept of `ensure`.
The `ensure` behavior was taken...
matz (Yukihiro Matsumoto)
08:04 AM Feature #18083: Capture error in ensure block.
We want to make it easy for people to write robust Ruby programs, even if there is failure. As discussed in <https://... ioquatix (Samuel Williams)
01:00 AM Feature #18083: Capture error in ensure block.
Your proposed "shorter and easier to understand" implementation is actually incorrect:
```
def transaction1
be...
ioquatix (Samuel Williams)
12:51 AM Feature #18083: Capture error in ensure block.
> Ruby already has too many features for exceptional flow control. Adding more stuff that makes this even more compli... ioquatix (Samuel Williams)
12:45 AM Feature #18083: Capture error in ensure block.
Eregon (Benoit Daloze) wrote in #note-3:
> If you only need to know if there is an `Exception` this seems easier:
>...
duerst (Martin Dürst)
03:00 PM Feature #12075: some container#nonempty?
I’m not entirely sure we need a new method for this, because we could always use `ary.size.nonzero?` or `ary.size.pos... austin (Austin Ziegler)
06:57 AM Feature #12075: some container#nonempty?
duerst (Martin Dürst) wrote in #note-28:
> I agree with @gotoken that `filled?` is confusing.
Yes, it might be conf...
p8 (Petrik de Heus)
12:54 AM Feature #12075: some container#nonempty?
sawa (Tsuyoshi Sawada) wrote in #note-27:
> I think `filled?` is a perfect method name.
I agree with @gotoken t...
duerst (Martin Dürst)
01:23 PM Bug #18119 (Closed): Ractor crashes when instantiating classes
The following script crashes with a segfault (tested on Ubuntu 20.04 and macOS 11.5.2):
```ruby
workers = (0...8)...
peterzhu2118 (Peter Zhu)
01:18 PM Bug #14744: Refinements modules have a superclass
@matz Should `instance_method` and other methods magically find the method on the refined class, even though `self` i... Eregon (Benoit Daloze)
07:41 AM Bug #14744 (Assigned): Refinements modules have a superclass
shugo (Shugo Maeda)
07:28 AM Bug #14744: Refinements modules have a superclass
I am so sorry for being late.
I agree with @shugo's opinion in #note-2. We should hide `Array` in the example.
Ma...
matz (Yukihiro Matsumoto)
12:52 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
Nothing strange found in `.debug_abbrev`, either.
A patch is attached to help ease debugging.
xtkoba (Tee KOBAYASHI)
04:50 AM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
I have recreated and reuploaded the tarball. Same URL should work. vo.x (Vit Ondruch)
10:08 AM Bug #18118 (Closed): Error compiling ruby 2.7.0: pure_parser.rb:25:in `gets': Can't do inplace edit without backup (fatal)
Fixed by commit:05485868cbd1e7a59063d5b4be2ee2313ac9fa25. nobu (Nobuyoshi Nakada)
04:26 AM Bug #18118 (Closed): Error compiling ruby 2.7.0: pure_parser.rb:25:in `gets': Can't do inplace edit without backup (fatal)
I get an error when compiling ruby from https://github.com/ruby/ruby
### Environment
VS2015 x64 x86 compatible tool...
Javalitterboy (bo gong)
08:44 AM Revision 6963f8f7 (git): Remove old warning aged nearly 8 years
nobu (Nobuyoshi Nakada)
08:39 AM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
@eregon This was my first though as well, but the current behavior is already defined in ruby-spec.
I would prefer...
larskanis (Lars Kanis)
08:20 AM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
I don't have any strong opinion but @eregon's approach looks a bit better. mame (Yusuke Endoh)
08:28 AM Revision f96c1994 (git): Fix test failure on spec/ruby/language/pattern_matching_spec.rb
https://github.com/ruby/ruby/runs/3369486308 ktsj (Kazuki Tsujimoto)
08:11 AM Feature #16182 (Closed): Should `expr in a, b, c` be allowed or not?
Applied in changeset commit:git|ecb6d6a4ef058b5598a7633c3921eeab08ce11c6.
----------
Allow omission of parentheses i...
ktsj (Kazuki Tsujimoto)
07:32 AM Feature #16182: Should `expr in a, b, c` be allowed or not?
I agree with allowing to omit parentheses in the pattern.
Matz.
matz (Yukihiro Matsumoto)
08:07 AM Revision ecb6d6a4 (git): Allow omission of parentheses in one line pattern matching [Feature #16182]
ktsj (Kazuki Tsujimoto)
07:26 AM Feature #10917: Add GC.stat[:total_time] when GC profiling enabled
`GC::Profiler` is not maintained well and it doesn't calculate all of GC time now.
I rework it using `clock_gettime`...
ko1 (Koichi Sasada)
06:36 AM Feature #10917: Add GC.stat[:total_time] when GC profiling enabled
I agree. Need to consider performance cost.
Matz.
matz (Yukihiro Matsumoto)
07:18 AM Bug #15404 (Rejected): Endless range has inconsistent chaining behaviour
I think it's OK to keep the current behavior. `1.. ..2` looks weird, I agree, but don't need to be a syntax error.
...
matz (Yukihiro Matsumoto)
07:11 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
Eregon (Benoit Daloze) wrote in #note-11:
> Actually thread-local might not be enough, we'd probably want Fiber loca...
ko1 (Koichi Sasada)
07:10 AM Revision 00d66f7e (git): Hard-link executable files to mae runnable
As `$ORIGIN` on Linux is refered from the real path of the
executable file, symbolic linked executable file cannot work.
nobu (Nobuyoshi Nakada)
07:05 AM Bug #18036: Pthread fibers become invalid on fork - different from normal fibers.
Thanks @matz. @ko1, on my PC, the following program segfaults. I tried it on 2.7 and 3 (head).
~~~ ruby
require 'fib...
ioquatix (Samuel Williams)
06:57 AM Bug #18036: Pthread fibers become invalid on fork - different from normal fibers.
Using fork from within non-main fibers should be prohibited only on architectures where it is unreliable (e.g. OpenBS... matz (Yukihiro Matsumoto)
06:47 AM Revision 600d0f78 (git): Bump patchlevel.
nagachika (Tomoyuki Chikanaga)
06:46 AM Revision c7587561 (git): Bundle RBS 1.4.0 & typeprof 0.15.2 (#4753)
* Bundle RBS 1.4.0
* Bundle typeprof 0.15.2
soutaro (Soutaro Matsumoto)
06:46 AM Revision 40057630 (git): Update TypeProf to 0.15.1
mame (Yusuke Endoh)
06:46 AM Revision 37f82437 (git): Merge RubyGems 3.2.26 and Bundler 2.2.26
hsbt (Hiroshi SHIBATA)
06:46 AM Revision 41a28637 (git): Merge RubyGems 3.2.25 and Bundler 2.2.25
hsbt (Hiroshi SHIBATA)
06:46 AM Revision 679185d6 (git): Merge RubyGems 3.2.24 and Bundler 2.2.24
hsbt (Hiroshi SHIBATA)
06:46 AM Revision f1039afa (git): Merge RubyGems 3.2.23 and Bundler 2.2.23
hsbt (Hiroshi SHIBATA)
06:46 AM Revision 4469c4e4 (git): * 2021-08-19 [ci skip]
git[bot]
06:45 AM Revision ca8f73ef (git): Revert "merge revision(s) 164f50dea918e7019847f578c3cffb079993d626,1985a3a77fac64cda177c74113a9348e36233630:"
This reverts commit 09d90c0ed861e74e58a59bc413bc39bcf9775db8. nagachika (Tomoyuki Chikanaga)
06:08 AM Revision 09d90c0e (git): merge revision(s) 164f50dea918e7019847f578c3cffb079993d626,1985a3a77fac64cda177c74113a9348e36233630:
Update TypeProf to 0.15.1
---
.github/workflows/ubuntu.yml | 2 +-
gems/bundled_gems ...
nagachika (Tomoyuki Chikanaga)
04:35 AM Misc #18039: DevelopersMeeting20210819Japan
* [Bug #18077] `Marshal.dump(closed_io)` raises `IOError` instead of `TypeError` (nobu)
* `Marshal.dump` is expect...
nobu (Nobuyoshi Nakada)
04:05 AM Bug #17202: Backport for Apple Silicon
CI of snapshot-ruby_2_6 failed on macos-11.
It seems this issue is related.
Because nobu says
https://github.com/...
znz (Kazuhiro NISHIYAMA)
02:33 AM Revision e20e97b4 (git): * 2021-08-19 [ci skip]
git[bot]
02:33 AM Revision 1985a3a7 (git): Bundle RBS 1.4.0 & typeprof 0.15.2 (#4753)
* Bundle RBS 1.4.0
* Bundle typeprof 0.15.2
soutaro (Soutaro Matsumoto)

08/18/2021

11:04 PM Feature #18083: Capture error in ensure block.
There are lots of ways to achieve this but the reality is there is a lot of code which uses `$!` in the ensure block ... ioquatix (Samuel Williams)
05:09 PM Feature #18083: Capture error in ensure block.
If you only need to know if there is an `Exception` this seems easier:
Using the example from https://bugs.ruby-lang....
Eregon (Benoit Daloze)
05:04 PM Feature #18083: Capture error in ensure block.
The second snippet seems clear, the first one much less.
In what cases `error` is set? If it's a StandardError? If i...
Eregon (Benoit Daloze)
03:09 AM Feature #18083: Capture error in ensure block.
By the way, perhaps we should consider deprecating `$!` since its usage can lead to incorrect behaviour. ioquatix (Samuel Williams)
03:03 AM Feature #18083 (Open): Capture error in ensure block.
As discussed in https://bugs.ruby-lang.org/issues/15567 there are some tricky edge cases.
As a general model, some...
ioquatix (Samuel Williams)
09:29 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
vo.x (Vit Ondruch) wrote in #note-22:
> The dumps should be available here: https://vondruch.fedorapeople.org/objdum...
xtkoba (Tee KOBAYASHI)
08:19 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
xtkoba (Tee KOBAYASHI) wrote in #note-21:
> Isn't it possible that either section is broken?
Well, it should be D...
vo.x (Vit Ondruch)
06:08 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
The message
```
1267: Abbrev Number 106 not found
```
means that `addr2line.c` could not find an abbrev table...
xtkoba (Tee KOBAYASHI)
05:34 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
The result with the latest patch is significantly different:
~~~
$ gdb --args ./miniruby -e'Process.kill("SIGSEGV...
vo.x (Vit Ondruch)
09:06 PM Bug #17823: addr2line.c: Interpret `DW_RLE_start_length`
An edited patch is attached so that it applies cleanly to the current master head. xtkoba (Tee KOBAYASHI)
08:44 PM Bug #18117 (Closed): Segmentation fault when yielding values from Ractors during GC sweeping
[Link for GitHub PR containing the fix](https://github.com/ruby/ruby/pull/4755)
Ractors may invoke `rb_objspace_re...
vinistock (Vinicius Stock)
04:51 PM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
Why does IO#internal_encoding (and external_encoding) raise if the IO is closed?
They could just return the encoding...
Eregon (Benoit Daloze)
03:14 PM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
https://github.com/ruby/ruby/pull/4749 is another fix without the above side effect. Is it OK? larskanis (Lars Kanis)
02:25 PM Feature #12075: some container#nonempty?
p8 (Petrik de Heus) wrote in #note-25:
> What about `ary.filled?` ?
> It nicely pairs with empty and is not too long....
sawa (Tsuyoshi Sawada)
01:21 PM Feature #12075: some container#nonempty?
Boolean `size?` looks good to me. I vote for it.
My first choice was `nonempty?` because this is very common word in...
gotoken (Kentaro Goto)
12:37 PM Revision 0b7969b6 (git): Silence LoadError only if it is for `rubygems` itself
Co-authored-by: David Rodríguez <[email protected]>
Co-authored-by: Hiroshi SHIBATA <[email protected]>
daniel_niknam (Daniel Niknam)
09:24 AM Revision d668cd18 (git): rb_fix2uint should use FIXNUM_NEGATIVE_P
rb_num_negative_int_p is equivalent to calling the "<" method on
Integer (and checking whether it is overridden), whe...
jhawthorn (John Hawthorn)
09:18 AM Bug #18084 (Closed): `JSON.dump` can crash VM.
Applied in changeset commit:git|574f3af36ea008896419d2e2407f8fce83bdcd2e.
----------
Rewind execution tags more at s...
nobu (Nobuyoshi Nakada)
05:38 AM Bug #18084: `JSON.dump` can crash VM.
https://github.com/ruby/ruby/pull/4751 nobu (Nobuyoshi Nakada)
04:20 AM Bug #18084: `JSON.dump` can crash VM.
@nobu suggested the following code could be updated:
~~~ clang
sigill(int sig SIGINFO_ARG)
{
check_reserved...
ioquatix (Samuel Williams)
04:17 AM Bug #18084: `JSON.dump` can crash VM.
Minor improvement to formatting. ioquatix (Samuel Williams)
04:17 AM Bug #18084 (Closed): `JSON.dump` can crash VM.
~~~ ruby
require 'json'
x = {}; x[:x] = x
JSON.dump(x) # => nil
JSON.dump(x) # => SIGILL
~~~
Results from...
ioquatix (Samuel Williams)
08:23 AM Revision 95e7aed8 (git): SIGILL can raise at stack overflow on Linux too [Bug #18084]
nobu (Nobuyoshi Nakada)
08:23 AM Revision 574f3af3 (git): Rewind execution tags more at stack overflow [Bug #18084]
nobu (Nobuyoshi Nakada)
04:18 AM Bug #5808: "a = []; a << a; puts JSON.dump(a)" aborted
https://bugs.ruby-lang.org/issues/18084 maybe regression. ioquatix (Samuel Williams)
03:08 AM Misc #18039: DevelopersMeeting20210819Japan
- [Feature #18083] Capture error in ensure block.
- Is it acceptable?
ioquatix (Samuel Williams)
03:00 AM Feature #15567 (Rejected): Allow ensure to match specific situations
I will make a more limited proposal. ioquatix (Samuel Williams)
 

Also available in: Atom