Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created September 10, 2019 19:40
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/bd5a41e0025809b5a19ad7d8a1536915 to your computer and use it in GitHub Desktop.
Save dogbert17/bd5a41e0025809b5a19ad7d8a1536915 to your computer and use it in GitHub Desktop.
SEGV
dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-m -Ilib t/spec/S17-procasync/many-processes-no-close-stdin.t
1..1
Segmentation fault (core dumped)
dogbert@dogbert-VirtualBox ~/repos/rakudo $ gdb 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 install/bin/moar...done.
[New LWP 3110]
[New LWP 3107]
[New LWP 3108]
[New LWP 3112]
[New LWP 3106]
[New LWP 3109]
[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 __pthread_mutex_unlock_usercnt (decr=1, mutex=0x0) at pthread_mutex_unlock.c:313
313 pthread_mutex_unlock.c: No such file or directory.
[Current thread is 1 (Thread 0x7f6de8c5d700 (LWP 3110))]
(gdb) bt
#0 __pthread_mutex_unlock_usercnt (decr=1, mutex=0x0) at pthread_mutex_unlock.c:313
#1 __GI___pthread_mutex_unlock (mutex=0x0) at pthread_mutex_unlock.c:314
#2 0x00007f6ded5f78fa in uv_mutex_unlock (mutex=0x0) at 3rdparty/libuv/src/unix/thread.c:330
#3 0x00007f6ded46731c in async_spawn_on_exit (req=0x7f6dd400d020, exit_status=0, term_signal=0) at src/io/procops.c:500
#4 0x00007f6ded5effc0 in uv__chld (handle=0x43826a8, signum=17) at 3rdparty/libuv/src/unix/process.c:109
#5 0x00007f6ded5f3202 in uv__signal_event (loop=0x4382440, w=0x4382670, events=1) at 3rdparty/libuv/src/unix/signal.c:468
#6 0x00007f6ded5dc472 in uv__io_poll (loop=0x4382440, timeout=-1) at 3rdparty/libuv/src/unix/linux-core.c:391
#7 0x00007f6ded5e5d92 in uv_run (loop=0x4382440, mode=UV_RUN_DEFAULT) at 3rdparty/libuv/src/unix/core.c:368
#8 0x00007f6ded45ffdf in enter_loop (tc=0x43c32d0, callsite=0x7f6deddb3540 <null_args_callsite>, args=0x0) at src/io/eventloop.c:90
#9 0x00007f6ded488933 in invoke_handler (tc=0x43c32d0, invokee=0x118c908, callsite=0x7f6deddb3540 <null_args_callsite>, args=0x0) at src/6model/reprs/MVMCFunction.c:9
#10 0x00007f6ded41c772 in thread_initial_invoke (tc=0x43c32d0, data=0x43ec9f0) at src/core/threads.c:59
#11 0x00007f6ded3d3648 in MVM_interp_run (tc=0x43c32d0, initial_invoke=0x7f6ded41c6e7 <thread_initial_invoke>, invoke_data=0x43ec9f0) at src/core/interp.c:137
#12 0x00007f6ded41c830 in start_thread (data=0x43ec9f0) at src/core/threads.c:87
#13 0x00007f6dec8fe6ba in start_thread (arg=0x7f6de8c5d700) at pthread_create.c:333
#14 0x00007f6decf2441d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109
(gdb) f 3
#3 0x00007f6ded46731c in async_spawn_on_exit (req=0x7f6dd400d020, exit_status=0, term_signal=0) at src/io/procops.c:500
500 uv_mutex_unlock(os_handle->body.mutex);
(gdb) p os_handle
$1 = (MVMOSHandle *) 0xfa8ba8
(gdb) p *os_handle
$2 = {common = {header = {sc_forward_u = {forwarder = 0x0, sc = {sc_idx = 0, idx = 0}, st = 0x0}, owner = 0, flags = 0, size = 0}, st = 0x0}, body = {ops = 0x0, data = 0x0, mutex = 0x0}}
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment