Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created October 17, 2018 13:22
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/c7e9b9372d5b2142a525c5a957d4d62e to your computer and use it in GitHub Desktop.
Save dogbert17/c7e9b9372d5b2142a525c5a957d4d62e to your computer and use it in GitHub Desktop.
GC problem (32 bit system)
dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-gdb-m t/spec/S32-io/io-path-extension.t
================================================================================================
This is Rakudo Perl 6 running in the GNU 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 2018.09.447.gc.8438.e.6.af built on MoarVM version 2018.09.131.g.1.d.6562.bfd,
running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.19.0.32.generic)
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=./perl6-gdb-m --libpath=. --libpath=blib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib t/spec/S32-io/io-path-extension.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb7711b40 (LWP 3625)]
1..283
ok 1 - 'foo.txt.tar.gz'.IO.extension \()
ok 2 - 'foo.txt.tar.gz'.IO.extension \(:parts(1))
ok 3 - 'foo.txt.tar.gz'.IO.extension \(:parts(1..1))
ok 4 - 'foo.txt.tar.gz'.IO.extension \(:parts(0..1))
...
ok 212 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(0..1))
ok 213 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(2))
ok 214 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(2..2))
ok 215 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(0..2))
ok 216 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(3))
ok 217 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(3..3))
ok 218 - '.txt.tar.gz'.IO.extension \("", :joiner("_"), :parts(0..3))
Breakpoint 1, MVM_panic (exitCode=1, messageFormat=0xb7c12720 "Collectable %p in fromspace accessed") at src/core/exceptions.c:823
823 fprintf(stderr, "MoarVM panic: ");
(gdb) bt
#0 MVM_panic (exitCode=1, messageFormat=0xb7c12720 "Collectable %p in fromspace accessed") at src/core/exceptions.c:823
#1 0xb7afa632 in bind_key (tc=0x804c638, st=0x808fd30, root=0x8201e34, data=0x8201e44, key=0x89f9d80, value=..., kind=8) at src/6model/reprs/MVMContext.c:151
#2 0xb7a55aa9 in MVM_interp_run (tc=0x804c638, initial_invoke=0xb7bcfc82 <toplevel_initial_invoke>, invoke_data=0x80e2f38) at src/core/interp.c:2432
#3 0xb7bcfde1 in MVM_vm_run_file (instance=0x804c008, filename=0xbffff2d7 "/home/dogbert/repos/rakudo/perl6.moarvm") at src/moar.c:440
#4 0x08049240 in main (argc=10, argv=0xbfffefe4) at src/main.c:301
(gdb) f 1
#1 0xb7afa632 in bind_key (tc=0x804c638, st=0x808fd30, root=0x8201e34, data=0x8201e44, key=0x89f9d80, value=..., kind=8) at src/6model/reprs/MVMContext.c:151
151 MVM_ASSIGN_REF(tc, &(found_frame->header), found->o, value.o);
(gdb) l
146 "Lexical with name '%s' has a different type in this frame",
147 c_name);
148 }
149
150 if (got_kind == MVM_reg_obj || got_kind == MVM_reg_str) {
151 MVM_ASSIGN_REF(tc, &(found_frame->header), found->o, value.o);
152 }
153 else {
154 *found = value;
155 }
(gdb) info threads
Id Target Id Frame
2 Thread 0xb7732b40 (LWP 3396) "moar" 0xb7fdccb0 in ?? ()
* 1 Thread 0xb7754940 (LWP 3395) "moar" MVM_panic (exitCode=1, messageFormat=0xb7c12720 "Collectable %p in fromspace accessed") at src/core/exceptions.c:823
(gdb) p MVM_dump_backtrace(tc)
at gen/moar/BOOTSTRAP.nqp:490 (./blib/Perl6/BOOTSTRAP.moarvm:bind_one_param)
from gen/moar/BOOTSTRAP.nqp:807 (./blib/Perl6/BOOTSTRAP.moarvm:bind)
from gen/moar/BOOTSTRAP.nqp:988 (./blib/Perl6/BOOTSTRAP.moarvm:bind_cap_to_sig)
from SETTING::src/core/IO/Path.pm6:167 (./CORE.setting.moarvm:extension)
from SETTING::src/core/IO/Path.pm6:125 (./CORE.setting.moarvm:extension)
from t/spec/S32-io/io-path-extension.t:181 (<ephemeral file>:)
from <unknown>:1 (<ephemeral file>:<unit>)
from t/spec/S32-io/io-path-extension.t:1 (<ephemeral file>:<unit-outer>)
from gen/moar/stage2/NQPHLL.nqp:1675 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:eval)
from gen/moar/stage2/NQPHLL.nqp:1914 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:evalfiles)
from gen/moar/stage2/NQPHLL.nqp:1804 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_eval)
from src/Perl6/Compiler.nqp:42 (blib/Perl6/Compiler.moarvm:command_eval)
from gen/moar/stage2/NQPHLL.nqp:1763 (/home/dogbert/repos/rakudo/install/share/nqp/lib/NQPHLL.moarvm:command_line)
from gen/moar/main.nqp:54 (/home/dogbert/repos/rakudo/perl6.moarvm:MAIN)
from gen/moar/main.nqp:42 (/home/dogbert/repos/rakudo/perl6.moarvm:<mainline>)
from <unknown>:1 (/home/dogbert/repos/rakudo/perl6.moarvm:<main>)
from <unknown>:1 (/home/dogbert/repos/rakudo/perl6.moarvm:<entry>)
$1 = void
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment