Project

General

Profile

Activity

From 08/14/2021 to 08/20/2021

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)

08/17/2021

10:55 PM Bug #16906: Calling Thread#thread_variable? in IRB sometimes produce wrong result
This needs to be backported to 2.7.x. It wasn't fixed in 2.7.4. greneholt (Connor McKay)
05:39 PM Bug #18076: ext/digest/md5/md5.c: `-Wnull-pointer-subtraction` warning by Clang 13
Proposed patch:
```diff
--- a/ext/digest/md5/md5.c
+++ b/ext/digest/md5/md5.c
@@ -225,7 +225,7 @@
uint32_...
xtkoba (Tee KOBAYASHI)
05:25 PM Revision 58bd9434 (git): Replace f_boolcast with RBOOL macro
* Move f_boolcast definination
* Remove f_boolcast macro defination
* to
S_H_ (Shun Hiraoka)
04:26 PM Misc #18082 (Open): FileUtils.remove_entry_secure has inconsistent document
`FileUtils.remove_entry_secure` and `FileUtils.rm_r` have inconsistency about the vulnerability condition the in the ... pocke (Masataka Kuwabara)
03:00 PM Revision 6a9bfa4d (git): * 2021-08-18 [ci skip]
git[bot]
02:16 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
FWIW, another bug is found in `addr2line.c` (#18081), which I believe is irrevant to the issue here, though. xtkoba (Tee KOBAYASHI)
10:06 AM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
A revised patch (from #note-17) is attached so that `abbrev_number >= 256` is handled properly, although it might be ... xtkoba (Tee KOBAYASHI)
07:52 AM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
It turns out that `di_read_debug_abbrev_cu` in `addr2line.c` does not work correctly when `abbrev_number` is not alig... xtkoba (Tee KOBAYASHI)
02:09 PM Bug #18081 (Feedback): addr2line.c: Wrong section for `DW_AT_ranges`
When both `.debug_rnglists` and `.debug_ranges` sections exist, `DW_AT_ranges` can refer to a wrong section, potentia... xtkoba (Tee KOBAYASHI)
01:57 PM Revision 36ae44ce (git): [ruby/date] Update zonetab.h at 2021-08-11
https://github.com/ruby/date/commit/de7dca353f nobu (Nobuyoshi Nakada)
12:44 PM Revision 48145282 (git): [DOC] Fix the rdoc for File::Stat#size? [ci skip]
Akinori MUSHA
09:45 AM Revision edf01d4e (git): Treat NULL fake string as an empty string
And the NULL string must be of size 0. nobu (Nobuyoshi Nakada)
09:29 AM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
Eregon (Benoit Daloze) wrote in #note-7:
> I'm confused, why does `Class#allocate` not simply use the alloc function...
nobu (Nobuyoshi Nakada)
08:25 AM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
I'm confused, why does `Class#allocate` not simply use the alloc function set with `rb_define_alloc_func`?
Then ther...
Eregon (Benoit Daloze)
06:44 AM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
mame (Yusuke Endoh) wrote in #note-5:
> How about raising an exception when attempting to allocate a `T_DATA` object...
nobu (Nobuyoshi Nakada)
06:01 AM Bug #18007: Help developers of C extensions meet requirements in "doc/extension.rdoc"
How about raising an exception when attempting to allocate a `T_DATA` object with the default allocator? mame (Yusuke Endoh)
08:16 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
Actually thread-local might not be enough, we'd probably want Fiber local, i.e., events which are on the same executi... Eregon (Benoit Daloze)
08:12 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
mame (Yusuke Endoh) wrote in #note-7:
> Note that the second `trace.enable` does not print `#<TracePoint:line t.rb:4...
Eregon (Benoit Daloze)
05:24 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
mame (Yusuke Endoh) wrote in #note-7:
> `TracePoint#enable(target: :block)` does not follow events in a called metho...
jeremyevans0 (Jeremy Evans)
05:19 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
+1 for Jeremy #6.
I also agree `TP#enable{ ... }` should be thread-local without any options, but I don't think it...
ko1 (Koichi Sasada)
05:09 AM Bug #16889: TracePoint.enable { ... } also activates the TracePoint for other threads, even outside the block
`TracePoint#enable(target: :block)` does not follow events in a called method. Is this really intentional?
```
tr...
mame (Yusuke Endoh)
08:15 AM Feature #17750 (Closed): Update Unicode data to Unicode Version 13.0.0
Closed (finally) with revision 21fd83a823. duerst (Martin Dürst)
08:08 AM Revision 21fd83a8 (git): Mention update to Unicode Version 13.0.0 and Emoji Version 13.1
Mention the update to Unicode Version 13.0.0 and Unicode Emoji
Version 13.1 in NEWS.md. This completes issue #17750. ...
duerst (Martin Dürst)
07:44 AM Bug #18027 (Closed): test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt
Resolved with commit fd7f61c.
It turned out the problem was that in emoji-variation-sequences.txt, lines look like...
duerst (Martin Dürst)
06:45 AM Bug #18027: test/ruby/enc/test_emoji_breaks.rb does not use the file emoji-variation-sequences.txt
duerst (Martin Dürst) wrote:
> In particular, I'm a `puts` debugger, but `puts` debugging doesn't seem to work wel...
duerst (Martin Dürst)
07:30 AM Revision de764ae8 (git): * 2021-08-17 [ci skip]
git[bot]
07:16 AM Bug #13864: Rinda multicast test failures due to missing default route
Thx for looking into this. I just wanted to point out that this has low importance for me, since the default route wa... vo.x (Vit Ondruch)
07:03 AM Revision fd7f61cf (git): Take into account data in emoji-variation-sequences.txt in tests.
The emoji data in emoji-variation-sequences.txt was not used for
in test/ruby/enc/test_emoji_breaks.rb, for unknown r...
duerst (Martin Dürst)
05:54 AM Bug #18080 (Open): Syntax error on one-line pattern matching
One line pattern matching with a method return value with parameters which are not surrounded by parenthesis raises ... ko1 (Koichi Sasada)
05:43 AM Feature #12075: some container#nonempty?
What about `ary.filled?` ?
It nicely pairs with empty and is not too long.
It’s also a property of the container. An...
p8 (Petrik de Heus)
02:31 AM Feature #12075: some container#nonempty?
I tend to like `ary.size > 0` more than `!ary.empty?` because the former literally has a "positive" nuance and theref... knu (Akinori MUSHA)
03:52 AM Bug #18079 (Closed): [PATCH] make error for MinGW with Clang/LLVM + LLD
```
building spec/ruby/optional/capi/ext/array_spec.so
lld-link: error: x64-ucrt-ruby310.dll: bad file type. Did yo...
xtkoba (Tee KOBAYASHI)

08/16/2021

10:02 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
Ah, I can see there is missing the `read_abstract_origin` on the backtrace. vo.x (Vit Ondruch)
10:00 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
This is the GDB output:
~~~
(gdb) r
Starting program: /builddir/build/BUILD/ruby-3.0.2/miniruby -e Process.kill\...
vo.x (Vit Ondruch)
07:46 PM Bug #17052: Ruby with LTO enabled has issues with SIGSEGV handler
Aren't there any subtle differences in GDB outputs? If fixed as intended, the value of `abstract_origin` can't get su... xtkoba (Tee KOBAYASHI)
06:44 PM Bug #17052 (Open): Ruby with LTO enabled has issues with SIGSEGV handler
Thank you for looking into this.
Unfortunately, I have tried commit:git|72317b333b85eed483ad00bcd4f40944019a7c13 a...
vo.x (Vit Ondruch)
08:30 PM Bug #18078 (Closed): rb_fix2uint should avoid method lookup and use FIXNUM_NEGATIVE_P
`rb_fix2uint` checks if the FIXNUM being converted overflows the `unsigned int` type. Previously this check was being... jhawthorn (John Hawthorn)
07:35 PM Misc #18039: DevelopersMeeting20210819Japan
* [Feature #18007] C extension "allocation function" check
* Should we add a config option and put in 3.1, or just ...
tenderlovemaking (Aaron Patterson)
12:40 PM Bug #18077: Marshal.dump(closed_io) raises IOError instead of TypeError
One concern for that [PR], probably may not be a matter, is closed `IO`s will no longer raise `IOError` on other `Enc... nobu (Nobuyoshi Nakada)
11:33 AM Bug #18077 (Closed): Marshal.dump(closed_io) raises IOError instead of TypeError
Marshal.dump is expected to raise a `TypeError` for unmarshallable objects. But closed streams raise an `IOError`:
...
larskanis (Lars Kanis)
10:35 AM Bug #17949: [SOLARIS11, SPARC, SEGFAULT] generating encdb.h
Just FTR, Clang/LLVM `__builtin_longjmp` is broken for Sparc targets: https://bugs.llvm.org/show_bug.cgi?id=51489 xtkoba (Tee KOBAYASHI)
08:42 AM Bug #18076 (Closed): ext/digest/md5/md5.c: `-Wnull-pointer-subtraction` warning by Clang 13
```
compiling ../../../../ext/digest/md5/md5.c
../../../../ext/digest/md5/md5.c:228:17: warning: performing pointer...
xtkoba (Tee KOBAYASHI)
08:00 AM Revision a8714b83 (git): `popen()` is not available on emscripten
nobu (Nobuyoshi Nakada)
07:02 AM Revision 07b12a1f (git): Suppress unused-variable warnings
nobu (Nobuyoshi Nakada)
06:36 AM Revision ee7bd7d7 (git): `SIZE_MAX` is not `size_t` on emscripten
nobu (Nobuyoshi Nakada)
06:36 AM Revision 54199a3f (git): Use `VALUE` instead of `intptr_t`
On emscripten `intptr_t`, `uintptr_t`, `ptrdiff_t` and so on are
defined as `long`, but `PRIdPTR` and so on defined a...
nobu (Nobuyoshi Nakada)
04:45 AM Revision 5087a6a9 (git): Fix COROUTINE_SRC on emscripten
Select the C source if exists, otherwise the assembler source,
instead of selecting by the coroutine type.
nobu (Nobuyoshi Nakada)
12:07 AM Revision 4cc44bd8 (git): * 2021-08-16 [ci skip]
git[bot]
12:06 AM Revision f8f6d989 (git): coroutine use asm version for handful of architectures for freebsd.
DC

08/15/2021

02:31 PM Revision 164f50de (git): Update TypeProf to 0.15.1
mame (Yusuke Endoh)
11:55 AM Misc #18039: DevelopersMeeting20210819Japan
* [Feature #16182] Should `expr in a, b, c` be allowed or not? (ktsj)
* How about allowing brackets/braces to be om...
ktsj (Kazuki Tsujimoto)
11:53 AM Feature #16182: Should `expr in a, b, c` be allowed or not?
How about allowing brackets/braces to be omitted in one-line pattern matching?
Now that we use `=>` in one-line patte...
ktsj (Kazuki Tsujimoto)
02:40 AM Bug #18075 (Closed): Crasher using ripper + yydebug
Applied in changeset commit:git|2aa6826e81ec880f5e98fa995e44fae0819be95d.
----------
Extract the wrapped value when ...
nobu (Nobuyoshi Nakada)
02:40 AM Revision 2aa6826e (git): Extract the wrapped value when yydebug [Bug #18075]
nobu (Nobuyoshi Nakada)
12:38 AM Revision 4568ba07 (git): Show verbose error messages when single pattern match fails
[0] => [0, *, a]
#=> [0] length mismatch (given 1, expected 2+) (NoMatchingPatternError)
Ignore test failures of...
ktsj (Kazuki Tsujimoto)

08/14/2021

07:36 PM Bug #18000: have_library doesn't work when ruby is compiled with --disable-shared --disable-install-static-library
No objection from me to drop support for the `--disable-shared
--disable-install-static-library` config. I agree with...
alanwu (Alan Wu)
02:44 PM Bug #18000: have_library doesn't work when ruby is compiled with --disable-shared --disable-install-static-library
byroot (Jean Boussier) wrote in #note-6:
> But yeah I wish I could `--disable-shared` without having to ship a huge ...
nobu (Nobuyoshi Nakada)
12:27 AM Bug #18000: have_library doesn't work when ruby is compiled with --disable-shared --disable-install-static-library
> Not sure how byroot (Jean Boussier) or alanwu (Alan Wu) will feel about this approach, though.
At the very least...
byroot (Jean Boussier)
04:04 PM Bug #17588 (Closed): Cannot build with library path with spaces on MSVC
Applied in changeset commit:git|147bdcc436c888a56f81e190d192cd9312015836.
----------
[Win32] put a space before conf...
nobu (Nobuyoshi Nakada)
04:01 PM Revision 147bdcc4 (git): [Win32] put a space before configure options [Bug #17588]
Not to be concatenated with the preceding `--with-`* option. nobu (Nobuyoshi Nakada)
03:27 PM Revision 717f0c56 (git): * 2021-08-15 [ci skip]
git[bot]
03:20 PM Revision 244fc65d (git): Disable checks for LTO [ci skip]
nobu (Nobuyoshi Nakada)
02:58 PM Bug #17052 (Closed): Ruby with LTO enabled has issues with SIGSEGV handler
Applied in changeset commit:git|72317b333b85eed483ad00bcd4f40944019a7c13.
----------
Ignore `DW_FORM_ref_addr` [Bug ...
xtkoba (Tee KOBAYASHI)
02:57 PM Revision 72317b33 (git): Ignore `DW_FORM_ref_addr` [Bug #17052]
Ignore `DW_FORM_ref_addr` form and other forms that are not supposed
to be used currently.
xtkoba (Tee KOBAYASHI)
02:23 PM Revision 29dd7049 (git): Add checks for gcc/clang with LTO
nobu (Nobuyoshi Nakada)
02:22 PM Revision 2e49e433 (git): Disable debug flag for executable files when LTO [ci skip]
Get rid of tons of linker warnings that it could not find object
file symbol for every symbols, when targeting darwin.
nobu (Nobuyoshi Nakada)
02:12 PM Revision 97efd48f (git): Get rid of unintented recursion when RUBY_DEBUG
nobu (Nobuyoshi Nakada)
02:11 PM Revision 1bd021a7 (git): Mark internal class names
nobu (Nobuyoshi Nakada)
02:11 PM Revision 58d82eac (git): Add some "cold" marks
nobu (Nobuyoshi Nakada)
02:11 PM Revision edd27e12 (git): A comment for typed data in `rb_check_type` [ci skip]
nobu (Nobuyoshi Nakada)
02:11 PM Revision d58620e0 (git): Rename labels in `Check_Type` more descriptive
nobu (Nobuyoshi Nakada)
01:13 PM Revision 9f88135f (git): [ruby/readline-ext] Give up Editline
https://github.com/ruby/readline-ext/commit/d924cfc1e6 aycabta (aycabta .)
01:13 PM Revision 2c056816 (git): [ruby/reline] Add workspace member for the latest IRB's implementation
https://github.com/ruby/reline/commit/8b55fc8fee aycabta (aycabta .)
01:13 PM Revision a2f64937 (git): [ruby/reline] Remove private visibility
https://github.com/ruby/reline/commit/fa54e521da aycabta (aycabta .)
01:13 PM Revision acce754e (git): [ruby/reline] Remove interrupt avoidance
There used to be a process that did not want to be interrupted by
SIGINT, so it was trapped, but that process is no l...
aycabta (aycabta .)
01:09 PM Revision 1868b9fa (git): [Win32] Skip over source update just after clone on AppVeyor
nobu (Nobuyoshi Nakada)
09:35 AM Bug #16490: mkmf.rbの非互換な変更
本件は少なくともRuby 2.7.3辺りでは起きなくなっていますので、チケット自体はcloseしていただいても問題ないと考えています。
> dependファイルを直してコンパイルしてみてもエラーになりますので、
これは、コンパ...
taca (Takahiro Kambe)
12:54 AM Bug #16490 (Third Party's Issue): mkmf.rbの非互換な変更
`depend`ファイルを直してコンパイルしてみてもエラーになりますので、tmail gem自体をもっと修正する必要があると思います。
```
tmailscanner.c:105:11: error: implicit de...
nobu (Nobuyoshi Nakada)
09:10 AM Bug #16836: configure-time LDFLAGS leak into ruby pkg-config file
Thanks for taking a look!
jeremyevans0 (Jeremy Evans) wrote in #note-1:
> According to the history, adding `DLDFL...
stapelberg (Michael Stapelberg)
08:10 AM Bug #18048: Thread#join can break with fiber scheduler unblock fails or blocks.
I will check it. ioquatix (Samuel Williams)
08:06 AM Bug #18048: Thread#join can break with fiber scheduler unblock fails or blocks.
I create the backport patch including 050a89543952a2c9e7c9bc938f4fdb538f6c9278 and 13f8521c630a15c87398dee0763e95f59c... nagachika (Tomoyuki Chikanaga)
06:12 AM Feature #16428: Add Array#uniq?, Enumerable#uniq?
Recently I read similar topic again elsewhere. They pointed
* in most cases we have something to do on each duplicat...
gotoken (Kentaro Goto)
04:20 AM Bug #18075 (Closed): Crasher using ripper + yydebug
`method `inspect' called on unexpected T_NODE object` via the following with `-d` (see output at end):
```
#!/usr...
zenspider (Ryan Davis)
02:34 AM Revision a9977ba2 (git): Constified addr2line.c
nobu (Nobuyoshi Nakada)
 

Also available in: Atom