https://bugs.ruby-lang.org/
https://bugs.ruby-lang.org/favicon.ico?1711330511
2021-05-28T13:10:45Z
Ruby Issue Tracking System
Ruby master - Bug #17923: try to mark T_NONE object with miniruby x86 Win32 buildt with MSVC
https://bugs.ruby-lang.org/issues/17923?journal_id=92258
2021-05-28T13:10:45Z
byroot (Jean Boussier)
byroot@ruby-lang.org
<ul></ul><p>I've just hit the same bug on linux:</p>
<pre><code><OBJ_INFO:gc_mark_ptr@gc.c:6605> 0x00007f1d22e9fc00 [2 M ] T_NONE
doesnt-matter.rb:224: [BUG] try to mark T_NONE object
ruby 3.1.0dev (2021-05-27T21:17:54Z master 2ad7a550f3) [x86_64-linux]
-- C level backtrace information -------------------------------------------
/usr/local/bin/ruby(rb_print_backtrace+0x11) [0x55d3fe322278] vm_dump.c:759
/usr/local/bin/ruby(rb_vm_bugreport) vm_dump.c:1041
/usr/local/bin/ruby(bug_report_end+0x0) [0x55d3fe144a9f] error.c:777
/usr/local/bin/ruby(rb_bug_without_die) error.c:777
/usr/local/bin/ruby(die+0x0) [0x55d3fe13d426] error.c:785
/usr/local/bin/ruby(rb_bug) error.c:787
/usr/local/bin/ruby(gc_mark_ptr+0x138) [0x55d3fe16b388] gc.c:6606
/usr/local/bin/ruby(each_insn_value+0x5) [0x55d3fe1ac26d] iseq.c:327
/usr/local/bin/ruby(iseq_extract_values) iseq.c:178
/usr/local/bin/ruby(rb_iseq_each_value) iseq.c:246
/usr/local/bin/ruby(rb_iseq_mark) iseq.c:342
/usr/local/bin/ruby(gc_mark_imemo+0x70) [0x55d3fe16c948] gc.c:6720
/usr/local/bin/ruby(gc_mark_children) gc.c:6802
/usr/local/bin/ruby(gc_mark_stacked_objects+0x41) [0x55d3fe173417] gc.c:6986
/usr/local/bin/ruby(gc_mark_stacked_objects_incremental) gc.c:7020
/usr/local/bin/ruby(gc_marks_step) gc.c:7972
/usr/local/bin/ruby(gc_marks_continue) gc.c:8032
/usr/local/bin/ruby(heap_prepare) gc.c:2146
/usr/local/bin/ruby(heap_next_freepage) gc.c:2442
/usr/local/bin/ruby(ractor_cache_slots) gc.c:2474
/usr/local/bin/ruby(newobj_slowpath) gc.c:2515
/usr/local/bin/ruby(newobj_slowpath_wb_protected) gc.c:2539
/usr/local/bin/ruby(newobj_of0+0xe) [0x55d3fe173b5e] gc.c:2582
/usr/local/bin/ruby(newobj_of) gc.c:2592
/usr/local/bin/ruby(rb_imemo_new) gc.c:2689
/usr/local/bin/ruby(enum_each_with_index+0x2f) [0x55d3fe3b491f] enum.c:2481
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_call0+0x210) [0x55d3fe30c4b0] vm_eval.c:72
/usr/local/bin/ruby(rb_funcallv_kw+0x3e) [0x55d3fe30ce0e] vm_eval.c:845
/usr/local/bin/ruby(rb_class_new_instance_pass_kw+0xcb) [0x55d3fe1de10b] object.c:2156
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_funcallv_scope+0x1b0) [0x55d3fe30d460] vm_eval.c:72
/usr/local/bin/ruby(autoload_require+0x84) [0x55d3fe2e45b4] variable.c:2369
/usr/local/bin/ruby(rb_ensure+0x114) [0x55d3fe14f934] eval.c:1166
/usr/local/bin/ruby(rb_autoload_load+0x22a) [0x55d3fe2ecffa] variable.c:2499
/usr/local/bin/ruby(rb_const_lookup+0x0) [0x55d3fe2ee91b] variable.c:2585
/usr/local/bin/ruby(rb_const_search_from) variable.c:2571
/usr/local/bin/ruby(rb_const_search) variable.c:2608
/usr/local/bin/ruby(rb_const_get_0) variable.c:2549
/usr/local/bin/ruby(rb_public_const_get_from) variable.c:2637
/usr/local/bin/ruby(vm_get_ev_const+0x29) [0x55d3fe312f62] vm_insnhelper.c:1038
/usr/local/bin/ruby(vm_exec_core) insns.def:267
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_funcallv_scope+0x1b0) [0x55d3fe30d460] vm_eval.c:72
/usr/local/bin/ruby(autoload_require+0x84) [0x55d3fe2e45b4] variable.c:2369
/usr/local/bin/ruby(rb_ensure+0x114) [0x55d3fe14f934] eval.c:1166
/usr/local/bin/ruby(rb_autoload_load+0x22a) [0x55d3fe2ecffa] variable.c:2499
/usr/local/bin/ruby(rb_const_lookup+0x0) [0x55d3fe2ee91b] variable.c:2585
/usr/local/bin/ruby(rb_const_search_from) variable.c:2571
/usr/local/bin/ruby(rb_const_search) variable.c:2608
/usr/local/bin/ruby(rb_const_get_0) variable.c:2549
/usr/local/bin/ruby(rb_public_const_get_from) variable.c:2637
/usr/local/bin/ruby(vm_get_ev_const+0x29) [0x55d3fe312f62] vm_insnhelper.c:1038
/usr/local/bin/ruby(vm_exec_core) insns.def:267
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_funcallv_scope+0x1b0) [0x55d3fe30d460] vm_eval.c:72
/usr/local/bin/ruby(autoload_require+0x84) [0x55d3fe2e45b4] variable.c:2369
/usr/local/bin/ruby(rb_ensure+0x114) [0x55d3fe14f934] eval.c:1166
/usr/local/bin/ruby(rb_autoload_load+0x22a) [0x55d3fe2ecffa] variable.c:2499
/usr/local/bin/ruby(rb_const_lookup+0x0) [0x55d3fe2ee5eb] variable.c:2585
/usr/local/bin/ruby(rb_const_search_from) variable.c:2571
/usr/local/bin/ruby(rb_const_search) variable.c:2608
/usr/local/bin/ruby(rb_const_get_0) variable.c:2549
/usr/local/bin/ruby(rb_const_get_at) variable.c:2631
/usr/local/bin/ruby(rb_mod_const_get+0x11d) [0x55d3fe1dc74d] object.c:2475
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(dir_yield+0x5) [0x55d3fe39c013] dir.c:776
/usr/local/bin/ruby(dir_each_entry) dir.c:833
/usr/local/bin/ruby(dir_each) dir.c:803
/usr/local/bin/ruby(rb_ensure+0x114) [0x55d3fe14f934] eval.c:1166
/usr/local/bin/ruby(dir_foreach+0x9c) [0x55d3fe39c64c] dir.c:3013
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x557) [0x55d3fe3087a7] vm.c:1260
/usr/local/bin/ruby(rb_ensure+0x114) [0x55d3fe14f934] eval.c:1166
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_call0+0x210) [0x55d3fe30c4b0] vm_eval.c:72
/usr/local/bin/ruby(rb_funcall_with_block_kw+0x4f) [0x55d3fe30cf3f] vm_eval.c:845
/usr/local/bin/ruby(rb_yield+0x3ac) [0x55d3fe3085fc] vm_insnhelper.c:3758
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(yield_under+0x3f9) [0x55d3fe319019] vm.c:1260
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_vm_call_kw+0xcd) [0x55d3fe31634d] vm_eval.c:57
/usr/local/bin/ruby(rb_method_call_pass_called_kw+0x82) [0x55d3fe218ae2] proc.c:2437
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_vm_call_kw+0xcd) [0x55d3fe31634d] vm_eval.c:57
/usr/local/bin/ruby(rb_method_call_pass_called_kw+0x82) [0x55d3fe218ae2] proc.c:2437
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_vm_call_kw+0xcd) [0x55d3fe31634d] vm_eval.c:57
/usr/local/bin/ruby(rb_method_call_pass_called_kw+0x82) [0x55d3fe218ae2] proc.c:2437
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_vm_call_kw+0xcd) [0x55d3fe31634d] vm_eval.c:57
/usr/local/bin/ruby(rb_method_call_pass_called_kw+0x82) [0x55d3fe218ae2] proc.c:2437
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_vm_call_kw+0xcd) [0x55d3fe31634d] vm_eval.c:57
/usr/local/bin/ruby(rb_method_call_pass_called_kw+0x82) [0x55d3fe218ae2] proc.c:2437
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_cfp_consistent_p+0x0) [0x55d3fe309357] vm_eval.c:135
/usr/local/bin/ruby(vm_call0_cfunc_with_frame) vm_eval.c:137
/usr/local/bin/ruby(vm_call0_cfunc) vm_eval.c:149
/usr/local/bin/ruby(vm_call0_body) vm_eval.c:182
/usr/local/bin/ruby(rb_vm_call_kw+0xcd) [0x55d3fe31634d] vm_eval.c:57
/usr/local/bin/ruby(rb_method_call_pass_called_kw+0x82) [0x55d3fe218ae2] proc.c:2437
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_method+0xb4) [0x55d3fe306114] vm_insnhelper.c:3551
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0x8ed) [0x55d3fe304f8d] vm.c:2169
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0x8ed) [0x55d3fe304f8d] vm.c:2169
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(load_iseq_eval+0x9) [0x55d3fe1b4810] load.c:594
/usr/local/bin/ruby(require_internal) load.c:1065
/usr/local/bin/ruby(rb_require_string+0x13) [0x55d3fe1b4bd5] load.c:1142
/usr/local/bin/ruby(rb_f_require) load.c:838
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_alias+0x87) [0x55d3fe306db7] vm_insnhelper.c:3083
/usr/local/bin/ruby(vm_call_method_each_type+0x249) [0x55d3fe305c09] vm_insnhelper.c:3463
/usr/local/bin/ruby(vm_call_method+0xb4) [0x55d3fe306114] vm_insnhelper.c:3551
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_yield+0x24e) [0x55d3fe30849e] vm.c:1260
/usr/local/bin/ruby(RB_FL_TEST_RAW+0x0) [0x55d3fe330f8c] array.c:2534
/usr/local/bin/ruby(RB_FL_ANY_RAW) ./include/ruby/internal/fl_type.h:295
/usr/local/bin/ruby(rb_array_len) ./include/ruby/internal/core/rarray.h:135
/usr/local/bin/ruby(rb_ary_each) array.c:2533
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_sendish+0x1c9) [0x55d3fe303f19] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core+0x1d2) [0x55d3fe30e372] insns.def:754
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(vm_call0_body+0x552) [0x55d3fe3096e2] vm_eval.c:178
/usr/local/bin/ruby(rb_call0+0x210) [0x55d3fe30c4b0] vm_eval.c:72
/usr/local/bin/ruby(send_internal+0xf2) [0x55d3fe30ca52] vm_eval.c:1258
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_method+0xb4) [0x55d3fe306114] vm_insnhelper.c:3551
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(raise_load_if_failed+0x0) [0x55d3fe1b2f91] load.c:594
/usr/local/bin/ruby(rb_load_internal) load.c:654
/usr/local/bin/ruby(rb_f_load) load.c:726
/usr/local/bin/ruby(vm_call_cfunc_with_frame+0x11b) [0x55d3fe2f96eb] vm_insnhelper.c:2943
/usr/local/bin/ruby(vm_call_method_each_type+0x79) [0x55d3fe305a39] vm_insnhelper.c:3433
/usr/local/bin/ruby(vm_call_method+0xb4) [0x55d3fe306114] vm_insnhelper.c:3551
/usr/local/bin/ruby(vm_sendish+0xe) [0x55d3fe30e30b] vm_insnhelper.c:4516
/usr/local/bin/ruby(vm_exec_core) insns.def:773
/usr/local/bin/ruby(rb_vm_exec+0xb6) [0x55d3fe304756] vm.c:2160
/usr/local/bin/ruby(rb_ec_exec_node+0xed) [0x55d3fe14989d] eval.c:317
/usr/local/bin/ruby(ruby_run_node+0x4f) [0x55d3fe14e8bf] eval.c:375
/usr/local/bin/ruby(main+0x73) [0x55d3fe140c73] ./main.c:47
</code></pre>
Ruby master - Bug #17923: try to mark T_NONE object with miniruby x86 Win32 buildt with MSVC
https://bugs.ruby-lang.org/issues/17923?journal_id=92260
2021-05-28T19:11:58Z
xtkoba (Tee KOBAYASHI)
<ul></ul><p>This issue reminded me of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Bug: Make failed on i386-cygwin (miniruby.exe aborted) (Closed)" href="https://bugs.ruby-lang.org/issues/17606">#17606</a>, which seems to actually affect also i386-mswin32 according to:</p>
<p><a href="https://docs.microsoft.com/en-us/cpp/build/reference/zp-struct-member-alignment" class="external">https://docs.microsoft.com/en-us/cpp/build/reference/zp-struct-member-alignment</a></p>
<p>If so, the following patch is worth applying:</p>
<pre><code class="diff syntaxhl" data-language="diff"><span class="gd">--- a/vm_core.h
</span><span class="gi">+++ b/vm_core.h
</span><span class="p">@@ -218,7 +218,7 @@</span>
/* iseq data type */
typedef struct rb_compile_option_struct rb_compile_option_t;
<span class="gd">-#if (SIZEOF_SERIAL_T > SIZEOF_VOIDP) && defined(__CYGWIN__)
</span><span class="gi">+#if (SIZEOF_SERIAL_T > SIZEOF_VOIDP) && (defined(_MSC_VER) || defined(__CYGWIN__))
</span> #pragma pack(push, 4) /* == SIZEOF_VOIDP */
#endif
<span class="p">@@ -232,7 +232,7 @@</span>
// v3
};
<span class="gd">-#if (SIZEOF_SERIAL_T > SIZEOF_VOIDP) && defined(__CYGWIN__)
</span><span class="gi">+#if (SIZEOF_SERIAL_T > SIZEOF_VOIDP) && (defined(_MSC_VER) || defined(__CYGWIN__))
</span> #pragma pack(pop)
#endif
</code></pre>
<p><a class="user active" href="https://bugs.ruby-lang.org/users/28052">NuriYuri (Youri Nouri)</a> Could you try applying the above patch and see if anything changes?</p>
Ruby master - Bug #17923: try to mark T_NONE object with miniruby x86 Win32 buildt with MSVC
https://bugs.ruby-lang.org/issues/17923?journal_id=92261
2021-05-28T19:18:38Z
xtkoba (Tee KOBAYASHI)
<ul></ul><p><a class="user active" href="https://bugs.ruby-lang.org/users/7941">byroot (Jean Boussier)</a> <a href="#note-1">#note-1</a> looks like another bug. Please create a separate ticket if need be.</p>
Ruby master - Bug #17923: try to mark T_NONE object with miniruby x86 Win32 buildt with MSVC
https://bugs.ruby-lang.org/issues/17923?journal_id=92263
2021-05-28T21:23:31Z
NuriYuri (Youri Nouri)
<ul></ul><p>It compiles & run completely with those changes.</p>
<p>Thanks a lot.</p>
Ruby master - Bug #17923: try to mark T_NONE object with miniruby x86 Win32 buildt with MSVC
https://bugs.ruby-lang.org/issues/17923?journal_id=92402
2021-06-09T12:21:18Z
xtkoba (Tee KOBAYASHI)
<ul></ul><p>FTR <a class="changeset" title="Pack iseq_inline_constant_cache_entry Reordered iseq_inline_constant_cache_entry members not to ..." href="https://bugs.ruby-lang.org/projects/ruby-master/repository/git/revisions/e03bf76b312e9cba0e44488fcd8f67099af816cb">e03bf76b312e9cba0e44488fcd8f67099af816cb</a> by <a class="user active" href="https://bugs.ruby-lang.org/users/4">nobu (Nobuyoshi Nakada)</a> should solve this in a more general way. I think we can close this now.</p>
Ruby master - Bug #17923: try to mark T_NONE object with miniruby x86 Win32 buildt with MSVC
https://bugs.ruby-lang.org/issues/17923?journal_id=92403
2021-06-09T14:45:02Z
jeremyevans0 (Jeremy Evans)
merch-redmine@jeremyevans.net
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul>