Skip to content

Instantly share code, notes, and snippets.

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/d64f0a8ef752ee078c0524f33cfb9b19 to your computer and use it in GitHub Desktop.
Save dogbert17/d64f0a8ef752ee078c0524f33cfb9b19 to your computer and use it in GitHub Desktop.
Possible JIT problem
dogbert@dogbert-VirtualBox ~/repos/rakudo $ MVM_SPESH_NODELAY=1 MVM_SPESH_BLOCKING=1 ./perl6-valgrind-m t/spec/S02-types/native.rakudo.moar
================================================================================================
This is Rakudo Perl 6 running in valgrind, a tool for debugging and profiling programs.
Running a program in valgrind usually takes *a lot* more time than running it directly,
so please be patient.
Valgrind options can be added with MVM_VALGRIND_OPTS environment variable.
This Rakudo version is 2018.06.69.g.2.f.8074.b built on MoarVM version 2018.06.103.gaf.45539,
running on linuxmint (18.3.Sylvia) / linux (4.10.0.38.generic)
------------------------------------------------------------------------------------------------
==16209== Memcheck, a memory error detector
==16209== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==16209== Using Valgrind-3.11.0 and LibVEX; rerun with -h for copyright info
==16209== Command: /home/dogbert/repos/rakudo/nqp/MoarVM/../../install/bin/moar --execname=./perl6-valgrind-m --libpath=. --libpath=blib --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/S02-types/native.rakudo.moar
==16209==
==16209== Invalid read of size 8
==16209== at 0x11CBF240: ???
==16209== by 0x51C995A: MVM_jit_code_enter (interface.c:24)
==16209== by 0x503B0E8: MVM_interp_run (interp.c:5883)
==16209== by 0x51A7E43: MVM_vm_run_file (moar.c:412)
==16209== by 0x4016E6: main (main.c:299)
==16209== Address 0xa34acda is 10 bytes inside a block of size 16 alloc'd
==16209== at 0x4C2DB8F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==16209== by 0x50C75D2: MVM_malloc (alloc.h:2)
==16209== by 0x50C80D0: deserialize_repr_data (P6int.c:179)
==16209== by 0x510EFD8: deserialize_stable (serialization.c:2703)
==16209== by 0x510F370: work_loop (serialization.c:2770)
==16209== by 0x510F711: MVM_serialization_demand_stable (serialization.c:2844)
==16209== by 0x5103E7F: MVM_sc_get_stable (sc.c:252)
==16209== by 0x510BB9B: read_object_table_entry (serialization.c:2230)
==16209== by 0x510FFF3: repossess (serialization.c:3015)
==16209== by 0x51107C4: MVM_serialization_deserialize (serialization.c:3172)
==16209== by 0x5023AB4: MVM_interp_run (interp.c:3104)
==16209== by 0x51A7E43: MVM_vm_run_file (moar.c:412)
==16209==
==16209== Conditional jump or move depends on uninitialised value(s)
==16209== at 0x11CBF248: ???
==16209== by 0x51C995A: MVM_jit_code_enter (interface.c:24)
==16209== by 0x503B0E8: MVM_interp_run (interp.c:5883)
==16209== by 0x51A7E43: MVM_vm_run_file (moar.c:412)
==16209== by 0x4016E6: main (main.c:299)
==16209==
1..95
ok 1 - int default value
ok 2 - can do basic math with int
ok 3 - num default value
ok 4 - can do basic math with num
ok 5 - str default value
...
ok 70 - called int32 sub successfully
ok 71 - called int16 sub successfully
ok 72 - called int8 sub successfully
ok 73 - sub with int32 arg will see it truncated
ok 74 - sub with int16 arg will see it truncated
ok 75 - sub with int8 arg will see it truncated
Bytecode validation error at offset 84, instruction 13:
operand type 152 does not match register type 24
in block <unit> at t/spec/S02-types/native.rakudo.moar line 298
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment