Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created December 14, 2016 15:01
Show Gist options
  • Save dogbert17/d0de6163af8ae7b85f51991266c0a640 to your computer and use it in GitHub Desktop.
Save dogbert17/d0de6163af8ae7b85f51991266c0a640 to your computer and use it in GitHub Desktop.
t/spec/S32-io/socket-recv-vs-read.t
dogbert@dogbert-VirtualBox ~/repos/rakudo $ gdb --args /home/dogbert/repos/rakudo/install/bin/moar --libpath="/home/dogbert/repos/rakudo/install/share/nqp/lib" --libpath="." /home/dogbert/repos/rakudo/perl6.moarvm -I lib t/spec/S32-io/socket-recv-vs-read.t
GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1
Copyright (C) 2014 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 "i686-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.
(gdb) break MVM_panic
Function "MVM_panic" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (MVM_panic) pending.
(gdb) r
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm -I lib t/spec/S32-io/socket-recv-vs-read.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
1..11
[New Thread 0xb6600b40 (LWP 11205)]
[New Thread 0xb5bffb40 (LWP 11206)]
[New Thread 0xb51ffb40 (LWP 11207)]
ok 1 - can recv immediately with recv (chars)
[New Thread 0xb47ffb40 (LWP 11208)]
ok 2 - can recv rest afterwards (chars)
[Switching to Thread 0xb47ffb40 (LWP 11208)]
Breakpoint 1, MVM_panic (exitCode=1, messageFormat=0xb72898e4 "Collectable %p in fromspace accessed") at src/core/exceptions.c:781
781 fprintf(stderr, "MoarVM panic: ");
(gdb) bt
#0 MVM_panic (exitCode=1, messageFormat=0xb72898e4 "Collectable %p in fromspace accessed") at src/core/exceptions.c:781
#1 0xb72888fb in finish_store (tc=0xb5c6d960, cont=0x9f9d0f4, obj=0x9f9cc24) at src/vm/moar/ops/container.c:38
#2 0xb72892da in rakudo_scalar_store_unchecked (tc=0xb5c6d960, cont=0x9f9d0f4, obj=0x9f9cc24) at src/vm/moar/ops/container.c:197
#3 0xb7cc8e98 in MVM_interp_run (tc=0xb5c6d960, initial_invoke=0xb7cf3134 <thread_initial_invoke>, invoke_data=0xb5c6b1d8) at src/core/interp.c:2855
#4 0xb7cf3276 in start_thread (data=0xb5c6b1d8) at src/core/threads.c:77
#5 0xb7de4e37 in uv.thread_start () from //home/dogbert/repos/rakudo/install/lib/libmoar.so
#6 0xb7a00f72 in start_thread (arg=0xb47ffb40) at pthread_create.c:312
#7 0xb7b48f8e in clone () at ../sysdeps/unix/sysv/linux/i386/clone.S:129
(gdb) frame 1
#1 0xb72888fb in finish_store (tc=0xb5c6d960, cont=0x9f9d0f4, obj=0x9f9cc24) at src/vm/moar/ops/container.c:38
38 MVM_ASSIGN_REF(tc, &(cont->header), rs->value, obj);
(gdb) p MVM_dump_backtrace(tc)
at <unknown>:1 (<ephemeral file>:)
from SETTING::src/core/Supply.pm:203 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:174 (./CORE.setting.moarvm:)
from SETTING::src/core/Lock.pm:24 (./CORE.setting.moarvm:protect)
from SETTING::src/core/Supply.pm:174 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1418 (./CORE.setting.moarvm:)
from SETTING::src/core/Supply.pm:1415 (./CORE.setting.moarvm:emit)
from SETTING::src/core/Supply.pm:1455 (./CORE.setting.moarvm:emit)
from SETTING::src/core/IO/Socket/Async.pm:110 (./CORE.setting.moarvm:)
from SETTING::src/core/IO/Socket/Async.pm:104 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:48 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:45 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:44 (./CORE.setting.moarvm:)
from SETTING::src/core/ThreadPoolScheduler.pm:41 (./CORE.setting.moarvm:)
from SETTING::src/core/Thread.pm:30 (./CORE.setting.moarvm:THREAD-ENTRY)
$1 = void
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment