Created
August 2, 2019 12:02
-
-
Save dogbert17/9e4bd97daa70a97647f390c3156635c8 to your computer and use it in GitHub Desktop.
Fromspace error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dogbert@dogbert-ubuntu:~/repos/rakudo/nqp/MoarVM$ git diff | |
diff --git a/src/gc/collect.h b/src/gc/collect.h | |
index b967a2bcc..fdba3ceae 100644 | |
--- a/src/gc/collect.h | |
+++ b/src/gc/collect.h | |
@@ -1,6 +1,6 @@ | |
/* The maximum size of the nursery area. Note that since it's semi-space | |
* copying, we could actually have double this amount allocated per thread. */ | |
-#define MVM_NURSERY_SIZE 4194304 | |
+#define MVM_NURSERY_SIZE 512 | |
/* The nursery size threads other than the main thread start out with. If | |
* they fill it and trigger a GC run, then it is doubled. If they are | |
diff --git a/src/gc/debug.h b/src/gc/debug.h | |
index 1dd4f17bb..088bdac48 100644 | |
--- a/src/gc/debug.h | |
+++ b/src/gc/debug.h | |
@@ -3,7 +3,7 @@ | |
* 1 = Checks on reference assignments and other relatively cheap cases | |
* 2 = Checks on every object register access (slow) | |
*/ | |
-#define MVM_GC_DEBUG 0 | |
+#define MVM_GC_DEBUG 1 | |
#if MVM_GC_DEBUG | |
#define MVM_ASSERT_NOT_FROMSPACE(tc, c) do { \ | |
dogbert@dogbert-ubuntu:~/repos/rakudo$ ./perl6-gdb-m -Ilib t/spec/S02-literals/quoting.t | |
================================================================================================ | |
This is Rakudo Perl 6 running in the debugger, which often allows the user to generate useful back- | |
traces to debug or report issues in Rakudo, the MoarVM backend or the currently running code. | |
This Rakudo version is 2019.07.1.105.g.082.c.09.e.0.e built on MoarVM version 2019.07.1.66.g.654.a.136.d.1, | |
running on ubuntu (18.04.2.LTS.Bionic.Beaver) / linux (60.Ubuntu.SMP.Tue.Jul.2.18.22.20.UTC.2019) | |
Type `bt full` to generate a backtrace if applicable, type `q` to quit or `help` for help. | |
------------------------------------------------------------------------------------------------ | |
Reading symbols from /home/dogbert/repos/rakudo/install/bin/moar...done. | |
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --execname=/home/dogbert/repos/rakudo/perl6-gdb-m --libpath=/home/dogbert/repos/rakudo --libpath=/home/dogbert/repos/rakudo/blib --libpath= --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=/home/dogbert/repos/rakudo/blib -Ilib t/spec/S02-literals/quoting.t | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
[New Thread 0x7ffff64e0700 (LWP 211047)] | |
MoarVM panic: Collectable 0x5555558144c0 in fromspace accessed | |
[Thread 0x7ffff7fdb740 (LWP 211043) exited] | |
[Inferior 1 (process 211043) exited with code 01] | |
(gdb) b MVM_panic | |
Breakpoint 1 at 0x7ffff74842b6: file src/core/exceptions.c, line 832. | |
(gdb) r | |
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --execname=/home/dogbert/repos/rakudo/perl6-gdb-m --libpath=/home/dogbert/repos/rakudo --libpath=/home/dogbert/repos/rakudo/blib --libpath= --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=/home/dogbert/repos/rakudo/blib -Ilib t/spec/S02-literals/quoting.t | |
[Thread debugging using libthread_db enabled] | |
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". | |
[New Thread 0x7ffff64e0700 (LWP 211049)] | |
Thread 1 "moar" hit Breakpoint 1, MVM_panic (exitCode=1, messageFormat=0x7ffff76b0508 "Collectable %p in fromspace accessed") at src/core/exceptions.c:832 | |
832 MVM_NO_RETURN void MVM_panic(MVMint32 exitCode, const char *messageFormat, ...) { | |
(gdb) bt | |
#0 MVM_panic (exitCode=1, messageFormat=0x7ffff76b0508 "Collectable %p in fromspace accessed") at src/core/exceptions.c:832 | |
#1 0x00007ffff753d5e1 in set_obj_at_offset (tc=0x555555758cc0, root=0x5555558141c8, data=0x5555558141e0, offset=80, value=0x555555759000) | |
at src/6model/reprs/P6opaque.c:21 | |
#2 0x00007ffff753f2db in bind_attribute (tc=0x555555758cc0, st=0x55555a971f68, root=0x5555558141c8, data=0x5555558141e0, class_handle=0x5555557d0390, | |
name=0x5555559f2390, hint=-1, value_reg=..., kind=8) at src/6model/reprs/P6opaque.c:358 | |
#3 0x00007ffff752b4e6 in MVM_repr_bind_attr_inso (tc=0x555555758cc0, object=0x5555558141c8, type=0x5555557d0390, name=0x5555559f2390, hint=-1, value_reg=..., kind=8) | |
at src/6model/reprconv.c:738 | |
#4 0x00007fffefb8b5cf in ?? () | |
#5 0x0000000000000008 in ?? () | |
#6 0x00000008f753f0cc in ?? () | |
#7 0x00007fffffffc1a0 in ?? () | |
#8 0x0000555558755880 in ?? () | |
#9 0x0000555555758cc0 in ?? () | |
#10 0x000055555869afd0 in ?? () | |
#11 0x0000555558755880 in ?? () | |
#12 0x00007fffffffc190 in ?? () | |
#13 0x00007ffff74c093f in MVM_p6opaque_read_object (tc=0x7ffff753f0cc <bind_attribute>, o=0x55555869afd0, offset=93824997497976) at src/6model/reprs/P6opaque.h:115 | |
#14 0x00007ffff76628fa in MVM_jit_code_enter (tc=0x555555758cc0, code=0x7ffff01720f0, cu=0x5555557e7228) at src/jit/interface.c:24 | |
#15 0x00007ffff74b8769 in MVM_interp_run (tc=0x555555758cc0, initial_invoke=0x7ffff763f181 <toplevel_initial_invoke>, invoke_data=0x5555557f7a78) | |
at src/core/interp.c:6314 | |
#16 0x00007ffff763f2f9 in MVM_vm_run_file (instance=0x555555758260, filename=0x7fffffffe308 "/home/dogbert/repos/rakudo/perl6.moarvm") at src/moar.c:445 | |
#17 0x000055555555581a in main (argc=10, argv=0x7fffffffde78) at src/main.c:302 | |
(gdb) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment