summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-05-11 10:08:35 +0200
committerSatoshi Tagomori <tagomoris@gmail.com>2025-05-11 23:32:50 +0900
commite9b538bb35c29788539a8953d44c5d18f9a6fb65 (patch)
tree90e0a78b04fb151ed4931344eb58c050734d26a6 /spec/ruby/core/array
parentb132322e94460a50fd7f0d844fe73e2272207f1d (diff)
Fix `namespace_initialize` to not crash on boot
``` /opt/rubies/head-namespaces/bin/ruby(sigsegv+0x84) [0x104e897e8] /usr/lib/system/libsystem_platform.dylib(_sigtramp+0x38) [0x18de56de4] /opt/rubies/head-namespaces/bin/ruby(object_id+0x80) [0x104d7d420] /opt/rubies/head-namespaces/bin/ruby(object_id+0x80) [0x104d7d420] /opt/rubies/head-namespaces/bin/ruby(rb_initialize_main_namespace+0xe4) [0x104ddaa20] /opt/rubies/head-namespaces/bin/ruby(ruby_opt_init+0x120) [0x104e7f524] /opt/rubies/head-namespaces/bin/ruby(ruby_process_options+0x1370) [0x104e7e31c] /opt/rubies/head-namespaces/bin/ruby(ruby_options+0xb0) [0x104d69844] /opt/rubies/head-namespaces/bin/ruby(main+0x64) [0x104ca8d54] ``` I'm not too sure why `rb_obj_id` crashes, but I suspect it's called too early. Either way I don't think generating an object_id for namespaces is a good idea. If all we need is a unique number we can do that for much cheaper.
Diffstat (limited to 'spec/ruby/core/array')
0 files changed, 0 insertions, 0 deletions