• dearblue's avatar
    Fixed occurs `SIGSEGV` with `mrbgems/mruby-method` · b02bd63d
    dearblue authored
    Calling the `Method#{parameters,source_location}` method on a static `Proc` object resulted in `SIGSEGV`.
    The trigger is https://github.com/mruby/mruby/pull/5402.
    
    The original implementation of the `Method#{parameters,source_location}` method was to temporarily rewrite the object and then call the method of the same name in `Proc`.
    Rewriting of objects placed in the ROM section by #5402 above is prohibited by hardware such as the CPU.
    This caused a `SIGSEGV`.
    b02bd63d
method.c 16.1 KB