Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created August 23, 2018 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dogbert17/47efe57d0706a76b351789cd809ec4da to your computer and use it in GitHub Desktop.
Save dogbert17/47efe57d0706a76b351789cd809ec4da to your computer and use it in GitHub Desktop.
SEGV
dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6 t/spec/S17-lowlevel/cas-int.t
1..24
ok 1 - CAS of one integer to another returns seen value
ok 2 - When expected value is seen then new value put in place
ok 3 - CAS returns seen value when it is not the expected one
ok 4 - Value not changed when no match
Segmentation fault (core dumped)
dogbert@dogbert-VirtualBox ~/repos/rakudo $ gdb /home/dogbert/repos/rakudo/install/bin/moar core
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 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 /home/dogbert/repos/rakudo/install/bin/moar...done.
[New LWP 1824]
[New LWP 1821]
[New LWP 1823]
[New LWP 1825]
[New LWP 1822]
[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/nqp/MoarVM/../../install/bin/moar --execname=./perl6'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007eff2c275ff8 in MVM_gc_mark_collectable (tc=0x44a2650, worklist=0x7eff180c3bf0, new_addr=0x7eff18068738) at src/gc/collect.c:370
370 MVM_gc_worklist_add(tc, worklist, &(tc->instance->all_scs[sc_idx]->sc));
[Current thread is 1 (Thread 0x7eff23fff700 (LWP 1824))]
(gdb) bt
#0 0x00007eff2c275ff8 in MVM_gc_mark_collectable (tc=0x44a2650, worklist=0x7eff180c3bf0, new_addr=0x7eff18068738) at src/gc/collect.c:370
#1 0x00007eff2c275eb0 in process_worklist (tc=0x44a2650, worklist=0x7eff180c3bf0, wtp=0x7eff23ffd640, gen=0 '\000') at src/gc/collect.c:344
#2 0x00007eff2c2759da in MVM_gc_collect (tc=0x44a2650, what_to_do=1 '\001', gen=0 '\000') at src/gc/collect.c:157
#3 0x00007eff2c26b2f6 in run_gc (tc=0x44a2650, what_to_do=1 '\001') at src/gc/orchestrate.c:409
#4 0x00007eff2c26bb09 in MVM_gc_enter_from_interrupt (tc=0x44a2650) at src/gc/orchestrate.c:613
#5 0x00007eff2c1fbab1 in MVM_interp_run (tc=0x44a2650, initial_invoke=0x7eff2c24011d <thread_initial_invoke>, invoke_data=0x44a1a60) at src/core/interp.c:291
#6 0x00007eff2c240266 in start_thread (data=0x44a1a60) at src/core/threads.c:87
#7 0x00007eff2b73c6ba in start_thread (arg=0x7eff23fff700) at pthread_create.c:333
#8 0x00007eff2bd6241d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) p sc_idx
$1 = 403080872
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7eff23fff700 (LWP 1824) 0x00007eff2c275ff8 in MVM_gc_mark_collectable (tc=0x44a2650, worklist=0x7eff180c3bf0, new_addr=0x7eff18068738) at src/gc/collect.c:370
2 Thread 0x7eff2ccd4700 (LWP 1821) 0x00007eff2b744827 in futex_abstimed_wait_cancelable (private=0, abstime=0x0, expected=0, futex_word=0x445d270) at ../sysdeps/unix/sysv/linux/futex-internal.h:205
3 Thread 0x7eff28e43700 (LWP 1823) 0x00007eff2c2740e2 in MVM_gc_root_add_frame_registers_to_worklist (tc=0x7baa70, worklist=0x7eff1c0bebb0, frame=0x1731bd0) at src/gc/roots.c:428
4 Thread 0x7eff237fe700 (LWP 1825) pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
5 Thread 0x7eff2b328700 (LWP 1822) pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment