Project

General

Profile

Actions

Bug #18186

open

SEGV with system command - MinGW?

Added by MSP-Greg (Greg L) about 1 month ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0dev (2021-09-22T07:37:13Z master 0dea31c437) [x64-mingw32]
[ruby-core:105375]

Description

This morning ran the update code for https://msp-greg.github.io, and had a SEGV on a system call using MinGW. I tried a few things from the console, and they all worked. I haven't installed all the dependencies on WSL2/Ubuntu, so I can't (yet) test it there. The code ran fine about 11 hours ago. AFK for a bit, log below:

Possibly due to 'Add support for non-blocking Kernel.system'?

ioquatix (Samuel Williams)?

C:/GitHub/gen-docs/code/main_generate.rb:100: [BUG] Segmentation fault
ruby 3.1.0dev (2021-09-22T07:37:13Z master 0dea31c437) [x64-mingw32]

-- Control frame information -----------------------------------------------
c:0012 p:---- s:0061 e:000060 CFUNC  :system
c:0011 p:0072 s:0056 e:000055 BLOCK  C:/GitHub/gen-docs/code/main_generate.rb:100 [FINISH]
c:0010 p:---- s:0045 e:000044 CFUNC  :chdir
c:0009 p:0281 s:0040 e:000039 METHOD C:/GitHub/gen-docs/code/main_generate.rb:96
c:0008 p:0028 s:0031 e:000030 BLOCK  C:/GitHub/gen-docs/code/main_generate.rb:47 [FINISH]
c:0007 p:---- s:0027 e:000026 CFUNC  :each
c:0006 p:0057 s:0023 e:000022 BLOCK  C:/GitHub/gen-docs/code/main_generate.rb:45 [FINISH]
c:0005 p:---- s:0018 e:000017 CFUNC  :each
c:0004 p:0006 s:0014 e:000013 METHOD C:/GitHub/gen-docs/code/main_generate.rb:40
c:0003 p:0023 s:0010 e:000009 METHOD C:/GitHub/gen-docs/code/main_generate.rb:34
c:0002 p:0069 s:0006 e:000005 EVAL   C:/GitHub/gen-docs/code/main_generate.rb:242 [FINISH]
c:0001 p:0000 s:0003 E:0014a0 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
C:/GitHub/gen-docs/code/main_generate.rb:242:in `<main>'
C:/GitHub/gen-docs/code/main_generate.rb:34:in `run_all'
C:/GitHub/gen-docs/code/main_generate.rb:40:in `run_needed_jobs'
C:/GitHub/gen-docs/code/main_generate.rb:40:in `each'
C:/GitHub/gen-docs/code/main_generate.rb:45:in `block in run_needed_jobs'
C:/GitHub/gen-docs/code/main_generate.rb:45:in `each'
C:/GitHub/gen-docs/code/main_generate.rb:47:in `block (2 levels) in run_needed_jobs'
C:/GitHub/gen-docs/code/main_generate.rb:96:in `generate_docs'
C:/GitHub/gen-docs/code/main_generate.rb:96:in `chdir'
C:/GitHub/gen-docs/code/main_generate.rb:100:in `block in generate_docs'
C:/GitHub/gen-docs/code/main_generate.rb:100:in `system'

-- C level backtrace information -------------------------------------------
C:\Windows\SYSTEM32\ntdll.dll(NtWaitForSingleObject+0x14) [0x00007ffa5c20cdf4]
C:\Windows\System32\KERNELBASE.dll(WaitForSingleObjectEx+0x8e) [0x00007ffa59ee1a8e]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_bugreport+0x30b) [0x00007ffa0c93f25b]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_bug_for_fatal_signal+0x88) [0x00007ffa0c7414a8]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_fiber_scheduler_address_resolve+0x2be) [0x00007ffa0c89243e]
 [0x00007ff6cd621fa2]
C:\Windows\System32\msvcrt.dll(_C_specific_handler+0x98) [0x00007ffa5a547ff8]
C:\Windows\SYSTEM32\ntdll.dll(_chkstk+0x11f) [0x00007ffa5c2120cf]
C:\Windows\SYSTEM32\ntdll.dll(RtlRaiseException+0x434) [0x00007ffa5c1c1454]
C:\Windows\SYSTEM32\ntdll.dll(KiUserExceptionDispatcher+0x2e) [0x00007ffa5c210bfe]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_process_status_waitv+0x1ca) [0x00007ffa0c83a90a]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_error_arity+0x269) [0x00007ffa0c916629]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_add_method+0x1d5) [0x00007ffa0c92ee95]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_exec+0x237) [0x00007ffa0c921e87]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_yield+0x26c) [0x00007ffa0c93723c]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_ensure+0x18f) [0x00007ffa0c74c33f]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(ruby_debug_counter_show_at_exit+0x302b) [0x00007ffa0c7150db]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_error_arity+0x269) [0x00007ffa0c916629]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_search_method_slowpath+0x59b) [0x00007ffa0c91986b]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_add_method+0x279) [0x00007ffa0c92ef39]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_exec+0x237) [0x00007ffa0c921e87]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_yield+0x26c) [0x00007ffa0c93723c]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_ary_each+0x3d) [0x00007ffa0c6a53ed]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_error_arity+0x269) [0x00007ffa0c916629]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_search_method_slowpath+0x59b) [0x00007ffa0c91986b]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_add_method+0x279) [0x00007ffa0c92ef39]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_exec+0x237) [0x00007ffa0c921e87]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_hash_compare_by_id_p+0x458) [0x00007ffa0c7722a8]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_hash_values+0xdfc) [0x00007ffa0c77356c]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_st_foreach_check+0x77) [0x00007ffa0c89f727]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_hash_set_default_proc+0x14f9) [0x00007ffa0c776069]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_ensure+0x18f) [0x00007ffa0c74c33f]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_hash_set_default_proc+0x1952) [0x00007ffa0c7764c2]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_hash_set_default_proc+0x3acc) [0x00007ffa0c77863c]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_error_arity+0x269) [0x00007ffa0c916629]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_search_method_slowpath+0x59b) [0x00007ffa0c91986b]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_add_method+0x279) [0x00007ffa0c92ef39]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_vm_exec+0xa7f) [0x00007ffa0c9226cf]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(rb_call_end_proc+0x130) [0x00007ffa0c745ac0]
C:\ruby-mingw\bin\x64-msvcrt-ruby310.dll(ruby_run_node+0xa5) [0x00007ffa0c74b135]
 [0x00007ff6cd62289d]
 [0x00007ff6cd6213b1]
 [0x00007ff6cd6214e6]
C:\Windows\System32\KERNEL32.DLL(BaseThreadInitThunk+0x14) [0x00007ffa5a9a7034]

No data to display

Actions

Also available in: Atom PDF