Bug #18050

Updated by nobu (Nobuyoshi Nakada) 3 months ago

 NetBSD 9.1 NetBSD 9.1 (PANIX-STD) #2: Thu Mar 18 17:46:23 EDT 2021 amd64 

 Configuration summary for ruby version 2.7.4 

    * Installation prefix: /usr/local 
    * exec prefix:           ${prefix} 
    * arch:                  x86_64-netbsd9.1 
    * site arch:             ${arch} 
    * RUBY_BASE_NAME:        ruby 
    * enable shared:         yes 
    * ruby lib prefix:       ${libdir}/${RUBY_BASE_NAME} 
    * site libraries path: ${rubylibprefix}/${sitearch} 
    * vendor path:           ${rubylibprefix}/vendor_ruby 
    * target OS:             netbsd9.1 
    * compiler:              gcc 
    * with pthread:          yes 
    * with coroutine:        ucontext 
    * enable shared libs:    yes 
    * dynamic library ext: so 
    * CFLAGS:                ${optflags} ${debugflags} ${warnflags} 
    * LDFLAGS:               -L. -L/usr/local/lib -fstack-protector-strong\ 
    * DLDFLAGS:              -L. -L/usr/local/lib\ 
    * optflags:              -O3 
    * debugflags:            -ggdb3 
    * warnflags:             -Wall -Wextra -Wdeprecated-declarations\ 
                           -Wduplicated-cond -Wimplicit-function-declaration\ 
                           -Wimplicit-int -Wmisleading-indentation\ 
                           -Wpointer-arith -Wwrite-strings\ 
                           -Wimplicit-fallthrough=0 -Wmissing-noreturn\ 
                           -Wno-constant-logical-operand -Wno-long-long\ 
                           -Wno-parentheses-equality -Wno-self-assign\ 
                           -Wno-tautological-compare -Wno-unused-parameter\ 
                           -Wno-unused-value -Wsuggest-attribute=format\ 
                           -Wsuggest-attribute=noreturn -Wunused-variable 
    * strip command:         strip 
    * install doc:           no 
    * JIT support:           yes 
    * man page type:         man 
    * BASERUBY -v:           ruby 2.7.3p183 (2021-04-05 revision 6847ee089d)\ 


 In this case, make made it to here: 
 generating encdb.h 
 encdb.h updated 
 -e:1: [BUG] Segmentation fault 
 ruby 2.7.3p183 (2021-04-05 revision 6847ee089d) [x86_64-netbsd9.1] 

 -- Control frame information ----------------------------------------------- 
 c:0004 p:---- s:0015 e:000014 CFUNC    :gets 
 c:0003 p:---- s:0012 e:000011 CFUNC    :gets 
 c:0002 p:0102 s:0008 E:000750 EVAL     -e:1 [FINISH] 
 c:0001 p:0000 s:0003 E:001d70 (none) [FINISH] 

 -- Ruby level backtrace information ---------------------------------------- 
 -e:1:in `<main>' 
 -e:1:in `gets' 
 -e:1:in `gets' 

 -- C level backtrace information ------------------------------------------- 
 /usr/local/lib/ [0x79121c4bc4b7] 
 /usr/local/lib/ [0x79121c4bc54a] 
 /usr/local/lib/ [0x79121c2bca75] 
 /usr/local/lib/ [0x79121c40ef41] 
 /usr/lib/ [0x79121a0a1d50] 

 -- Other runtime information ----------------------------------------------- 

 * Loaded script: -e 

 * Loaded features: 

     1 thread.rb 
     4 ruby2_keywords.rb 
     5 /usr/local/lib/ruby/2.7.0/x86_64-netbsd9.1/enc/ 
     6 /usr/local/lib/ruby/2.7.0/x86_64-netbsd9.1/enc/trans/ 

 gmake: *** [Makefile:1489: .rbconfig.time] Abort trap (core dumped) 

 Again, it seems pretty random.    First attempt, it didn't segfault until the make install phase.