Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created February 22, 2021 12:55
Show Gist options
  • Save dogbert17/abb37bd9152fb9f5f45cb020d9896acf to your computer and use it in GitHub Desktop.
Save dogbert17/abb37bd9152fb9f5f45cb020d9896acf to your computer and use it in GitHub Desktop.
SEGV
dogbert@dogbert-VirtualBox:~/repos/rakudo$ gdb install/bin/moar core.moar.1000.ed90b6aa252b4d9c9ccb3886a5151559.310456.1613998332000000000000
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from install/bin/moar...
[New LWP 310457]
[New LWP 310456]
[New LWP 310458]
[New LWP 310459]
[New LWP 310460]
[New LWP 310462]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/dogbert/repos/rakudo/install/bin/moar --execname=/home/dogbert/repos/raku'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f8566f7e2b4 in __GI__IO_default_xsputn (n=<optimized out>, data=<optimized out>, f=<optimized out>) at genops.c:394
394 genops.c: No such file or directory.
[Current thread is 1 (Thread 0x7f856690a700 (LWP 310457))]
(gdb) bt
#0 0x00007f8566f7e2b4 in __GI__IO_default_xsputn (n=<optimized out>, data=<optimized out>, f=<optimized out>) at genops.c:394
#1 __GI__IO_default_xsputn (f=f@entry=0x561894f619d0, data=<optimized out>, n=n@entry=15) at genops.c:370
#2 0x00007f8566f7b87a in _IO_new_file_xsputn (n=15, data=<optimized out>, f=<optimized out>) at fileops.c:1265
#3 _IO_new_file_xsputn (f=0x561894f619d0, data=<optimized out>, n=15) at fileops.c:1197
#4 0x00007f8566f62af2 in __vfprintf_internal (s=0x561894f619d0, format=0x7f8567505bb9 "Inlining graph\n%s\n", ap=0x7f85669080d0, mode_flags=0) at ../libio/libioP.h:948
#5 0x00007f85674192a0 in MVM_spesh_debug_printf (tc=0x561894f66930, format=0x7f8567505bb9 "Inlining graph\n%s\n") at src/spesh/debug.c:7
#6 0x00007f8567403c11 in log_inline (tc=0x561894f66930, g=0x7f855c44ec50, target_sf=0x561896c931a8, inline_graph=0x7f855c493df0, bytecode_size=10, no_inline_reason=0x0, unspecialized=0, no_inline_info=0x0)
at src/spesh/optimize.c:40
#7 0x00007f8567409dca in optimize_call (tc=0x561894f66930, g=0x7f855c44ec50, bb=0x7f855c4584b8, ins=0x7f855c458080, p=0x7f855c4496d0, callee_idx=1, arg_info=0x7f85669083d0) at src/spesh/optimize.c:2079
#8 0x00007f856740c01f in optimize_bb_switch (tc=0x561894f66930, g=0x7f855c44ec50, bb=0x7f855c4584b8, p=0x7f855c4496d0) at src/spesh/optimize.c:2792
#9 0x00007f856740c84c in optimize_bb (tc=0x561894f66930, g=0x7f855c44ec50, bb=0x7f855c4584b8, p=0x7f855c4496d0) at src/spesh/optimize.c:3050
#10 0x00007f856740dddd in MVM_spesh_optimize (tc=0x561894f66930, g=0x7f855c44ec50, p=0x7f855c4496d0) at src/spesh/optimize.c:3432
#11 0x00007f8567429e75 in MVM_spesh_candidate_add (tc=0x561894f66930, p=0x7f855c4496d0) at src/6model/reprs/MVMSpeshCandidate.c:250
#12 0x00007f85674189d8 in worker (tc=0x561894f66930, callsite=0x7f8567a777a0 <null_args_callsite>, args=0x0) at src/spesh/worker.c:24
#13 0x00007f856739d9af in invoke_handler (tc=0x561894f66930, invokee=0x561894f36700, callsite=0x7f8567a777a0 <null_args_callsite>, args=0x0) at src/6model/reprs/MVMCFunction.c:9
#14 0x00007f856733e194 in thread_initial_invoke (tc=0x561894f66930, data=0x561894f67cc0) at src/core/threads.c:58
#15 0x00007f85672f2aa8 in MVM_interp_run (tc=0x561894f66930, initial_invoke=0x7f856733e105 <thread_initial_invoke>, invoke_data=0x561894f67cc0, outer_runloop=0x0) at src/core/interp.c:159
#16 0x00007f856733e269 in start_thread (data=0x561894f67cc0) at src/core/threads.c:91
#17 0x00007f8566d80609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#18 0x00007f856700b293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment