Skip to content

Instantly share code, notes, and snippets.

@dogbert17
Last active October 9, 2016 13:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save dogbert17/3f9cfcee81cbd6b1429ef59ff49134ae to your computer and use it in GitHub Desktop.
Strange valgrind error which pops up when running different spectests, albeit very seldomly
dogbert@dogbert-VirtualBox ~/repos/rakudo $ ./perl6-valgrind-m -Ilib t/spec/S32-basics/warn.t
================================================================================================
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.
This Rakudo version is 2016.09.149.g.228.cbc.3 built on MoarVM version 2016.09.35.gb.654.e.7.e,
running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.19.0.32.generic)
------------------------------------------------------------------------------------------------
==12554== Memcheck, a memory error detector
==12554== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==12554== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==12554== Command: /home/dogbert/repos/rakudo/install/bin/moar --full-cleanup --execname=./perl6-valgrind-m --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm -Ilib t/spec/S32-basics/warn.t
==12554==
==12562== Memcheck, a memory error detector
==12562== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==12562== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==12562== Command: /home/dogbert/repos/rakudo/install/bin/moar --full-cleanup --execname=./perl6-valgrind-m --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm --target=mbc --output=/home/dogbert/repos/rakudo/t/spec/packages/.precomp/F62E58C5959889FF0BBDE2D223EB4BA84B59979A.1476015610.81965/D9/D956121FC1708BE9D3A2A90B37DA71D90D517CD0.bc --source-name=/home/dogbert/repos/rakudo/t/spec/packages/Test/Util.pm\ (Test::Util) /home/dogbert/repos/rakudo/t/spec/packages/Test/Util.pm
==12562==
==12562== Syscall param write(buf) points to uninitialised byte(s)
==12562== at 0x44CA003: __write_nocancel (syscall-template.S:81)
==12562== by 0x445DD20: _IO_file_write@@GLIBC_2.1 (fileops.c:1261)
==12562== by 0x445CF5E: new_do_write (fileops.c:538)
==12562== by 0x445E3D1: _IO_file_xsputn@@GLIBC_2.1 (fileops.c:1343)
==12562== by 0x4453891: fwrite (iofwrite.c:43)
==12562== by 0x417EEBA: MVM_mast_to_file (driver.c:75)
==12562== by 0x40D621A: MVM_interp_run (interp.c:3105)
==12562== by 0x41C8B15: MVM_vm_run_file (moar.c:304)
==12562== by 0x8048EA5: main (main.c:191)
==12562== Address 0xcb94545 is 62,621 bytes inside a block of size 102,452 alloc'd
==12562== at 0x402A17C: malloc (in /usr/lib/valgrind/vgpreload_memcheck-x86-linux.so)
==12562== by 0x4178922: MVM_malloc (alloc.h:2)
==12562== by 0x417DC83: form_bytecode_output (compiler.c:1427)
==12562== by 0x417E78B: MVM_mast_compile (compiler.c:1602)
==12562== by 0x417EE4D: MVM_mast_to_file (driver.c:75)
==12562== by 0x40D621A: MVM_interp_run (interp.c:3105)
==12562== by 0x41C8B15: MVM_vm_run_file (moar.c:304)
==12562== by 0x8048EA5: main (main.c:191)
==12562==
==12562==
==12562== HEAP SUMMARY:
==12562== in use at exit: 153,016 bytes in 4,615 blocks
==12562== total heap usage: 670,331 allocs, 665,716 frees, 178,850,376 bytes allocated
==12562==
==12562== LEAK SUMMARY:
==12562== definitely lost: 5,494 bytes in 183 blocks
==12562== indirectly lost: 14,136 bytes in 672 blocks
==12562== possibly lost: 120,032 bytes in 3,751 blocks
==12562== still reachable: 13,354 bytes in 9 blocks
==12562== suppressed: 0 bytes in 0 blocks
==12562== Rerun with --leak-check=full to see details of leaked memory
==12562==
==12562== For counts of detected and suppressed errors, rerun with: -v
==12562== Use --track-origins=yes to see where uninitialised values come from
==12562== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
================================================================================================
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.
This Rakudo version is 2016.09.149.g.228.cbc.3 built on MoarVM version 2016.09.35.gb.654.e.7.e,
running on ubuntu (14.04.3.LTS.Trusty.Tahr) / linux (3.19.0.32.generic)
------------------------------------------------------------------------------------------------
WARNINGS for /home/dogbert/repos/rakudo/t/spec/S32-basics/warn.t:
Useless use of "~" in expression "~Any" in sink context (line 35)
1..7
# It's OK to see this warning during a test run
in block at t/spec/S32-basics/warn.t line 15
ok 1 - try blocks do not catch exceptions
ok 2 - CONTROL catches exceptions
ok 3 - Stringifying Any warns
ok 4 - warn() without arguments
ok 5 - warn() with arguments; line number
ok 6 - try does not suppress warnings
not ok 7 - quietly suppresses warnings
# Failed test 'quietly suppresses warnings'
# at /home/dogbert/repos/rakudo/t/spec/packages/Test/Util.pm (Test::Util) line 59
# got err: "==12594== Memcheck, a memory error detector\n==12594== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.\n==12594== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info\n==12594== Command: /home/dogbert/repos/rakudo/install/bin/moar --full-cleanup --execname=./perl6-valgrind-m --libpath=/home/dogbert/repos/rakudo/install/share/nqp/lib --libpath=. /home/dogbert/repos/rakudo/perl6.moarvm getout-12554-577909.code\n==12594== \n==12594== \n==12594== HEAP SUMMARY:\n==12594== in use at exit: 152,952 bytes in 4,609 blocks\n==12594== total heap usage: 237,753 allocs, 233,144 frees, 42,611,109 bytes allocated\n==12594== \n==12594== LEAK SUMMARY:\n==12594== definitely lost: 5,454 bytes in 181 blocks\n==12594== indirectly lost: 14,112 bytes in 668 blocks\n==12594== possibly lost: 120,032 bytes in 3,751 blocks\n==12594== still reachable: 13,354 bytes in 9 blocks\n==12594== suppressed: 0 bytes in 0 blocks\n==12594== Rerun with --leak-check=full to see details of leaked memory\n==12594== \n==12594== For counts of detected and suppressed errors, rerun with: -v\n==12594== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)\n"
# expected err: ""
# Looks like you failed 1 test of 7
==12554==
==12554== HEAP SUMMARY:
==12554== in use at exit: 61,187,302 bytes in 290,420 blocks
==12554== total heap usage: 403,382 allocs, 112,962 frees, 107,268,276 bytes allocated
==12554==
==12554== LEAK SUMMARY:
==12554== definitely lost: 5,594 bytes in 182 blocks
==12554== indirectly lost: 14,252 bytes in 669 blocks
==12554== possibly lost: 224,592 bytes in 7,020 blocks
==12554== still reachable: 60,942,864 bytes in 282,549 blocks
==12554== suppressed: 0 bytes in 0 blocks
==12554== Rerun with --leak-check=full to see details of leaked memory
==12554==
==12554== For counts of detected and suppressed errors, rerun with: -v
==12554== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment