BASERUBY = /usr/local/ruby-3.0.2/bin/ruby --disable=gems CC = gcc LD = ld LDSHARED = gcc -shared CFLAGS = -O2 -flto=auto -ffat-lto-objects -fPIC XCFLAGS = -D_FORTIFY_SOURCE=2 -fstack-protector-strong -fno-strict-overflow -DRUBY_DEVEL=1 -fvisibility=hidden -fexcess-precision=standard -DRUBY_EXPORT -I. -I.ext/include/x86_64-linux -I./include -I. -I./enc/unicode/13.0.0 CPPFLAGS = DLDFLAGS = -Wl,--compress-debug-sections=zlib -Wl,-soname,libruby.so.3.1 -fstack-protector-strong SOLIBS = -lz -lpthread -lrt -lrt -lgmp -ldl -lcrypt -lm LANG = en_US.UTF-8 LC_ALL = en_US.UTF-8 LC_CTYPE = MFLAGS = gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1) Copyright (C) 2021 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. compiling ./main.c compiling dmydln.c generating id.h id.h updated generating miniprelude.c miniprelude.c updated compiling miniinit.c compiling dmyext.c making array.rbinc /usr/local/ruby-3.0.2/bin/ruby --disable=gems ./tool/gen_dummy_probes.rb ./probes.d > probes.dmyh translating probes probes.d compiling array.c making ast.rbinc compiling ast.c compiling bignum.c compiling class.c compiling compar.c generating opt_sc.inc generating optunifs.inc generating insns.inc generating insns_info.inc generating optinsn.inc compiling compile.c compiling complex.c compiling cont.c compiling debug.c compiling debug_counter.c making dir.rbinc compiling dir.c compiling dln_find.c compiling encoding.c compiling enum.c compiling enumerator.c generating known_errors.inc known_errors.inc updated making warning.rbinc compiling error.c compiling eval.c compiling file.c making gc.rbinc compiling gc.c compiling hash.c making prelude.rbinc compiling inits.c making io.rbinc compiling io.c generating node_name.inc compiling iseq.c compiling load.c compiling marshal.c compiling math.c compiling memory_view.c making mjit_config.h compiling mjit.c generating mjit_compile.inc compiling mjit_compile.c compiling node.c making numeric.rbinc compiling numeric.c making kernel.rbinc making nilclass.rbinc compiling object.c making pack.rbinc compiling pack.c generating parse.c copying lex.c compiling parse.c compiling proc.c compiling process.c making ractor.rbinc compiling ractor.c compiling random.c compiling range.c compiling rational.c compiling re.c compiling regcomp.c compiling regenc.c compiling regerror.c compiling regexec.c compiling regparse.c compiling regsyntax.c compiling ruby.c compiling scheduler.c compiling signal.c compiling sprintf.c compiling st.c compiling strftime.c compiling string.c compiling struct.c generating id.c id.c updated compiling symbol.c compiling thread.c making timev.rbinc compiling time.c compiling transcode.c compiling transient_heap.c compiling util.c compiling variable.c ./revision.h updated compiling version.c generating vm.inc generating vm_call_iseq_optimized.inc vm_call_iseq_optimized.inc updated generating vmtc.inc compiling vm.c compiling vm_backtrace.c compiling vm_dump.c compiling vm_sync.c making trace_point.rbinc compiling vm_trace.c assembling coroutine/amd64/Context.S processing probes in object files compiling enc/ascii.c compiling enc/us_ascii.c compiling enc/unicode.c compiling enc/utf_8.c generating enc/trans/newline.c ... compiling enc/trans/newline.c compiling ./missing/setproctitle.c compiling ./missing/strlcat.c compiling ./missing/strlcpy.c compiling addr2line.c compiling dmyenc.c linking miniruby /bin/mkdir -p enc/jis + cp enc/jis/props.h.blt enc/jis/props.h generating encdb.h :240: [BUG] Segmentation fault at 0x0000000000000004 ruby 3.1.0dev (2021-08-10T10:08:38Z master 28d03ee776) [x86_64-linux] -- Control frame information ----------------------------------------------- c:0003 p:0008 s:0011 e:000008 CLASS :240 c:0002 p:0015 s:0006 e:000005 TOP :235 [FINISH] c:0001 p:0000 s:0003 E:0016b0 (none) [FINISH] -- Ruby level backtrace information ---------------------------------------- :235:in `' :240:in `' -- Machine register context ------------------------------------------------ RIP: 0x00000000006617e6 RBP: 0x000023e100140003 RSP: 0x00007ffd3161df50 RAX: 0x0000000000000001 RBX: 0x00000000000023e1 RCX: 0x00007f1802501b50 RDX: 0x000023e100140003 RDI: 0x00007f18024ec2a0 RSI: 0x0000000000000000 R8: 0x0000000000000000 R9: 0x00007ffd3161df90 R10: 0x0000000001ae26f0 R11: 0x0000000000000000 R12: 0x0000000000000000 R13: 0x00007f1802501b50 R14: 0x00007f18024ec2a0 R15: 0x00007f1802501b50 EFL: 0x0000000000010202 -- C level backtrace information ------------------------------------------- ./miniruby(0x65e955) [0x65e955] /home/jaruga/var/git/ruby/ruby/miniruby(rb_vm_bugreport+0x261) [0x66a151] /home/jaruga/var/git/ruby/ruby/miniruby(rb_bug_for_fatal_signal+0xf0) [0x49ec70] /home/jaruga/var/git/ruby/ruby/miniruby(sigsegv+0x49) [0x5d1ac9] [0x7f180ff6ba20] /home/jaruga/var/git/ruby/ruby/miniruby(vm_ccs_push.part.0.lto_priv.0+0x26) [0x6617e6] /home/jaruga/var/git/ruby/ruby/miniruby(vm_search_cc.lto_priv.0+0xfe) [0x63f14e] /home/jaruga/var/git/ruby/ruby/miniruby(vm_search_method_slowpath0.lto_priv.0+0x3c) [0x63f2fc] /home/jaruga/var/git/ruby/ruby/miniruby(vm_sendish.lto_priv.0+0x6fc) [0x64585c] /home/jaruga/var/git/ruby/ruby/miniruby(vm_exec_core.lto_priv.0+0x9c) [0x64c44c] /home/jaruga/var/git/ruby/ruby/miniruby(rb_vm_exec+0x1de) [0x663a3e] /home/jaruga/var/git/ruby/ruby/miniruby(ruby_opt_init+0x6d) [0x5cf7cd] /home/jaruga/var/git/ruby/ruby/miniruby(load_file_internal+0x4aa) [0x5d144a] /home/jaruga/var/git/ruby/ruby/miniruby(rb_ensure+0x113) [0x4b0723] /home/jaruga/var/git/ruby/ruby/miniruby(process_options+0x17aa) [0x5d3b1a] /home/jaruga/var/git/ruby/ruby/miniruby(ruby_process_options+0x14d) [0x5d46ad] /home/jaruga/var/git/ruby/ruby/miniruby(ruby_options+0xe9) [0x4a26d9] /home/jaruga/var/git/ruby/ruby/miniruby(main+0x67) [0x421147] -- Other runtime information ----------------------------------------------- * Loaded script: ./miniruby * Loaded features: 0 enumerator.so 1 thread.rb 2 fiber.so 3 rational.so 4 complex.so 5 ruby2_keywords.rb * Process memory map: 00400000-0041c000 r--p 00000000 fd:02 3691202 /home/jaruga/var/git/ruby/ruby/miniruby 0041c000-00687000 r-xp 0001c000 fd:02 3691202 /home/jaruga/var/git/ruby/ruby/miniruby 00687000-0078f000 r--p 00287000 fd:02 3691202 /home/jaruga/var/git/ruby/ruby/miniruby 00790000-00796000 r--p 0038f000 fd:02 3691202 /home/jaruga/var/git/ruby/ruby/miniruby 00796000-00797000 rw-p 00395000 fd:02 3691202 /home/jaruga/var/git/ruby/ruby/miniruby 00797000-007a8000 rw-p 00000000 00:00 0 01a15000-01afc000 rw-p 00000000 00:00 0 [heap] 7f17febf4000-7f17feff9000 r--s 00000000 fd:02 3691202 /home/jaruga/var/git/ruby/ruby/miniruby 7f17feff9000-7f17feffc000 r--p 00000000 fd:02 10900834 /usr/lib64/libgcc_s-11-20210728.so.1 7f17feffc000-7f17ff00e000 r-xp 00003000 fd:02 10900834 /usr/lib64/libgcc_s-11-20210728.so.1 7f17ff00e000-7f17ff011000 r--p 00015000 fd:02 10900834 /usr/lib64/libgcc_s-11-20210728.so.1 7f17ff011000-7f17ff012000 ---p 00018000 fd:02 10900834 /usr/lib64/libgcc_s-11-20210728.so.1 7f17ff012000-7f17ff013000 r--p 00018000 fd:02 10900834 /usr/lib64/libgcc_s-11-20210728.so.1 7f17ff013000-7f17ff014000 rw-p 00019000 fd:02 10900834 /usr/lib64/libgcc_s-11-20210728.so.1 7f17ff028000-7f17ff029000 ---p 00000000 00:00 0 7f17ff029000-7f17ff0ca000 rw-p 00000000 00:00 0 7f17ff0ca000-7f17ff0cb000 ---p 00000000 00:00 0 7f17ff0cb000-7f17ff16c000 rw-p 00000000 00:00 0 7f17ff16c000-7f17ff16d000 ---p 00000000 00:00 0 7f17ff16d000-7f17ff20e000 rw-p 00000000 00:00 0 7f17ff20e000-7f17ff20f000 ---p 00000000 00:00 0 7f17ff20f000-7f17ff2b0000 rw-p 00000000 00:00 0 7f17ff2b0000-7f17ff2b1000 ---p 00000000 00:00 0 7f17ff2b1000-7f17ff352000 rw-p 00000000 00:00 0 7f17ff352000-7f17ff353000 ---p 00000000 00:00 0 7f17ff353000-7f17ff3f4000 rw-p 00000000 00:00 0 7f17ff3f4000-7f17ff3f5000 ---p 00000000 00:00 0 7f17ff3f5000-7f17ff496000 rw-p 00000000 00:00 0 7f17ff496000-7f17ff497000 ---p 00000000 00:00 0 7f17ff497000-7f17ff538000 rw-p 00000000 00:00 0 7f17ff538000-7f17ff539000 ---p 00000000 00:00 0 7f17ff539000-7f17ff5da000 rw-p 00000000 00:00 0 7f17ff5da000-7f17ff5db000 ---p 00000000 00:00 0 7f17ff5db000-7f17ff67c000 rw-p 00000000 00:00 0 7f17ff67c000-7f17ff67d000 ---p 00000000 00:00 0 7f17ff67d000-7f17ff71e000 rw-p 00000000 00:00 0 7f17ff71e000-7f17ff71f000 ---p 00000000 00:00 0 7f17ff71f000-7f17ff7c0000 rw-p 00000000 00:00 0 7f17ff7c0000-7f17ff7c1000 ---p 00000000 00:00 0 7f17ff7c1000-7f17ff862000 rw-p 00000000 00:00 0 7f17ff862000-7f17ff863000 ---p 00000000 00:00 0 7f17ff863000-7f17ff904000 rw-p 00000000 00:00 0 7f17ff904000-7f17ff905000 ---p 00000000 00:00 0 7f17ff905000-7f17ff9a6000 rw-p 00000000 00:00 0 7f17ff9a6000-7f17ff9a7000 ---p 00000000 00:00 0 7f17ff9a7000-7f17ffa48000 rw-p 00000000 00:00 0 7f17ffa48000-7f17ffa49000 ---p 00000000 00:00 0 7f17ffa49000-7f17ffaea000 rw-p 00000000 00:00 0 7f17ffaea000-7f17ffaeb000 ---p 00000000 00:00 0 7f17ffaeb000-7f17ffb8c000 rw-p 00000000 00:00 0 7f17ffb8c000-7f17ffb8d000 ---p 00000000 00:00 0 7f17ffb8d000-7f17ffc2e000 rw-p 00000000 00:00 0 7f17ffc2e000-7f17ffc2f000 ---p 00000000 00:00 0 7f17ffc2f000-7f17ffcd0000 rw-p 00000000 00:00 0 7f17ffcd0000-7f17ffcd1000 ---p 00000000 00:00 0 7f17ffcd1000-7f17ffd72000 rw-p 00000000 00:00 0 7f17ffd72000-7f17ffd73000 ---p 00000000 00:00 0 7f17ffd73000-7f17ffe14000 rw-p 00000000 00:00 0 7f17ffe14000-7f17ffe15000 ---p 00000000 00:00 0 7f17ffe15000-7f17ffeb6000 rw-p 00000000 00:00 0 7f17ffeb6000-7f17ffeb7000 ---p 00000000 00:00 0 7f17ffeb7000-7f17fff58000 rw-p 00000000 00:00 0 7f17fff58000-7f17fff59000 ---p 00000000 00:00 0 7f17fff59000-7f17ffffa000 rw-p 00000000 00:00 0 7f17ffffa000-7f17ffffb000 ---p 00000000 00:00 0 7f17ffffb000-7f180009c000 rw-p 00000000 00:00 0 7f180009c000-7f180009d000 ---p 00000000 00:00 0 7f180009d000-7f180013e000 rw-p 00000000 00:00 0 7f180013e000-7f180013f000 ---p 00000000 00:00 0 7f180013f000-7f18001e0000 rw-p 00000000 00:00 0 7f18001e0000-7f18001e1000 ---p 00000000 00:00 0 7f18001e1000-7f1800282000 rw-p 00000000 00:00 0 7f1800282000-7f1800283000 ---p 00000000 00:00 0 7f1800283000-7f1800324000 rw-p 00000000 00:00 0 7f1800324000-7f1800325000 ---p 00000000 00:00 0 7f1800325000-7f18003c6000 rw-p 00000000 00:00 0 7f18003c6000-7f18003c7000 ---p 00000000 00:00 0 7f18003c7000-7f1802468000 rw-p 00000000 00:00 0 7f180246b000-7f1802520000 rw-p 00000000 00:00 0 7f1802522000-7f1802623000 rw-p 00000000 00:00 0 7f1802623000-7f180fb53000 r--p 00000000 fd:02 10886160 /usr/lib/locale/locale-archive 7f180fb53000-7f180fb55000 rw-p 00000000 00:00 0 7f180fb55000-7f180fb7b000 r--p 00000000 fd:02 10879663 /usr/lib64/libc-2.33.so 7f180fb7b000-7f180fcc8000 r-xp 00026000 fd:02 10879663 /usr/lib64/libc-2.33.so 7f180fcc8000-7f180fd14000 r--p 00173000 fd:02 10879663 /usr/lib64/libc-2.33.so 7f180fd14000-7f180fd15000 ---p 001bf000 fd:02 10879663 /usr/lib64/libc-2.33.so 7f180fd15000-7f180fd18000 r--p 001bf000 fd:02 10879663 /usr/lib64/libc-2.33.so 7f180fd18000-7f180fd1b000 rw-p 001c2000 fd:02 10879663 /usr/lib64/libc-2.33.so 7f180fd1b000-7f180fd24000 rw-p 00000000 00:00 0 7f180fd24000-7f180fd33000 r--p 00000000 fd:02 10886211 /usr/lib64/libm-2.33.so 7f180fd33000-7f180fdcd000 r-xp 0000f000 fd:02 10886211 /usr/lib64/libm-2.33.so 7f180fdcd000-7f180fe65000 r--p 000a9000 fd:02 10886211 /usr/lib64/libm-2.33.so 7f180fe65000-7f180fe66000 ---p 00141000 fd:02 10886211 /usr/lib64/libm-2.33.so 7f180fe66000-7f180fe67000 r--p 00141000 fd:02 10886211 /usr/lib64/libm-2.33.so 7f180fe67000-7f180fe68000 rw-p 00142000 fd:02 10886211 /usr/lib64/libm-2.33.so 7f180fe68000-7f180fe6a000 rw-p 00000000 00:00 0 7f180fe6a000-7f180fe6c000 r--p 00000000 fd:02 10887154 /usr/lib64/libcrypt.so.2.0.0 7f180fe6c000-7f180fe80000 r-xp 00002000 fd:02 10887154 /usr/lib64/libcrypt.so.2.0.0 7f180fe80000-7f180fe99000 r--p 00016000 fd:02 10887154 /usr/lib64/libcrypt.so.2.0.0 7f180fe99000-7f180fe9a000 ---p 0002f000 fd:02 10887154 /usr/lib64/libcrypt.so.2.0.0 7f180fe9a000-7f180fe9b000 r--p 0002f000 fd:02 10887154 /usr/lib64/libcrypt.so.2.0.0 7f180fe9b000-7f180fea4000 rw-p 00000000 00:00 0 7f180fea4000-7f180fea6000 r--p 00000000 fd:02 10886208 /usr/lib64/libdl-2.33.so 7f180fea6000-7f180fea8000 r-xp 00002000 fd:02 10886208 /usr/lib64/libdl-2.33.so 7f180fea8000-7f180fea9000 r--p 00004000 fd:02 10886208 /usr/lib64/libdl-2.33.so 7f180fea9000-7f180feaa000 r--p 00004000 fd:02 10886208 /usr/lib64/libdl-2.33.so 7f180feaa000-7f180feab000 rw-p 00000000 00:00 0 7f180feab000-7f180febb000 r--p 00000000 fd:02 10887276 /usr/lib64/libgmp.so.10.4.0 7f180febb000-7f180ff33000 r-xp 00010000 fd:02 10887276 /usr/lib64/libgmp.so.10.4.0 7f180ff33000-7f180ff4a000 r--p 00088000 fd:02 10887276 /usr/lib64/libgmp.so.10.4.0 7f180ff4a000-7f180ff4c000 r--p 0009e000 fd:02 10887276 /usr/lib64/libgmp.so.10.4.0 7f180ff4c000-7f180ff4d000 rw-p 000a0000 fd:02 10887276 /usr/lib64/libgmp.so.10.4.0 7f180ff4d000-7f180ff50000 r--p 00000000 fd:02 10886231 /usr/lib64/librt-2.33.so 7f180ff50000-7f180ff54000 r-xp 00003000 fd:02 10886231 /usr/lib64/librt-2.33.so 7f180ff54000-7f180ff56000 r--p 00007000 fd:02 10886231 /usr/lib64/librt-2.33.so 7f180ff56000-7f180ff57000 r--p 00008000 fd:02 10886231 /usr/lib64/librt-2.33.so 7f180ff57000-7f180ff58000 rw-p 00009000 fd:02 10886231 /usr/lib64/librt-2.33.so 7f180ff58000-7f180ff5f000 r--p 00000000 fd:02 10886226 /usr/lib64/libpthread-2.33.so 7f180ff5f000-7f180ff6e000 r-xp 00007000 fd:02 10886226 /usr/lib64/libpthread-2.33.so 7f180ff6e000-7f180ff72000 r--p 00016000 fd:02 10886226 /usr/lib64/libpthread-2.33.so 7f180ff72000-7f180ff73000 ---p 0001a000 fd:02 10886226 /usr/lib64/libpthread-2.33.so 7f180ff73000-7f180ff74000 r--p 0001a000 fd:02 10886226 /usr/lib64/libpthread-2.33.so 7f180ff74000-7f180ff75000 rw-p 0001b000 fd:02 10886226 /usr/lib64/libpthread-2.33.so 7f180ff75000-7f180ff79000 rw-p 00000000 00:00 0 7f180ff79000-7f180ff7c000 r--p 00000000 fd:02 10883215 /usr/lib64/libz.so.1.2.11 7f180ff7c000-7f180ff8a000 r-xp 00003000 fd:02 10883215 /usr/lib64/libz.so.1.2.11 7f180ff8a000-7f180ff90000 r--p 00011000 fd:02 10883215 /usr/lib64/libz.so.1.2.11 7f180ff90000-7f180ff91000 ---p 00017000 fd:02 10883215 /usr/lib64/libz.so.1.2.11 7f180ff91000-7f180ff92000 r--p 00017000 fd:02 10883215 /usr/lib64/libz.so.1.2.11 7f180ff92000-7f180ff95000 rw-p 00000000 00:00 0 7f180ff95000-7f180ff9c000 r--s 00000000 fd:02 11403603 /usr/lib64/gconv/gconv-modules.cache 7f180ff9c000-7f180ffa8000 rw-p 00000000 00:00 0 7f180ffa9000-7f180ffaa000 r--p 00000000 fd:02 10879602 /usr/lib64/ld-2.33.so 7f180ffaa000-7f180ffcf000 r-xp 00001000 fd:02 10879602 /usr/lib64/ld-2.33.so 7f180ffcf000-7f180ffd9000 r--p 00026000 fd:02 10879602 /usr/lib64/ld-2.33.so 7f180ffd9000-7f180ffdb000 r--p 0002f000 fd:02 10879602 /usr/lib64/ld-2.33.so 7f180ffdb000-7f180ffdd000 rw-p 00031000 fd:02 10879602 /usr/lib64/ld-2.33.so 7ffd30e2a000-7ffd31629000 rw-p 00000000 00:00 0 [stack] 7ffd31642000-7ffd31646000 r--p 00000000 00:00 0 [vvar] 7ffd31646000-7ffd31648000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] make: *** [uncommon.mk:1118: encdb.h] Aborted (core dumped)