Activity
From 01/27/2022 to 02/02/2022
02/02/2022
-
11:14 PM Feature #13110: Byte-based operations for String
- Eregon (Benoit Daloze) wrote in #note-21:
> I think it should be `byte_index`, `byte_rindex` and `byte_offset`.
> ...
Yes, byterindex may be hard to read.
If we choose byte_*, it may be good to introduce aliases like byte_slice for ex... -
05:58 PM Feature #13110: Byte-based operations for String
- I think it should be `byte_index`, `byte_rindex` and `byte_offset`.
I know there is `String#byteslice`/`getbyte`/`setbyte`, but `byterindex` starts to be really hard to read to the point it doesn't look like a proper Ruby method name to... -
07:10 AM Feature #13110 (Assigned): Byte-based operations for String
- I've created a pull request which adds String#byteindex, String#byterindex, and MatchData#byteoffset:
https://github.com/ruby/ruby/pull/5518 - 11:05 PM Revision 6728f692 (git): * 2022-02-03 [ci skip]
-
11:05 PM Bug #18516: Memory leak on aliasing method to itself
- ruby_3_1 42c9ef769f210d88241a114395dd5ffc27b2fb87 merged revision(s) 7ff1bf317887c0d7b21e91ad548d07b9f05c540c,e89d80702bd98a8276243a7fcaa2a158b3bfb659.
-
11:04 PM Revision 42c9ef76 (git): merge revision(s) 7ff1bf317887c0d7b21e91ad548d07b9f05c540c,e89d80702bd98a8276243a7fcaa2a158b3bfb659: [Backport #18516]
- An alias can suppress method redefinition warning
---
test/ruby/test_alias.rb | 11 +++++++++++
1 file changed, 11 insertions(+)
Fix memory leak at the same named alias [Bug #18516]
When aliasi... -
10:07 PM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- I agree that io-wait at a minimum should not be gemified. Perhaps digest. I think this is a different argument than the overall issue you raised.
I disagree that gems made default should not listed. My main scenario is you have a... -
09:31 PM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- Eregon (Benoit Daloze) wrote in #note-9:
> These gems are default gems and so available by default, and for the foreseeable future they will always be shipped with Ruby, so there is no risk to not being super explicit about these depend... -
09:24 PM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- There are stdlib gems of dubious value, like io-wait or digest, but I'm not sure where to draw the line. My rule of thumb would be that if a stdlib exists as a gem, other gems that need it should explicitly depend upon it, because that's...
-
07:33 PM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- These gems are default gems and so available by default, and for the foreseeable future they will always be shipped with Ruby, so there is no risk to not being super explicit about these dependencies (and most code out there using them d...
-
07:23 PM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- While I understand the issue, I believe the correct approach is to actually specify the dependencies and specify them always and everywhere. Yes, that will break something somewhere, but once everything is gemifie and all dependencies ar...
-
12:06 PM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- Another issue with upstreaming code to default gems is some default gems need many internals and those should not be gems, they should be core or stdlib.
For TruffleRuby for instance, I don't want to expose many internals to support `st... -
11:58 AM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- Here is a set of PR to solve the issue for JRuby and TruffleRuby for net-* gems:
https://github.com/ruby/net-protocol/pull/6
https://github.com/ruby/net-imap/pull/56
https://github.com/ruby/net-pop/pull/10
https://github.com/ruby/net... -
11:48 AM Bug #18567: Depending on default gems in stdlib gems when not needed considered harmful
- Here is a practical example of needless dependencies on default gems causing JRuby to not be able to install e.g. `net-imap`, even though JRuby has the needed stdlibs:
https://gist.github.com/eregon/5ea86a9625fc32844c81c5f1448d02d0 -
11:22 AM Bug #18567 (Closed): Depending on default gems in stdlib gems when not needed considered harmful
- CRuby over time moves more and more code to default gems, to bundled gems and or even stops shipping some gems which used to be stdlibs (#5481).
I believe the main motivation for that is being to fix security issues without needing to m... -
08:10 PM Revision 7529c538 (git): [ruby/net-http] Do not set SNI hostname if connecting to IP address
- RFC 6066, section 3, explicitly disallows the use of an IP address
as an SNI server name. So check if the connection is being made
to an IP address using the resolv regexps, and do not set an SNI
hostname in that case.
Recent changes t... -
07:24 PM Feature #18568: Explore lazy RubyGems boot to reduce need for --disable-gems
- @eregon I remember seeing code in TruffleRuby that built up an index of default gem files, so it would know which ones might need to trigger a gem load. I cannot find that now.
Could you provide some links to show how this is handled,... -
07:19 PM Feature #18568: Explore lazy RubyGems boot to reduce need for --disable-gems
- Another comparison: in JRuby, RubyGems booting accounts for around 1/3 of JRuby's startup time in our "fastest" mode. Given how poor our startup time is already, we are understandably interested in ways to speed it up.
-
07:13 PM Feature #18568 (Feedback): Explore lazy RubyGems boot to reduce need for --disable-gems
- In https://bugs.ruby-lang.org/issues/17684 there was debate about whether the `--disable-gems` flag should be removed. Several folks were in favor, since Ruby without RubyGems is fairly limited, but others wanted to keep the flag for sma...
-
06:04 PM Feature #13653: Bundled zlib helper
- And for macOS: try to not mess up your system by installing random stuff in /usr/local, that's the source of many issues reported to `ruby-build`.
Using Homebrew is fine (or MacPorts), but manually installing stuff in /usr/local is aski... -
01:42 AM Feature #13653 (Closed): Bundled zlib helper
- After 4 years, We should remove the bundled source code like zlib, libyaml, libffi.
for mswin users: use vcpkg, other platforms: use the official package manager like apt, dnf. - 05:21 PM Revision 3ca244a2 (git): * 2022-02-03 [ci skip]
-
05:20 PM Revision 2913a2f5 (git): Treat TS_ICVARC cache as separate from TS_IVC cache
-
03:42 PM Feature #18368: Range#step semantics for non-Numeric ranges
- "Dead-on-arrival" hyberbole aside, it does seem that using `+` semantics would allow Range#step to work "for free" with many existing classes.
More importantly, I realized there is no need to introduce any backward incompatibility: if b... -
02:52 PM Revision 7b77d466 (git): Decouple GC slot sizes from RVALUE
- Add a new macro BASE_SLOT_SIZE that determines the slot size.
For Variable Width Allocation (compiled with USE_RVARGC=1), all slot
sizes are powers-of-2 multiples of BASE_SLOT_SIZE.
For USE_RVARGC=0, BASE_SLOT_SIZE is set to sizeof(RVA... -
02:51 PM Feature #18438: Add `Exception#additional_message` to show additional error information
- My concern was that Sentry will now use #detailed_message instead of #message, but it will now include the exception class, unlike before. But if Sentry is ok with that there's no problem.
-
06:23 AM Feature #18438: Add `Exception#additional_message` to show additional error information
- @Dan0042 I think your last comment is a different topic. I'd like to keep one proposal as small as I can.
-
01:52 PM Revision af107710 (git): Add `econv_get_encoding` function
-
01:39 PM Feature #18566: Merge `io-wait` and `io-nonblock` gems into core IO
- I agree this would make a lot of sense, also for `io-nonblock` which is also just a couple IO methods.
-
08:55 AM Feature #18566: Merge `io-wait` and `io-nonblock` gems into core IO
- It makes sense to me.
-
08:52 AM Feature #18566: Merge `io-wait` and `io-nonblock` gems into core IO
- I am happy to do the initial implementation.
-
08:17 AM Feature #18566 (Closed): Merge `io-wait` and `io-nonblock` gems into core IO
- I think we should reconsider status of `io-wait`, and consider simply merging it into core's `IO`.
According to @nobu it's only a gem for "historical" reasons.
Any non trivial IO code will likely make use of it, and it's just 400 l... -
12:21 PM Revision d8c54bac (git): [ruby/net-protocol] Fix typo in gem description [ci skip]
- https://github.com/ruby/net-protocol/commit/35d7b08a54
-
12:17 PM Revision 94687a68 (git): [ruby/net-protocol] Drop unused gemspec directives
- This gem exposes no executables.
https://github.com/ruby/net-protocol/commit/3c4def2a64 - 08:53 AM Revision 7bef8ed1 (git): Update bundled gems list at 2022-02-02
-
08:32 AM Misc #18557: DevMeeting-2022-02-17
- - [Feature #18498] Introduce a public `WeakKeysMap` that compares by equality (byroot)
- Ruby's current weak reference constructs are not very usable.
- The most useful weak collection that is offered by most platform is `WeakKeysMap... -
01:43 AM Misc #18557: DevMeeting-2022-02-17
- * [Feature #18513] Hide patchlevel from `ruby -v`
* There is no reason to display it now.
-
07:57 AM Revision 6794f8cf (git): Merge pull request #5482 from hsbt/rubygems-3-3-bundler-2-3
- Merge RubyGems 3.3.x and Bundler 2.3.x
- 04:30 AM Revision 69463805 (git): * 2022-02-02 [ci skip]
-
04:29 AM Revision 27046210 (git): Remove "Miscellaneous checks" from CI
- It is expected to use on master branch
- 04:26 AM Revision ea6b6f1a (git): Update bundled gems list at d4a8c04dc7bb1c9aa48eaf50dc6b18 [ci skip]
-
04:25 AM Revision d4a8c04d (git): Update RBS (#5515)
- * Bundle RBS 2.1.0
-
02:22 AM Bug #18565 (Rejected): strptime reports invalid date when string is "130AM" and format string is '%I:%M%p'
- I don't think this is a bug. `strptime` is supposed to be the inverse of `strftime`:
```ruby
DateTime.now.strftime('%I%M%p')
# => "0617PM"
DateTime.now.strftime('%l%M%p')
# => " 617PM"
```
If you pass the same formats to `st... -
02:06 AM Bug #18565 (Rejected): strptime reports invalid date when string is "130AM" and format string is '%I:%M%p'
- `DateTime.strptime("1:30PM", '%I:%M%p')` and `DateTime.strptime("1:30PM", '%l:%M%p')` both return
`#<DateTime: 2022-02-01T13:30:00+00:00 ((2459612j,48600s,0n),+0s,2299161j)>`
`DateTime.strptime("130PM", '%I%M%p')` and `DateTime.strpt... - 12:08 AM Revision bb845fb9 (git): * 2022-02-02 [ci skip]
-
12:08 AM Revision aff4b219 (git): Fix a typo [ci skip]
02/01/2022
-
11:11 PM Bug #18436: Fix Pathname dot directory globbing
- I noticed this change just now. We have some programs which depended on the previous behavior. It loses backward compatibility, so I think it should have been noted in NEWS.md in Ruby 3.1.0. I understand it's too late to say that, though.
-
09:27 PM Bug #18560: "Compaction isn't available on this platform" error running PG test suite on ppc64le
- FWIW, TruffleRuby has `Primitive.method_unimplement` specifically to achieve to achieve the same as `rb_f_notimplement` but in Ruby code.
Example usage: https://github.com/oracle/truffleruby/blob/4eddae9d18137567beb25e6e4ef2c932fa9de7ab... -
05:27 PM Bug #18560: "Compaction isn't available on this platform" error running PG test suite on ppc64le
- Thx for the clarification. For now, I have reported the original issue to the PG upstream [1]. Keeping this open should there be a chance to follow the `fork` example.
[1] https://github.com/ged/ruby-pg/issues/423 -
08:47 PM Misc #18557: DevMeeting-2022-02-17
- - [Feature #18249] The ABI version of dev builds of CRuby does not correspond to the ABI
- ABI checking for development Ruby.
- Calculates the MD5 hash of header files during compilation of Ruby, stores this MD5 in native exten... -
08:37 PM Bug #18249: The ABI version of dev builds of CRuby does not correspond to the ABI
- Hello, I’d like to summarize the motivation for this feature and the implementation I proposed.
# Motivation for this feature
At Shopify, we run Ruby head on CI daily against several services. We also run Ruby head on a small porti... -
08:27 PM Feature #18563: Add "graphemes" and "each_grapheme" aliases
- (I have added to the description an url to matz's original statement)
-
07:44 PM Feature #18563 (Closed): Add "graphemes" and "each_grapheme" aliases
- https://bugs.ruby-lang.org/issues/13780#note-10
> grapheme sounds like an element in the grapheme cluster. How about each_grapheme_cluster?
> ...
Languages that have added grapheme cluster support seem to be almost exclusively opting... -
07:50 PM Feature #18438: Add `Exception#additional_message` to show additional error information
- I have created another ticket to summarize the final spec of this proposal: #18564.
-
07:49 PM Feature #18564 (Closed): Add Exception#detailed_message
- (This ticket is for recording the final spec of #18438)
## Proposal
I would introduce a method `Exception#detailed_message`, and let the default error printer use it instead of `Exception#message` to create a error output.
```
... -
02:19 PM Feature #17873: Update of default gems in Ruby 3.1
- Eregon (Benoit Daloze) wrote in #note-38:
> Note: Whenever a gem is extracted from stdlib, we should be careful the gem can be installed on older Ruby versions, otherwise it's not possible for a library to depend on this newer gem via R... -
02:17 PM Feature #17873: Update of default gems in Ruby 3.1
- Note: Whenever a gem is extracted from stdlib, we should be careful the gem can be installed on older Ruby versions, otherwise it's not possible for a library to depend on this newer gem via RubyGems (and it has to, otherwise `require` f...
-
12:56 PM Bug #18443: IO read/write/wait hook bug fixes.
- ruby_3_1 cd4aae430da8303dac9f1be2d1e1b7ce1bc8a458 merged revision(s) f27eb8148f5a72bbacfebfecc7de9305471bb5c9,d75f7078c831d45ab5ba2fae4fbb308d01a21e46,d5836db1b398a7936b0461b3011db66f6cc8c490.
-
12:56 PM Revision cd4aae43 (git): merge revision(s) f27eb8148f5a72bbacfebfecc7de9305471bb5c9,d75f7078c831d45ab5ba2fae4fbb308d01a21e46,d5836db1b398a7936b0461b3011db66f6cc8c490: [Backport #18443]
- Sync io-console gem.
---
ext/io/console/console.c | 8 ++++++--
test/io/console/test_io_console.rb | 8 ++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
[ruby/io-console] bum... -
12:53 PM Revision 8177e3b8 (git): Revert "Fix console.c usage of `rb_io_wait`."
- This reverts commit aa3b2c81c8de2e70bd100e92436f15c03523eaf7.
-
12:42 PM Bug #18517: 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
- ruby_3_1 1f17463dec2ab1535096cb56005a840eae4fea5b merged revision(s) 6a6227e0168b059c3ed34c9f0ace2e5dc2364221.
-
12:41 PM Revision 1f17463d (git): merge revision(s) 6a6227e0168b059c3ed34c9f0ace2e5dc2364221: [Backport #18517]
- Shifting zero always results in zero [Bug #18517]
---
numeric.c | 2 ++
1 file changed, 2 insertions(+) -
12:28 PM Misc #16512: Improving `www.ruby-lang.org` reference by merging with `rubyreferences.github.io`
- @hsbt I am up to the task!
There would be a few questions of what's the best way of handling it, I'll prepare the plan/list this week. Basically, there should be made a decision on the process of synchronization of the docs, and updat... -
12:15 PM Misc #16512: Improving `www.ruby-lang.org` reference by merging with `rubyreferences.github.io`
- @zverok Can you handle this? I'll support to migrate your documentation to www.ruby-lang.org or docs.ruby-lang.org.
- 11:07 AM Revision 0b2f6b94 (git): [rubygems/rubygems] Skip "seller shipped" notification after delivery
- If a Shipment has been delivered, there is no point in notifying the
buyer that the seller shipped. Instead, we should simply notify the
buyer that the shipment was delivered. This is relevant in cases where
the seller is late to mark a ... -
11:04 AM Revision f6894711 (git): [ruby/io-wait] Exclude rake files from packages
- https://github.com/ruby/io-wait/commit/7be58cd7f4
-
05:38 AM Feature #18462: Proposal to merge WASI based WebAssembly support
- mame (Yusuke Endoh) wrote in #note-4:
> Feel free to ask me if you have a question.
Wow, thanks for putting this together! I did in fact have a question, but I figure we can move the conversation somewhere else to keep this Ruby tick... -
01:59 AM Feature #18462: Proposal to merge WASI based WebAssembly support
- Hi @jez
Here you are: https://github.com/mame/emruby/
In short, please setup emsdk and then try `./configure --host wasm32-unknown-emscripten --with-static-linked-ext --with-ext=(an extension names that you want to statically link)... -
05:11 AM Revision ddb9d60f (git): [ruby/io-wait] Make the gem a noop on Rubies older than 2.6
- Ref: https://github.com/mikel/mail/pull/1439
Some gems depend on io-wait, but still support older rubies,
so they have to chose between droping support or not listing io-wait.
But io-wait could act a a noop on older rubies.
https://gi... - 04:22 AM Revision 804dca7b (git): Update default gems list at fc4fbeef28b1d243e45d7fc8d60778 [ci skip]
-
04:22 AM Revision fc4fbeef (git): [ruby/io-wait] bump up to 0.2.2
- https://github.com/ruby/io-wait/commit/e15a2486b2
-
03:21 AM Revision ec906191 (git): Restore workaround for test_rubygems.rb, It still fails with chkbuild encironment
-
01:39 AM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
- headius (Charles Nutter) wrote in #note-25:
> Is there a way to prohibit the `to_enum` form? I don't think it will be useful to support since it may vary greatly across implementations (depending on what the stack looks like and what ge... -
12:45 AM Feature #16663: Add block or filtered forms of Kernel#caller to allow early bail-out
- Is there a way to prohibit the `to_enum` form? I don't think it will be useful to support since it may vary greatly across implementations (depending on what the stack looks like and what gets included).
It does raise a question for m...
01/31/2022
-
11:09 PM Revision 6623d60e (git): Try make this more readable and consistent with other targets
-
11:09 PM Revision e53af7d1 (git): Tweaks to freeze bundler CI
- Currently some specs are broken because `rspec-mocks-3.10.3` is used,
which has some breaking changes, apparently.
This change makes ruby-core install the same gems installed upstream for
running bundle specs, so that things never break... -
11:09 PM Revision 517d7c32 (git): Sync latest Bundler & RubyGems
-
08:45 PM Bug #18562 (Closed): throw_data passed to rescue through require
- When we throw in a require it's incorrectly considered as a raise, making the `T_IMEMO` `throw_data` object accessible via rescue (in a contrived case). In regular usage this is unlikely to cause an issue because `Module#===` immediately...
-
08:37 PM Bug #18561: Make singleton def operation and define_singleton_method explicitly use public visibility
- Related JRuby pull request that makes singleton method definition always public (in response to the ostruct issue linked above):
https://github.com/jruby/jruby/pull/7055 -
08:29 PM Bug #18561: Make singleton def operation and define_singleton_method explicitly use public visibility
- @marcandre provided a possibly more common case, but I still highly doubt that anyone would expect this to behave differently than the unmatched scope version:
```
$ ruby -e 'class Foo; class << Foo; private; Foo.define_singleton_met... -
07:09 PM Bug #18561 (Closed): Make singleton def operation and define_singleton_method explicitly use public visibility
- Currently nearly all uses of `define_singleton_method` or `def obj.foo` will ignore the caller's frame/cref visibility and use the default visibility of public. I propose this be made explicit in the code, documentation, and ruby specs.
... - 08:20 PM Revision 2b2e3b79 (git): * 2022-02-01 [ci skip]
-
08:20 PM Revision d5c9710b (git): [rubygems/rubygems] Remove encoding pragma from specification.rb
- - it is not used since it is not at the top of the file
- it is not useful anymore
https://github.com/rubygems/rubygems/commit/6aee05d923 -
06:54 PM Feature #18462: Proposal to merge WASI based WebAssembly support
- katei (Yuta Saito) wrote:
> For example, CRuby already supports WebAssembly target by Emscripten, but Emscripten heavily depends on JavaScript to emulate some missing features in WebAssembly itself.
@katei do you have a link showing ... -
05:51 PM Feature #18554: Move unicode_normalize to a default gem
- @duerst Thank you for spelling that out. I figured there are some additional nuances to this, since the unicode tables are also in C code and used internally by many parts of Ruby. In that regard, it is at least much easier for us to imp...
-
04:38 PM Bug #18560: "Compaction isn't available on this platform" error running PG test suite on ppc64le
- @peterzhu2118 JFYI: If the method body is `rb_f_notimplement`, `Kernel#respond_to?` returns false.
For example, `Kernel#fork` is defined as such in Windows. https://github.com/ruby/ruby/blob/605f226142a47c4f9e4cc88717c5d6170bc3d7f1/pr... -
04:19 PM Bug #18560: "Compaction isn't available on this platform" error running PG test suite on ppc64le
- I think this is expected. `GC.compact`, `GC.auto_compact=`, `GC.verify_compaction_references` will raise `NotImplementedError` when compaction is not supported on the platform.
`GC.respond_to?(:compact)` is just to check that the meth... -
03:13 PM Bug #18560 (Closed): "Compaction isn't available on this platform" error running PG test suite on ppc64le
- Trying to execute test suite of `pg` gem on ppc64le, I observe a following error:
~~~
... snip ...
1) GC.compact should compact PG::TypeMapByClass #328
Failure/Error: GC.verify_compaction_references(toward: :empty, double_... -
04:09 PM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
- Would it be feasible for #full_message to accept a String/IO argument to which it writes the parts of the message? So the error printer could call `err.full_message(output_to: $stderr)` in order to avoid buffering.
-
02:58 PM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
- I have given it a try, but I faced two non-trivial test failures.
One is TestException#test_cause_exception_in_cause_message.
https://github.com/ruby/ruby/blob/b01657c4707eadd9de9573ce9818d0b5f0fe3047/test/ruby/test_exception.rb#L9... -
03:58 PM Feature #18438: Add `Exception#additional_message` to show additional error information
- Thank you, it's much clearer now.
Follow-up question: Should #detailed_message include the class of the error
a) always (unlike #message currently)
b) only if `highlight` keyword is true
c) based on some other keyword (like in #not... -
10:31 AM Feature #18438: Add `Exception#additional_message` to show additional error information
- I talked with @matz and @nobu about that.
The current implementation of `Exception#full_message` adds `\e[1m` (i.e., bold start) for each beginning of line of `#message`, and `e[m` (i.e., bold end) for each end. (Also, it adds `" (Run... -
02:47 PM Bug #17263: Fiber context switch degrades with number of fibers, limit on number of fibers
- I heard someone ran into this error in a GraphQL-Ruby context, so I thought I'd check out this script on the latest Ruby. It didn't crash as-written, so I added a couple more orders of magnitude. It still finished fine locally, but slowe...
-
02:42 PM Revision 605f2261 (git): Fix heap page iteration in gc_verify_heap_page
- The for loops are not correctly iterating heap pages in
gc_verify_heap_page. -
12:14 PM Feature #18559 (Closed): Allocation tracing: Objects created by the parser are attributed to Kernel.require
- Marking this as a feature, because I think it should be improved but can hardly be considered a bug.
### Repro
Consider the following script:
```ruby
# /tmp/allocation-source.rb
require 'objspace'
require 'tmpdir'
source =... -
10:22 AM Bug #18497: Fiber内でProcess.daemonをするとSegmentation faultが起こる
- ruby_3_1 1c426ddb25e2ccb169720e4f9894605596fe594d merged revision(s) 5c7af72304d0ad33cd3f21b24a4bc44e8acd5b2c,d650b17686d49c2ce8e6a87039861154e93d4621.
-
10:22 AM Revision 1c426ddb (git): merge revision(s) 5c7af72304d0ad33cd3f21b24a4bc44e8acd5b2c,d650b17686d49c2ce8e6a87039861154e93d4621: [Backport #18497]
- Assuming EXIT_SUCCESS equals 0 is not portable
---
test/ruby/test_fiber.rb | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
`rb_fiber_terminate` must not return [Bug #18497]
In a for... -
09:15 AM Bug #18489: Segmentation fault with ruby 3.1.0 in `active_decorator`
- ruby_3_1 629b9da7dbdcaff04d6dde70f2431396f66e03e5 merged revision(s) f3c77bd480834f2835fe6fef5c0475336248dbde.
-
09:15 AM Revision 629b9da7 (git): merge revision(s) f3c77bd480834f2835fe6fef5c0475336248dbde: [Backport #18489]
- Fix the placeholder subclass entry skipping [Bug #18489]
---
class.c | 3 +--
test/ruby/test_module.rb | 9 +++++++++
2 files changed, 10 insertions(+), 2 deletions(-) -
09:05 AM Bug #18294: error when parsing regexp comment
- I understand it is not easy to fix, and I sure can live with it.
ありがとうMatzさん \^_^ -
02:28 AM Bug #18294: error when parsing regexp comment
- I admit this is a bug and it should be fixed. But implementation-wise, it's difficult to fix. Considering the (small) impact of the bug, its priority is low.
We will fix it but it could take a long time.
Matz.
- 06:35 AM Revision 5b0c7b4a (git): Prefer `wait_readable` rather than `IO.select`.
- 06:35 AM Revision bdd3cf00 (git): Fix incorrect minimum read length.
- 06:35 AM Revision aa3b2c81 (git): Fix console.c usage of `rb_io_wait`.
-
05:02 AM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- matz (Yukihiro Matsumoto) wrote in #note-1:
> `nil` does not have its singleton class, but `NilClass` plays the role of the singleton class
I would appreciate it if @matz could kindly explain what the difference is between "being a s... -
02:55 AM Bug #11064: #singleton_methods for objects with special singleton_class returns an empty array
- `nil` does not have its singleton class, but `NilClass` plays the role of the singleton class (since `nil` is the only instance of `NilClass`).
So a singleton method definition defines a method in `NilClass`. It's a kind of special trea... -
03:19 AM Bug #17988: pod update on Mac mini M1 with Big Sur after moving project from iMac. Xcode 12.4
- For the record: we confirmed that this issue was fixed by `gem install ffi -- --enable-libffi-alloc`. See #18555 and https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
03:18 AM Bug #18512 (Third Party's Issue): MacOS 12.1 Monterey Bug
- I believe this is the same case as #18555. We confirmed that that issue was fixed by `gem install ffi -- --enable-libffi-alloc`. See #18555 and https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
03:17 AM Bug #18505 (Third Party's Issue): Crash reported while trying to run Cucumber via ruby on macbook air M1 processor
- I believe this is the same case as #18555. We confirmed that that issue was fixed by `gem install ffi -- --enable-libffi-alloc`. See #18555 and https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
03:16 AM Bug #18496 (Third Party's Issue): Segmentation fault at 0x0000000005107620
- I believe this is the same case as #18555. We confirmed that that issue was fixed by `gem install ffi -- --enable-libffi-alloc`. See #18555 and https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
02:23 AM Feature #18515: Add Range#reverse_each implementation
- Dan0042 (Daniel DeLorme) wrote in #note-3:
> I agree with both of those statements, but Integer is the only class that has #pred, so in practice "using pred" and "specialized implementation for Integer" are the same thing.
Yes, that ... -
02:17 AM Bug #18475: Yielding an element for Enumerator in another thread dumps core
- ruby_3_1 8e3bce0841497fc00ccdaf45f6583c25720a2d3f merged revision(s) ae5458f228a5477383e9c00425d85d50a3867817.
-
02:16 AM Revision 8e3bce08 (git): merge revision(s) ae5458f228a5477383e9c00425d85d50a3867817: [Backport #18475]
- thread.c: Convert TAG_BREAK to a normal exception at thread top-level
[Bug #18475]
---
test/ruby/test_enum.rb | 11 +++++++++++
thread.c | 3 +++
2 files changed, 14 insertions(+) -
02:15 AM Bug #18468: Tutorial Link for Optionparser is broken
- ruby_3_1 abdd655afd6f3f36553e6bb0d6b3e3eac09ae977 merged revision(s) 92630e2346a221fdfeaa484632938a06765bc6e5.
-
02:15 AM Revision abdd655a (git): merge revision(s) 92630e2346a221fdfeaa484632938a06765bc6e5: [Backport #18468]
- [ruby/optparse] Fix links to the page directory files [Bug #18468]
https://github.com/ruby/optparse/commit/dab72c543d
---
doc/optparse/creates_option.rdoc | 4 ++--
doc/optparse/option_params.rdoc | 2 +... -
01:55 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- @anthonyaykut Thank you for your cooperation! Because there are many bug reports about the issue of ffi with M1, this will be a great solution case.
-
12:31 AM Bug #18555 (Closed): Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
-
12:45 AM Misc #18557: DevMeeting-2022-02-17
- * [Feature #13110] Byte-based operations for String
* Are there any objections to introduce byteindex, byterindex and byteoffset? (not bytesplice)
* Should the method names be `byte_index`, `byte_rindex`, and `byte_offset`?
-
12:33 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
- https://github.com/ruby/ruby/pull/5497.diff
01/30/2022
-
11:18 PM Feature #18515: Add Range#reverse_each implementation
- kyanagi (Kouhei Yanagita) wrote in #note-2:
> In general, I think it would be better to improve `#reverse_each` by using `#pred` (predecessor; the inverse of `#succ`) if the element has.
> ...
I agree with both of those statements, but... -
11:10 PM Feature #18438: Add `Exception#additional_message` to show additional error information
- Very happy about this.
mame (Yusuke Endoh) wrote in #note-16:
> Note: the rdoc of `detailed_message` should explicitly state that the method should accept `highlight` keyword that allows using ANSI terminal escape sequences to highli... - 10:59 PM Revision b01657c4 (git): [DOC] Fix case for new sentence.
-
10:38 PM Revision f924e05b (git): [DOC] Fix a typo in the NEWS.md
- Follow up of https://github.com/ruby/ruby/commit/fbb3cab.
-
10:17 PM Revision 99a65e80 (git): [DOC] Enhanced RDoc for io.c (#5460)
- Treats:
Kernel#readline
Kernel#readlines
Kernel#`cmd`
IO#advise
IO.select
IO#ioctl
IO#fcntl
Kernel#syscall
IO.pipe -
10:13 PM Feature #18368: Range#step semantics for non-Numeric ranges
- > the implication is that `range.step(1)` (using `+`) would have different semantics than `range.each` (using succ); I have reservations about that.
Well, it is already so to some extent. Say, with numeric ranges `#step` returns `Arit... -
09:43 PM Feature #18368: Range#step semantics for non-Numeric ranges
- @zverok if understand correctly, the implication is that `range.step(1)` (using `+`) would have different semantics than `range.each` (using `succ`); I have reservations about that.
Also, due to backward compatibility I don't think it... -
02:12 PM Feature #18368: Range#step semantics for non-Numeric ranges
- Some clarifications after rereading the corresponding [dev.meeting log](https://github.com/ruby/dev-meeting-log/blob/master/DevMeeting-2022-01-13.md#feature-18368-rangestep-semantics-for-non-numeric-ranges-zverok):
**My proposal is no... -
09:58 AM Feature #18368: Range#step semantics for non-Numeric ranges
- > Here's one idea: how about adding an #increment(n) method. For Numeric, Float, Time, Date, it would be an alias to +. For String it would be equivalent to doing succ n times. So Range#step would have the semantics of using begin.increm...
-
04:15 AM Feature #18368: Range#step semantics for non-Numeric ranges
- > matz: I'd like to allow numeric-type '+', but to deny concatination-type '+'
> ...
I fully agree with the above. Here's one idea: how about adding an `#increment(n)` method. For Numeric, Float, Time, Date, it would be an alias to `+`.... -
09:48 PM Feature #16122: Data: simple immutable value object
- I'm quite fond of this proposal--I basically never use Struct unless I specifically need mutability and have been using the values gem for years, which has a simple implementation of about 100 lines:
https://github.com/tcrayford/Value... -
08:57 PM Feature #16122: Data: simple immutable value object
- Eregon (Benoit Daloze) wrote in #note-29:
> ValueStruct or ImmutableStruct or FrozenStruct maybe?
Those are good ideas. Or to highlight the "pared-down" aspect of this strict version of Struct: SimpleStruct / PlainStruct / BasicStruc... -
08:39 PM Feature #16122: Data: simple immutable value object
- Some more alternatives to get the ideas rolling: `Unit` and `Item` (might be paired with Struct)
I also like `Box`. -
12:53 PM Feature #16122: Data: simple immutable value object
- ValueStruct or ImmutableStruct or FrozenStruct maybe?
ImmutableStruct would probably only make sense if values are made immutable too, which doesn't seem proposed here.
I think the nesting of `Struct::Value` feels a bit weird, especi... - 06:47 PM Revision b0bd26ad (git): * 2022-01-31 [ci skip]
-
06:47 PM Revision e75bd8df (git): pend some tests while using to_binary
- ISeqs from ISeq#to_binary/load do not support `keep_script_lines`
now so some tests should be pending tests with
`RUBY_ISEQ_DUMP_DEBUG=to_binary` -
12:45 PM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
- I think Ruby users already know well what `#<MyObject:0xXXXXXXXXXXXXXXXX>` means, and using another naming is likely more confusing.
Either way it will need some getting used to as it's new output, and then it will just be natural.
The... -
03:36 AM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
- "undefined method 'time' for object Integer" is grammatically incorrect.
It would need to be "undefined method 'time' for Integer object".
Or "instance of Integer" or "object of type Integer". -
12:32 PM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
- Great!
@mame Do you plan to make a PR or should I give it a try? -
11:19 AM Bug #18292: 3.1.0-dev `include` cause Module to be marked as initialized
- ruby_3_1 28ec24db4a8201fa624692cdc1cbef9b00489412 merged revision(s) a79c59472df38297c246b27713c277f2edaefa7a.
-
10:08 AM Revision 28ec24db (git): merge revision(s) a79c59472df38297c246b27713c277f2edaefa7a: [Backport #18292]
- Allow include before calling Module#initialize
This is to allow Module subclasses that include modules before
calling super in the subclass's initialize.
Remove rb_module_check_initializable from Module#initiali... -
10:07 AM Bug #18469: Backport c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5
- ruby_3_1 1a1737530bff683041b8f45e7acac8c5c85c4163 merged revision(s) c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5.
-
10:07 AM Revision 1a173753 (git): merge revision(s) c764e368bd9c0487e6cc97f8a62e0e0e99a0d7c5: [Backport #18469]
- Fix default --jit-max-cache in `ruby --help`
changed at 028f1887c2bfa50dcfc1b623470d6ab1b880fdde
---
ruby.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-) -
10:07 AM Bug #18436: Fix Pathname dot directory globbing
- ruby_3_1 e75246c287436621658bc2b8a5f999d8991e7d1d merged revision(s) 5917f49ad03cd3b2c13d3eea85c969a113b83bf8.
-
10:06 AM Revision e75246c2 (git): merge revision(s) 5917f49ad03cd3b2c13d3eea85c969a113b83bf8: [Backport #18436]
- Fix documentation for Dir.glob
Dir.glob("*", File::FNM_DOTMATCH) no longer includes ".." in the
returned array as of Ruby 3.1.
Fixes [Bug #18436]
---
dir.rb | 2 +-
1 file changed, 1 ins... -
10:06 AM Bug #18453: YJIT breaks Rails collection caching
- ruby_3_1 2640161df5cf18d08ec86a0c1b913d4ee99e102a merged revision(s) 5414de4b6e4372af832e338f8eb7a9fe8de17c84.
-
10:06 AM Bug #18434: error_highlight does not work for -e option
- ruby_3_1 20091ccad34904cb5ded13a8787f6662a8e2df68 merged revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d.
-
10:06 AM Bug #18458: Segmentation fault when missing Warning#warn method
- ruby_3_1 d3a2a3c5420fecfee54cbf3fbdd9287bc6c58f03 merged revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5.
-
10:02 AM Revision d3a2a3c5 (git): merge revision(s) 9e0a91d0640600f2dfd7fc1d5fae6667019c9ca5: [Backport #18458]
- Don't segfault if Warning.warn is undefined
Check that there is a method entry for the method before passing
it to rb_method_entry_arity.
Fixes [Bug #18458]
---
error.c | 3 +... -
10:02 AM Bug #18558 (Closed): Numbered arguments + eval
- Yes, see [Feature #16432].
-
10:01 AM Revision 2640161d (git): merge revision(s) 5414de4b6e4372af832e338f8eb7a9fe8de17c84: [Backport #18453]
- YJIT: Fix SP index with optarg and unordered kwarg
Previously when we were calling a method with an optional argument and
multiple keywords arguments which weren't in the order the receiver
expected we would use ... -
10:01 AM Revision 20091cca (git): merge revision(s) 0dc7816c4350683ccd020f5759eee4914de0085d: [Backport #18434]
- Make RubyVM::AST.of work with code written in `-e` command-line
option
[Bug #18434]
---
ast.c | 11 +++++++----
test/ruby/test_ast.rb | 5 +++++
2 files changed, 12 inse... -
06:42 AM Bug #18443: IO read/write/wait hook bug fixes.
- I have confirmed the PR https://github.com/ruby/ruby/pull/5473 contains the two whole backports and a partial backport from master branch.
I think e4cd319f3d6560b76dbc1c7e89aa4d790a2d1e43 should be backported. @naruse can I backport i... -
01:42 AM Bug #17629 (Closed): macOS, readline compiled with libedit: adding entries to history doesn't work unless Readline.readline is called before populating it
01/29/2022
-
08:34 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Right, I have an update -- I worked out that `syntax` was also a gem :) so in the end I added:
```
gem "middleman-syntax"
gem "middleman-sprockets"
gem "middleman-autoprefixer"
gem "nokogiri"
```
to get everything working! It'... -
08:16 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-9:
> anthonyaykut (Anthony Aykut) wrote in #note-8:
> ...
OK, I did as suggested... `bundle install` took a while to complete, but looked good. I tried to run `bundle exec middleman server`, but it co... -
05:24 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- anthonyaykut (Anthony Aykut) wrote in #note-8:
> and then... `bundle install`:
> ...
...
> Using ffi 1.15.5
...
> ...
I think the command did not recompile ffi gem. Could you delete already-installed gems and retry `bundle install`?... -
07:30 PM Bug #17629: macOS, readline compiled with libedit: adding entries to history doesn't work unless Readline.readline is called before populating it
- Can someone close this ticket? I don't see a possibility to do it myself.
-
07:28 PM Bug #18558 (Closed): Numbered arguments + eval
- ```ruby
def yield_2_args
yield 1, 2
end
yield_2_args { p [eval("_1"), _2] }
```
Running with ruby 2.7.2, I get output:
```
[1, 2]
[1, 2]
```
With 3.0.2, I get output:
```
[1, 2]
(eval):1:in `block in <main>': unde... -
01:59 PM Revision 44c44b9b (git): Ignore warnings at reading debug info for now
- Something seems changed on FreeBSD 13.
-
10:07 AM Revision 67f4729f (git): [Bug#18556] Fallback `MAP_ ANONYMOUS`
- Define `MAP_ANONYMOUS` to `MAP_ANON` if undefined on old systems.
-
08:36 AM Misc #18557 (Closed): DevMeeting-2022-02-17
- # The next dev meeting
**Date: 2022/02/17 13:00-17:00** (JST)
Log: https://github.com/ruby/dev-meeting-log/blob/master/DevMeeting-2022-02-17.md
- Dev meeting *IS NOT* a decision-making place. All decisions should be done at the bu... -
08:36 AM Misc #18399 (Closed): DevMeeting-2022-01-13
-
08:32 AM Feature #18370: Call Exception#full_message to print exceptions reaching the top-level
- Discussed on the dev-meeting.
#18367 was accepted, so @matz said "give it a try". Need to create a PR. -
08:32 AM Revision fbb3cab9 (git): Add a NEWS entry about [Feature #16806]
-
08:31 AM Feature #16122: Data: simple immutable value object
- Discussed on the dev-meeting.
@matz is now negative to allow settings. Having various semantics in one Struct class will bring confusion rather than usability. `keyword_init` settings will be no longer needed after Ruby 3.2. (See #168... -
08:29 AM Feature #16806 (Closed): Struct#initialize accepts keyword arguments too by default
- @nobu already committed the last step at commit:c956f979e5d05900315d2753d5c3b1389af8dae4. Closing.
-
08:10 AM Feature #18438: Add `Exception#additional_message` to show additional error information
- @matz accepted the name `detailed_message`. I'll update and improve my PR (or volunteer is welcome)
Note: the rdoc of `detailed_message` should explicitly state that the method should accept `highlight` keyword that allows using ANSI ... -
08:02 AM Feature #18285: NoMethodError#message uses a lot of CPU/is really expensive to call
- Discussed at the dev-meeting but no conclusion.
@akr said the part `0xXXXXXXXXXXXXXXXX` is almost useless, and roughly counter-proposed the following.
```
42.time #=> undefined method `time' for object Integer (NoMethodError)
... -
07:28 AM Bug #18556: error: use of undeclared identifier 'MAP_ANONYMOUS'
- https://github.com/ruby/ruby/pull/5506
-
03:08 AM Bug #18556 (Closed): error: use of undeclared identifier 'MAP_ANONYMOUS'
- ruby 3.1.0 fails to build on older versions of macOS such as OS X 10.10.5:
```
gc.c:11141:88: error: use of undeclared identifier 'MAP_ANONYMOUS'
char *ptr = mmap(NULL, alignment + size, PROT_READ | PROT_WRITE, MAP_PRIVATE |... -
07:07 AM Bug #18512: MacOS 12.1 Monterey Bug
- I'm unsure but you failed to recompile ffi gem because the size of ffi_c.bundle did not change.
Before:
```
{
"source" : "P",
"arch" : "arm64",
"base" : 4342497280,
"size" : 98304,
"uuid" : "f086814f-a607-31b9-9fff-7037c97cdf32... -
12:08 AM Bug #18512: MacOS 12.1 Monterey Bug
- IPS Report:
```
oucl5976@ck1 cf-zendesk % cat ~/Library/Logs/DiagnosticReports/ruby-2022-01-29-000341.ips
{"app_name":"ruby","timestamp":"2022-01-29 00:03:41.00 +0000","app_version":"","slice_uuid":"0ef6bea2-99c6-3fd9-a082-80849cd76... -
12:06 AM Bug #18512: MacOS 12.1 Monterey Bug
- ```
oucl5976@ck1 ~ % gem uninstall ffi
You have requested to uninstall the gem:
ffi-1.15.5
rb-inotify-0.9.10 depends on ffi (>= 0.5.0, < 2)
sassc-2.4.0 depends on ffi (~... -
06:33 AM Revision 90a8b1c5 (git): Remove a typo hash [ci skip]
-
06:29 AM Revision 7672f6a4 (git): mkmf: unify duplicate code in pkg_config
-
06:22 AM Revision b90e56e6 (git): mkmf: pkg_config accepts multiple options
-
06:22 AM Revision 24c7e75d (git): test: backfill coverage for MakeMakefile.pkg_config
-
06:08 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
- > Can you confirm with date-2.0.3 ?
Thank you so much.
I tried it, then I get good result!
-
03:01 AM Feature #18490: MakeMakefile.pkg_config should accept multiple options
- Accepted.
Matz.
01/28/2022
-
11:51 PM Bug #18512: MacOS 12.1 Monterey Bug
- oucl5976@gmail.com (Paul Liu) wrote in #note-4:
> gem install ffi --enable-libffi-alloc
> ...
You probably want to try: `gem install ffi -- --enable-libffi-alloc` -
11:39 PM Bug #18512: MacOS 12.1 Monterey Bug
- gem install ffi --enable-libffi-alloc
ERROR: While executing gem ... (Gem::OptionParser::InvalidOption)
invalid option: --enable-libffi-alloc -
11:13 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- Eregon (Benoit Daloze) wrote in #note-1:
> OTOH Range operations that work differently for numerics tend to make Range even more messy when it comes to non-numeric values (more differences in behavior, can't `reverse_each` efficiently o... -
04:16 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- Yes, this is a useful change. Although wouldn't it be better to prevent `#to_a` instead of only `#reverse_each` ?
Actually there's quite a lot of Enumerable methods that would be better raising an exception for endless ranges.
For ex... -
01:12 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- I checked the PR, seems a useful change to me.
-
01:11 PM Feature #18551: Make `Range#reverse_each` to raise an exception if endless
- There is no Range#reverse_each currently, only Enumerable#reverse_each, and Enumerable can't know about this.
But maybe it makes sense to have Range#reverse_each for this and maybe also for faster reverse_each on Numeric Ranges?
OTOH R... -
11:02 PM Feature #18515: Add Range#reverse_each implementation
- In general, I think it would be better to improve `#reverse_each` by using `#pred` (predecessor; the inverse of `#succ`) if the element has.
However, since integer ranges are used so often, I think it is acceptable to add specialized ... -
08:04 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-7:
> If you are using bundler, try the second one.
> ...
Thanks. So... `bundle config build.ffi --enable-libffi-alloc` gave me:
```
Your application has set build.ffi to "--enable-libffi-alloc". T... -
07:51 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- If you are using bundler, try the second one.
```
bundle config build.ffi --enable-libffi-alloc
bundle install
```
I'm not familiar with bundler. I think you need to recompile ffi gem, but I am unsure if the command above does s... -
02:02 PM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-5:
> Ah, maybe it is a typo. Could you try `gem install ffi -- --enable-libffi-alloc`?
Yes, it was, but now I have a permissions error.
```
gem install ffi -- --enable-libffi-alloc
Ignoring red... -
07:41 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Ah, maybe it is a typo. Could you try `gem install ffi -- --enable-libffi-alloc`?
-
04:04 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- mame (Yusuke Endoh) wrote in #note-3:
> Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
Thank you -- so, I tried as suggested:
```
gem uninstall ffi
gem install ffi --enable-libffi-alloc
```
... -
02:18 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Could you try this? https://github.com/ffi/ffi/issues/800#issuecomment-1008308614
-
01:51 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Attaching my `gem env` output
-
01:47 AM Bug #18555: Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- By the way, I have noticed that running
`ruby -e 'require "rbconfig"; pp RbConfig::CONFIG' | grep "cpu"`
gives me
```
"target_cpu"=>"universal",
"host_cpu"=>"x86_64",
"build_cpu"=>"x86_64",
```
my previous system was a... -
01:37 AM Bug #18555 (Closed): Running "bundle exec middleman server" on M1 Mac gives [BUG] Bus Error at 0x0000000104b04000
- Hi All,
First of all, I am not a programmer or coder so I am having great difficulty solving this puzzle.
Since moving to a M1 Mac, I cannot get Slate API Docs (https://github.com/slatedocs/slate) to work, specifically the middlema... - 06:33 PM Revision 1bd033cb (git): * 2022-01-29 [ci skip]
-
06:33 PM Revision 018036c2 (git): Remove assert_equal that will never be run
- `@s1.set_len(3)` will raise so the `assert_equal` will never be ran.
-
03:26 PM Bug #18511: ruby in infinite loop consuming 100% CPU
- > could someone look into the core dump ? Is there any possibility to upload a 55MB file ?
I can't guarantee that anyone is willing to spend time on investigating the core dump, but if you are willing to make publicly available with n... -
09:47 AM Bug #18511: ruby in infinite loop consuming 100% CPU
- > Depending on your needs, maybe the pure Ruby [json_pure] gem is good enough. If you have performance requirements, the [oj] gem seems fairly popular and I've heard success stories. It's supposedly faster than yajl-ruby at least for som...
- 01:43 PM Revision c26e41c9 (git): * 2022-01-28 [ci skip]
-
01:42 PM Revision e0c5488f (git): Update to ruby/spec@902ab83
-
01:42 PM Revision bb5f7108 (git): Update to ruby/mspec@49adc2f
-
01:40 PM Bug #18518: NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
- From this log it's clear this issue happens on 3.1.0 macOS:
https://github.com/eregon/rubyspec/runs/4981235909?check_suite_focus=true
```
2022-01-28T13:37:48.1570860Z Integer#<< (with n << m) when m is a bignum or larger than int
202... -
01:29 PM Bug #18518: NoMemoryError + [FATAL] failed to allocate memory for twice 1 << large
- Actually I'm not sure this is properly fixed on 3.1.0, it looks brittle, for instance it fails in GitHub Actions on macOS:
https://github.com/ruby/spec/runs/4981061444?check_suite_focus=true
NoMemoryError might also be a bit weird for t... -
09:43 AM Feature #18552 (Closed): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- Nevermind, on first read I didn't notice that these were two distinct function. That's good enough I think, no need to expose a new function. Closing.
-
09:33 AM Feature #18554: Move unicode_normalize to a default gem
- Just a few comments, not sure I have thought everything through completely.
One of the motivations for implementing unciode_normalize in pure Ruby was to make it easy for other Ruby implementations to use this code, so from this viewp... -
01:03 AM Feature #18554: Move unicode_normalize to a default gem
- Just leaving my :+1: to this idea; not sure how difficult though.
-
06:23 AM Feature #18136: take_while_after
- In today's developer meeting, Matz said the only acceptable name so far was "drop_after" (if he had to choose). He's still not quite convinced of the need for this feature.
01/27/2022
-
10:42 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > The name rb_singleton_class_get() doesn't seem great though.
Yeah, it could definitely be expose under another name.
> ...
I don't follow, how could this expression ever be false? -
09:15 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- A new function seems better than that flag check (which doesn't work on TruffleRuby currently, will always return `false`).
The name `rb_singleton_class_get()` doesn't seem great though.
However I think there is already a way to chec... -
05:22 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > Which does seem very clean.
I of course meant "doesn't". Oops.
> ...
To be fair, I was entertaining the idea to also open a feature request to get a Ruby side API for it, e.g. `Object#has_singletong_class?`.
> We should review... -
05:12 PM Feature #18552: Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- > `!SPECIAL_CONST(obj) && FL_TEST(RBASIC(obj)->klass, FL_SINGLETON);`
> ...
Beyond cleanliness, it uses `FL_SINGLETON`, which is [marked] `@internal`. I
agree with @shyouhei that this flag should not be visible in the first place.
Als... -
11:57 AM Feature #18552 (Closed): Expose `VALUE rb_singleton_class_get(VALUE)` to extensions
- Right now the only way to check wether an object has a singleton class is to do something akin to:
```c
!SPECIAL_CONST(obj) && FL_TEST(RBASIC(obj)->klass, FL_SINGLETON);
```
Which doesn't seem very clean.
### Use case
This ... -
04:49 PM Feature #18554 (Open): Move unicode_normalize to a default gem
- Could we move the rest of unicode_normalize to a default gem?
The recent updates were mostly updating the Unicode tables, which a user might want to be able to update in an existing Ruby installation. Additionally, this is one of the ... -
04:22 PM Feature #18339: GVL instrumentation API
- I opened a draft for it: https://github.com/ruby/ruby/pull/5500
@ko1 if you'd like to have a look. -
02:30 PM Bug #18553 (Closed): Memory leak on compiling method call with kwargs
- The following code produces a memory leak:
```ruby
p(foo: 1)
```
It comes from the allocation in `compile.c`:
```c
struct rb_callinfo_kwarg *kw_arg =
rb_xmalloc_mul_add(len, sizeof(VALUE), sizeof(struct rb_ca... -
11:54 AM Revision d66e7ec7 (git): [ruby/reline] Add a comment for VK_MENU
- https://github.com/ruby/reline/commit/ee307c2b01
-
11:54 AM Revision f4ee6054 (git): [ruby/reline] The AltGr behaves exactly the same as Ctrl+Alt
- On European keyboards.
https://github.com/ruby/reline/commit/75fe9759a4 -
09:11 AM Bug #18516: Memory leak on aliasing method to itself
- I took the liberty to set the backport field.
I was able to repro on 2.6, 2.7,3.0 and 3.1. However 2.6 is security only, I don't think it qualifies. -
06:46 AM Bug #18516 (Closed): Memory leak on aliasing method to itself
- Applied in changeset commit:git|e89d80702bd98a8276243a7fcaa2a158b3bfb659.
----------
Fix memory leak at the same named alias [Bug #18516]
When aliasing a method to the same name method, set a separate bit
flag on that method definition... -
08:16 AM Revision f511ff3b (git): [ruby/yaml] Add JRuby-specific warning when psych fails
- The error here is confusing for users because JRuby does not use
libyaml and installing it will not help. Instead, JRuby directs
them to a wiki page that describes an issue when multiple
conflicting versions of SnakeYAML are installed.
... -
06:46 AM Revision e89d8070 (git): Fix memory leak at the same named alias [Bug #18516]
- When aliasing a method to the same name method, set a separate bit
flag on that method definition, instead of the reference count
increment. Although this kind of alias has no actual effect at
runtime, is used as the hack to suppress th... -
05:58 AM Feature #18551 (Closed): Make `Range#reverse_each` to raise an exception if endless
- https://github.com/ruby/ruby/pull/5498
Currently, `Range#reverse_each` for an endless range never returns.
```
% ruby -e '(1..).reverse_each { }'
# never return ...
```
(This is because `Enumerable#reverse_each` tries `#to_a`... -
05:28 AM Revision 7ff1bf31 (git): An alias can suppress method redefinition warning
-
05:00 AM Bug #18517 (Closed): 0 << (2**40) is NoMemoryError but 0 << (2**80) is 0
- Applied in changeset commit:git|6a6227e0168b059c3ed34c9f0ace2e5dc2364221.
----------
Shifting zero always results in zero [Bug #18517] -
05:00 AM Revision 6a6227e0 (git): Shifting zero always results in zero [Bug #18517]
-
04:51 AM Bug #18514: ruby 2.6.9's Date#jisx0301 does not support Reiwa
- I released date-2.0.3 with Reiwa support.
@kouji Can you confirm with [date-2.0.3](https://rubygems.org/gems/date/versions/2.0.3) ?
After that, I will create backport patch for Ruby 2.6.10. - 03:33 AM Revision 99d02cae (git): [ruby/logger] Fix log rotation inter-process lock failed.
- Issue only occurs in JRuby 9.3.0.0 and Windows and the full
console output is:
log rotation inter-process lock failed. D:\log.txt -> D:\log.txt.0: The process cannot access the file because it is being used by another process.
log writi... -
01:52 AM Feature #18513: Hide patchlevel from `ruby -v`
- https://github.com/ruby/ruby/pull/5496