Skip to content

Instantly share code, notes, and snippets.

@MasterDuke17
Created October 18, 2021 17:58
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 MasterDuke17/44cac13be447bd05deb4761155111183 to your computer and use it in GitHub Desktop.
Save MasterDuke17/44cac13be447bd05deb4761155111183 to your computer and use it in GitHub Desktop.
[dan@alexandria rakudo]$ MVM_SPESH_NODELAY=1 MVM_SPESH_BLOCKING=1 gdb --args ./rakudo-m -I lib/ t/02-rakudo/03-cmp-ok.t
GNU gdb (GDB) 11.1
Copyright (C) 2021 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-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://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 ./rakudo-m...
(gdb) r
Starting program: /home/dan/Source/perl6/rakudo/rakudo-m -I lib/ t/02-rakudo/03-cmp-ok.t
process 635223 is executing new program: /home/dan/Source/perl6/install/bin/moar
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff6d8e640 (LWP 635227)]
1..7
# Subtest: string comparators
1..13
ok 1 -
ok 2 -
ok 3 - "foo" eq "foo"
ok 4 - "a" lt "b"
ok 5 - "b" gt "a"
ok 6 - 1 < 2
ok 7 - 2 >= 1
not ok 8 - 2 < 1 # TODO should fail due to requested comparison
# Failed test '2 < 1'
# at t/02-rakudo/03-cmp-ok.t line 15
# expected: 1
# matcher: 'infix:«<»'
# got: 2
ok 9 - should fail due to requested comparison
not ok 10 - "foo" eq "bar" # TODO should fail due to requested comparison
# Failed test '"foo" eq "bar"'
# at t/02-rakudo/03-cmp-ok.t line 15
# expected: "bar"
# matcher: 'infix:<eq>'
# got: "foo"
ok 11 - should fail due to requested comparison
not ok 12 - # TODO should fail due to requested comparison
# Failed test at t/02-rakudo/03-cmp-ok.t line 15
# Could not use '"non-exisistant-op"' as a comparator. If you are trying to use a meta operator, pass it as a Callable instead of a string: &[non-exisistant-op]
ok 13 - should fail due to requested comparison
ok 1 - string comparators
# Subtest: &[] comparators
1..11
ok 1 -
ok 2 -
ok 3 - "foo" eq "foo"
ok 4 - "a" lt "b"
ok 5 - "b" gt "a"
ok 6 - 1 < 2
ok 7 - 2 >= 1
not ok 8 - 2 < 1 # TODO should fail due to requested comparison
# Failed test '2 < 1'
# at t/02-rakudo/03-cmp-ok.t line 31
Thread 1 "moar" received signal SIGSEGV, Segmentation fault.
0x00007ffff7918fd0 in MVM_disp_program_run (tc=tc@entry=0x555555559e30, dp=dp@entry=0x55555eacfcb0, record=0x7ffff76487b0, spesh_cid=spesh_cid@entry=0, bytecode_offset=bytecode_offset@entry=238, dp_index=dp_index@entry=0) at src/disp/program.c:3020
3020 if (STABLE(val.o) != (MVMSTable *)dp->gc_constants[op.temp_guard.checkee]
(gdb) bt
#0 0x00007ffff7918fd0 in MVM_disp_program_run (tc=tc@entry=0x555555559e30, dp=dp@entry=0x55555eacfcb0, record=0x7ffff76487b0, spesh_cid=spesh_cid@entry=0, bytecode_offset=bytecode_offset@entry=238, dp_index=dp_index@entry=0)
at src/disp/program.c:3020
#1 0x00007ffff791012f in dispatch_monomorphic (tc=0x555555559e30, entry_ptr=0x55555ea874a8, seen=0x555558d04f70, id=<optimized out>, callsite=<optimized out>, arg_indices=0x7fffee713f11, source=0x55555ea79920, sf=<optimized out>,
bytecode_offset=238) at src/disp/inline_cache.c:107
#2 0x00007ffff78786ad in MVM_interp_run (tc=0x555557956388, initial_invoke=0x55555eacfcb0, initial_invoke@entry=0x7ffff7999a80 <toplevel_initial_invoke>, invoke_data=0x55555eacfcb0,
invoke_data@entry=0x7ffff7999a80 <toplevel_initial_invoke>, outer_runloop=0x7ffff7dccda0 <LABELS.0>, outer_runloop@entry=0x0) at src/core/interp.c:5369
#3 0x00007ffff799ab95 in MVM_vm_run_file (instance=<optimized out>, filename=<optimized out>) at src/moar.c:505
#4 0x000055555555573f in main (argc=9, argv=0x7fffffffe178) at src/main.c:307
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment