Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created August 27, 2017 15:16
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/b6a5ed3456e4301a67d87cef9868f116 to your computer and use it in GitHub Desktop.
Save dogbert17/b6a5ed3456e4301a67d87cef9868f116 to your computer and use it in GitHub Desktop.
Checker
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --execname=./perl6-gdb-m --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 --libpath=. --libpath=blib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib t/spec/S15-nfg/concatenation.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb7115b40 (LWP 23042)]
1..15
ok 1 - Base + combiner is 1 grapheme (1)
ok 2 - Base + combiner is 1 grapheme (2)
ok 3 - Base + 2 combiners is 1 grapheme (1)
ok 4 - Base + 2 combiners is 1 grapheme (2)
ok 5 - Order of combiners concatenated does not affect equality
ok 6 - join respects NFG (1)
ok 7 - join respects NFG (2)
ok 8 - join respects NFG (3)
ok 9 - \xfacf ~ \n is ok
ok 10 - \xfad0 ~ \n is ok
ok 11 - \xfad7 ~ \n is ok
ok 12 - a\r ~ \na is ok
ok 13 - Concat works with combining repeated characters
ok 14 - Concat works with combining repeated characters
Error, MoarVM cannot get Unicode codepoint property for synthetic codepoint -11
in block <unit> at t/spec/S15-nfg/concatenation.t line 38
# Looks like you planned 15 tests, but ran 14
[Thread 0xb7939700 (LWP 23038) exited]
[Inferior 1 (process 23038) exited with code 0377]
(gdb) b src/strings/unicode.c:67582
Breakpoint 1 at 0xb7cdbfe0: src/strings/unicode.c:67582. (7 locations)
(gdb) r
Starting program: /home/dogbert/repos/rakudo/install/bin/moar --execname=./perl6-gdb-m --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 --libpath=. --libpath=blib /home/dogbert/repos/rakudo/perl6.moarvm --nqp-lib=blib t/spec/S15-nfg/concatenation.t
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i386-linux-gnu/libthread_db.so.1".
[New Thread 0xb7115b40 (LWP 23044)]
Breakpoint 1, MVM_codepoint_to_row_index (codepoint=-11, tc=tc@entry=0x804c588) at src/strings/unicode.c:67582
67582 MVM_exception_throw_adhoc(tc, "Error, MoarVM cannot get Unicode codepoint property for synthetic codepoint %"PRId64"", codepoint);
(gdb) bt
#0 MVM_codepoint_to_row_index (codepoint=-11, tc=tc@entry=0x804c588) at src/strings/unicode.c:67582
#1 MVM_unicode_get_property_str (property_code=<optimized out>, codepoint=-11, tc=tc@entry=0x804c588) at src/strings/unicode.c:1311
#2 MVM_unicode_codepoint_get_property_cstr (tc=tc@entry=0x804c588, codepoint=-11, property_code=18) at src/strings/unicode.c:7519
#3 0xb7cec96c in MVM_string_is_control_full (tc=tc@entry=0x804c588, in=in@entry=-11) at src/strings/normalize.c:366
#4 0xb7cd72a5 in NFG_check_make_debug_string (tc=tc@entry=0x804c588, g=g@entry=-11) at src/strings/ops.c:39
#5 0xb7cd7688 in NFG_checker (tc=tc@entry=0x804c588, orig=<optimized out>, orig@entry=0xb3c4fb34, varname=varname@entry=0xb7d3859f "'result' in concat") at src/strings/ops.c:81
#6 0xb7cd7936 in NFG_check_concat (tc=tc@entry=0x804c588, result=0xb3c4fb34, a=0xb3c4e7c0, b=0xb3c4f380, varname=varname@entry=0xb7d3859f "'result' in concat") at src/strings/ops.c:110
#7 0xb7cd7f02 in MVM_string_concatenate (tc=0x804c588, a=0xb3c4e7c0, b=0xb3c4f380) at src/strings/ops.c:676
#8 0xb7c16529 in MVM_interp_run (tc=tc@entry=0x804c588, initial_invoke=initial_invoke@entry=0xb7cffee0 <toplevel_initial_invoke>, invoke_data=0xfffffff5) at src/core/interp.c:1566
#9 0xb7d00b4c in MVM_vm_run_file (instance=0x804c008, filename=0xbffff2ad "/home/dogbert/repos/rakudo/perl6.moarvm") at src/moar.c:356
#10 0x08048d99 in main (argc=10, argv=0xbfffefa4) at src/main.c:255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment