Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Created April 9, 2018 14:42
Show Gist options
  • Save dogbert17/c4ca411e590ff4bcd836b7dd04b16270 to your computer and use it in GitHub Desktop.
Save dogbert17/c4ca411e590ff4bcd836b7dd04b16270 to your computer and use it in GitHub Desktop.
Splice and dice
ok 76 - array[int] replace 1 with range
1..2
1..4
ok 1 - return types match
ok 2 - return results match
ok 3 - remainder types match
ok 4 - remainder results match
ok 1 - array[int] sub: replace 1 with none
1..4
ok 1 - return types match
ok 2 - return results match
ok 3 - remainder types match
ok 4 - remainder results match
ok 2 - array[int] method: replace 1 with none
ok 77 - array[int] replace 1 with none
1..2
=================================================================
==12956== ERROR: AddressSanitizer: memcpy-param-overlap: memory ranges [0xafc081e8,0xafc08230) and [0xafc081c0, 0xafc08208) overlap
#0 0xb61b6b9a (/usr/lib/i386-linux-gnu/libasan.so.0+0xdb9a)
#1 0xb54dbd0e in asplice /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:891
#2 0xb531bb69 in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:2374
#3 0xb5768848 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:407
#4 0x8049da8 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:299
#5 0xb4f7caf2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
#6 0x8048cc0 in _start (/home/dogbert/repos/rakudo/install/bin/moar+0x8048cc0)
0xafc081e8 is located 40 bytes inside of 160-byte region [0xafc081c0,0xafc08260)
allocated by thread T0 here:
#0 0xb61bf9b4 (/usr/lib/i386-linux-gnu/libasan.so.0+0x169b4)
#1 0xb54d0afe in MVM_realloc /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/alloc.h:20
#2 0xb54d549f in set_size_internal /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:364
#3 0xb54d6977 in set_elems /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:466
#4 0xb531be9c in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:2382
#5 0xb5768848 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:407
#6 0x8049da8 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:299
#7 0xb4f7caf2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
0xafc081c0 is located 0 bytes inside of 160-byte region [0xafc081c0,0xafc08260)
allocated by thread T0 here:
#0 0xb61bf9b4 (/usr/lib/i386-linux-gnu/libasan.so.0+0x169b4)
#1 0xb54d0afe in MVM_realloc /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/alloc.h:20
#2 0xb54d549f in set_size_internal /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:364
#3 0xb54d6977 in set_elems /home/dogbert/repos/rakudo/nqp/MoarVM/src/6model/reprs/VMArray.c:466
#4 0xb531be9c in MVM_interp_run /home/dogbert/repos/rakudo/nqp/MoarVM/src/core/interp.c:2382
#5 0xb5768848 in MVM_vm_run_file /home/dogbert/repos/rakudo/nqp/MoarVM/src/moar.c:407
#6 0x8049da8 in main /home/dogbert/repos/rakudo/nqp/MoarVM/src/main.c:299
#7 0xb4f7caf2 (/lib/i386-linux-gnu/libc.so.6+0x19af2)
SUMMARY: AddressSanitizer: memcpy-param-overlap ??:0 ??
==12956== ABORTING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment