General

Profile

peterzhu2118 (Peter Zhu)

  • Login: peterzhu2118
  • Email: peter@peterzhu.ca
  • Registered on: 08/01/2020
  • Last sign in: 11/23/2025

Issues

open closed Total
Assigned issues 1 30 31
Reported issues 3 77 80

Projects

Project Roles Registered on
Ruby Committer 03/24/2021

Activity

11/23/2025

06:54 PM Ruby Revision 39022057 (git): Replace vfork with fork for ASAN
Older versions of ASAN do not support vfork. See https://github.com/google/sanitizers/issues/925 peterzhu2118 (Peter Zhu)
03:41 PM Ruby Bug #21703 (Closed): RUBY_CRASH_REPORT does not work when shelling out in some cases
Applied in changeset commit:git|190b017fc6c21ff7b61c2b5ece0294785e4a4ca2.
----------
Don't use non blocking pipes for RUBY_CRASH_REPORT
[Bug #21703]
RUBY_CRASH_REPORT does not work in some cases when shelling out on Linux.
For example...
peterzhu2118 (Peter Zhu)
03:41 PM Ruby Revision 190b017f (git): Don't use non blocking pipes for RUBY_CRASH_REPORT
[Bug #21703]
RUBY_CRASH_REPORT does not work in some cases when shelling out on Linux.
For example, given the following shell script dump.sh:
#!/usr/bin/env bash
cat > /tmp/crash
And we see it fails like this:
$ RUBY_CRAS...
peterzhu2118 (Peter Zhu)

11/21/2025

10:34 PM Ruby Bug #21703 (Closed): RUBY_CRASH_REPORT does not work when shelling out in some cases
GitHub PR: https://github.com/ruby/ruby/pull/15292
RUBY_CRASH_REPORT does not work in some cases when shelling out on Linux. For example, given the following shell script dump.sh:
```sh
#!/usr/bin/env bash
cat > /tmp/crash
```
...
peterzhu2118 (Peter Zhu)
03:30 PM Ruby Revision 7ae0809c (git): Remove clang-18 from compilers CI
clang-18 has a bug that causes ruby_current_ec to sometimes be null when
using Ractors and crashes like this:
<internal:ractor>:700: [BUG] Segmentation fault at 0x0000000000000030
ruby 4.0.0dev (2025-11-21T06:49:14Z master bcc7b...
peterzhu2118 (Peter Zhu)

11/20/2025

11:10 PM Ruby Revision 3ec44a99 (git): Add a Ractor test case that causes MMTk to deadlock
This was a test case for Ractors discovered that causes MMTk to deadlock.
There is a fix for it in https://github.com/ruby/mmtk/pull/49.
peterzhu2118 (Peter Zhu)
11:10 PM Ruby Revision e15b4e1c (git): Bump default compiler to clang-20 in CI
clang-18 has a bug that causes the latest Ractor btest to crash. peterzhu2118 (Peter Zhu)
10:30 PM Ruby Revision 24473808 (git): Run rb_gc_before_fork after before_exec
before_exec stops the timer thread, which requires locking the Ractor
scheduler lock. This may deadlock if rb_gc_before_fork locks the VM.
peterzhu2118 (Peter Zhu)

11/19/2025

11:25 PM Ruby Feature #20408 (Closed): Add heap_live_slots to GC.stat_heap
Applied in changeset commit:git|fa02d7a01f5e7516de8eb3c7f92ec75c50c06e3f.
----------
Implement heap_live_slots in GC.stat_heap
[Feature #20408]
peterzhu2118 (Peter Zhu)
11:25 PM Ruby Revision f5f69d41 (git): Implement heap_final_slots in GC.stat_heap
[Feature #20408] peterzhu2118 (Peter Zhu)

Also available in: Atom