General

Profile

peterzhu2118 (Peter Zhu)

  • Login: peterzhu2118
  • Email: peter@peterzhu.ca
  • Registered on: 08/01/2020
  • Last sign in: 10/06/2026

Issues

open closed Total
Assigned issues 1 32 33
Reported issues 1 80 81

Projects

Project Roles Registered on
Ruby Committer 03/24/2021

Activity

Today

08:41 AM Ruby Revision 004f523b (git): Fix assertion failure in allocating instance of uninitialized class
If a class is allocated and has a singleton class, it is incorrectly marked
as initialized which can cause an assertion error when an instance is
allocated.
For example, the following code causes an assertion error:
c = Class.alloc...
peterzhu2118 (Peter Zhu)
04:27 AM Ruby Bug #22412 (Closed): Assertion Failed: vm_ep_in_heap_p_:env->ep == ep
Applied in changeset commit:git|bd24fa62a592ec4b8c2eecbebf5e6d347ade9052.
----------
Copy ep when duplicating ifunc procs
[Bug #22412]
When duplicating ifunc procs that have heap allocated env, we should share
it instead of making a c...
peterzhu2118 (Peter Zhu)
04:27 AM Ruby Revision bd24fa62 (git): Copy ep when duplicating ifunc procs
[Bug #22412]
When duplicating ifunc procs that have heap allocated env, we should share
it instead of making a copy.
In debug mode, the following script triggers an assertion failure:
pr = proc {|a, b| [a, b] }.curry.dup
pr.ca...
peterzhu2118 (Peter Zhu)
03:08 AM Ruby Bug #22409 (Closed): ASan UAF and Assertion Failed: gc_validate_pc:CFP_PC(cfp) >= iseq_encoded: PC not set when allocating, breaking tracing
Applied in changeset commit:git|722e1b0aabe55893baa43b185f67ddccfd1c77b6.
----------
Check for stack overflow in setup_parameters_complex
[Bug #22409]
setup_parameters_complex could cause a VM stack overflow, so we should check
for th...
peterzhu2118 (Peter Zhu)
03:07 AM Ruby Revision 722e1b0a (git): Check for stack overflow in setup_parameters_complex
[Bug #22409]
setup_parameters_complex could cause a VM stack overflow, so we should check
for that otherwise we could crash.
When assertions are enabled, the following script crashes:
pr = proc {|a=1,b=1,c=1,d=1,e=1,f=1,g=1,h=1,i=...
peterzhu2118 (Peter Zhu)

10/07/2026

10:25 PM Ruby Bug #22410 (Closed): `IO#external_encoding` / `IO#internal_encoding` segfault on an uninitialized IO
Applied in changeset commit:git|cbf6a92e5115218058c225fb4d29343af7b41e3f.
----------
Fix crash in IO.external_encoding/IO.internal_encoding
[Bug #22410]
If the IO is not initialized, IO.external_encoding/IO.internal_encoding
can crash...
peterzhu2118 (Peter Zhu)
02:33 PM Ruby Bug #22410: `IO#external_encoding` / `IO#internal_encoding` segfault on an uninitialized IO
Thank you for the bug report. I have a fix here: https://github.com/ruby/ruby/pull/19252 peterzhu2118 (Peter Zhu)
10:25 PM Ruby Revision cbf6a92e (git): Fix crash in IO.external_encoding/IO.internal_encoding
[Bug #22410]
If the IO is not initialized, IO.external_encoding/IO.internal_encoding
can crash because it doesn't check for it.
peterzhu2118 (Peter Zhu)
02:23 PM Ruby Bug #22412: Assertion Failed: vm_ep_in_heap_p_:env->ep == ep
Thank you for the bug report. I have a fix here: https://github.com/ruby/ruby/pull/19251 peterzhu2118 (Peter Zhu)
02:02 PM Ruby Bug #22411 (Closed): Assertion Failed: class_call_alloc_func:rb_obj_class(obj) == rb_class_real(klass)
Applied in changeset commit:git|05fc8ad175b68c8521015df1905f46be5ef1f967.
----------
Fix incorrect class of File::Stat subclass instance
[Bug #22411]
rb_stat_s_alloc should use the class of the object and not assume it is
File::Stat.
...
peterzhu2118 (Peter Zhu)

Also available in: Atom