On 10/17/2017 09:27 PM, Timo Paulssen via RT wrote:
> if you can, please re-compile MoarVM passing the same options that were
> used before (you can find them on the first screenfuls of the Makefile
> inside moarvm's source folder) to Configure.pl but also include
> --debug=3 and --optimize=0. This is an optional step. After that, please
> run perl6-valgrind-m instead of perl6 or perl6-m to execute your script,
> that should give more helpful data.
>
> Later on, to run stuff regularly again, turn optimize back up to 3,
> otherwise things will be noticeably slower.
>
@timo

The program didn't crash but the system got slower until a point that I 
had to stop it. The end result is shown below. (There are 2 more runs 
below this one!)


==26702==
==26702== Process terminating with default action of signal 2 (SIGINT)
==26702==    at 0x5DE090B: pthread_cond_wait@@GLIBC_2.3.2 (in 
/usr/lib64/libpthread-2.25.so)
==26702==    by 0x51061F8: uv_cond_wait (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x5061E04: shift (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x50419F3: MVM_repr_shift_o (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x5091898: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==26702==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==26702==
==26702== HEAP SUMMARY:
==26702==     in use at exit: 491,357,261 bytes in 1,627,986 blocks
==26702==   total heap usage: 29,576,790 allocs, 27,948,804 frees, 
17,354,627,753 bytes allocated
==26702==
==26702== LEAK SUMMARY:
==26702==    definitely lost: 1,213,140 bytes in 37,380 blocks
==26702==    indirectly lost: 49,224 bytes in 1,709 blocks
==26702==      possibly lost: 395,844 bytes in 7,003 blocks
==26702==    still reachable: 489,699,053 bytes in 1,581,894 blocks
==26702==         suppressed: 0 bytes in 0 blocks
==26702== Rerun with --leak-check=full to see details of leaked memory
==26702==
==26702== For counts of detected and suppressed errors, rerun with: -v
==26702== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)



A run on a smaller set of files and directories ended like this

==27745==
==27745== HEAP SUMMARY:
==27745==     in use at exit: 299,554,654 bytes in 996,179 blocks
==27745==   total heap usage: 3,885,468 allocs, 2,889,289 frees, 
2,080,116,257 bytes allocated
==27745==
==27745== LEAK SUMMARY:
==27745==    definitely lost: 632,860 bytes in 19,779 blocks
==27745==    indirectly lost: 15,392 bytes in 436 blocks
==27745==      possibly lost: 381,904 bytes in 6,792 blocks
==27745==    still reachable: 298,524,498 bytes in 969,172 blocks
==27745==         suppressed: 0 bytes in 0 blocks
==27745== Rerun with --leak-check=full to see details of leaked memory
==27745==
==27745== For counts of detected and suppressed errors, rerun with: -v
==27745== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)


Then I ran with the option '--leak-check=full' which ended with a much 
larger list of data

==27960==
==27960== HEAP SUMMARY:
==27960==     in use at exit: 280,544,350 bytes in 992,192 blocks
==27960==   total heap usage: 3,672,304 allocs, 2,680,112 frees, 
1,929,387,061 bytes allocated
==27960==
==27960== 24 bytes in 3 blocks are possibly lost in loss record 820 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x50941CD: plan_for_cs (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50942FB: plan_for_sf (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50944CF: MVM_spesh_plan (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5091A13: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== 81 bytes in 27 blocks are definitely lost in loss record 1,626 
of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x509779D: MVM_string_ascii_encode_substr (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5097BF5: MVM_string_ascii_encode (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50BA5DD: MVM_unicode_name_to_property_value_code (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x500A458: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAD9: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 192 bytes in 4 blocks are possibly lost in loss record 2,178 
of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x501C351: MVM_load_bytecode (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF8E22: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAD9: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 272 bytes in 1 blocks are possibly lost in loss record 2,369 
of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x4013EC6: _dl_allocate_tls (in /usr/lib64/ld-2.25.so)
==27960==    by 0x5DDAEEC: pthread_create@@GLIBC_2.2.5 (in 
/usr/lib64/libpthread-2.25.so)
==27960==    by 0x5105DC0: uv_thread_create (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x501A280: MVM_thread_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CE5A9: MVM_vm_create_instance (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400D26: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 272 bytes in 1 blocks are possibly lost in loss record 2,370 
of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x4013EC6: _dl_allocate_tls (in /usr/lib64/ld-2.25.so)
==27960==    by 0x5DDAEEC: pthread_create@@GLIBC_2.2.5 (in 
/usr/lib64/libpthread-2.25.so)
==27960==    by 0x5105DC0: uv_thread_create (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x501A280: MVM_thread_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50338D9: MVM_io_eventloop_queue_work (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x503A433: MVM_proc_spawn_async (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5007BA0: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAD9: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 392 bytes in 7 blocks are possibly lost in loss record 2,549 
of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x50BAE49: MVM_unicode_init (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CDF1C: MVM_vm_create_instance (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400D26: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 448 bytes in 8 blocks are possibly lost in loss record 2,602 
of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x50BB149: MVM_unicode_init (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CDF1C: MVM_vm_create_instance (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400D26: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 544 bytes in 2 blocks are possibly lost in loss record 2,717 
of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x4013EC6: _dl_allocate_tls (in /usr/lib64/ld-2.25.so)
==27960==    by 0x5DDAEEC: pthread_create@@GLIBC_2.2.5 (in 
/usr/lib64/libpthread-2.25.so)
==27960==    by 0x5105DC0: uv_thread_create (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x501A280: MVM_thread_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FFDBAB: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAD9: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 576 (360 direct, 216 indirect) bytes in 9 blocks are 
definitely lost in loss record 2,745 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x5068C31: MVM_decoder_configure (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FFC660: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAD9: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 864 bytes in 18 blocks are possibly lost in loss record 2,919 
of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x501C351: MVM_load_bytecode (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF8E22: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAB2: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 1,360 bytes in 34 blocks are possibly lost in loss record 
3,142 of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x5091EDE: stats_for (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x509320B: MVM_spesh_stats_update (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50919AA: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== 1,800 bytes in 26 blocks are possibly lost in loss record 
3,246 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x509410C: copy_type_tuple (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50941F2: plan_for_cs (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50942FB: plan_for_sf (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50944CF: MVM_spesh_plan (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5091A13: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== 1,904 bytes in 7 blocks are possibly lost in loss record 3,261 
of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x4013EC6: _dl_allocate_tls (in /usr/lib64/ld-2.25.so)
==27960==    by 0x5DDAEEC: pthread_create@@GLIBC_2.2.5 (in 
/usr/lib64/libpthread-2.25.so)
==27960==    by 0x5105DC0: uv_thread_create (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x501A280: MVM_thread_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FFDBAB: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== 53,968 (52,136 direct, 1,832 indirect) bytes in 6,517 blocks 
are definitely lost in loss record 4,465 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x50941CD: plan_for_cs (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50942FB: plan_for_sf (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50944CF: MVM_spesh_plan (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5091A13: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== 176,008 bytes in 3,143 blocks are possibly lost in loss record 
4,666 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x50B9CF9: MVM_unicode_name_to_property_code (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x500A4AF: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CEAD9: MVM_vm_run_file (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400F27: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 196,616 bytes in 3,511 blocks are possibly lost in loss record 
4,675 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x50BA72D: MVM_unicode_init (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50CDF1C: MVM_vm_create_instance (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x400D26: main (in 
/home/marcel/Software/perl6/rakudo/install/bin/moar)
==27960==
==27960== 233,136 bytes in 5,216 blocks are definitely lost in loss 
record 4,700 of 4,825
==27960==    at 0x4C2EB6B: malloc (vg_replace_malloc.c:299)
==27960==    by 0x509410C: copy_type_tuple (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50941F2: plan_for_cs (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50942FB: plan_for_sf (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50944CF: MVM_spesh_plan (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5091A13: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== 417,203 (400,200 direct, 17,003 indirect) bytes in 10,005 
blocks are definitely lost in loss record 4,748 of 4,825
==27960==    at 0x4C30A1E: calloc (vg_replace_malloc.c:711)
==27960==    by 0x5091EDE: stats_for (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x509320B: MVM_spesh_stats_update (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x50919AA: worker (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019EF0: thread_initial_invoke (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x4FF84F7: MVM_interp_run (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5019F6D: start_thread (in 
/home/marcel/Software/perl6/rakudo/install/lib/libmoar.so)
==27960==    by 0x5DDA36C: start_thread (in /usr/lib64/libpthread-2.25.so)
==27960==
==27960== LEAK SUMMARY:
==27960==    definitely lost: 685,913 bytes in 21,774 blocks
==27960==    indirectly lost: 19,051 bytes in 520 blocks
==27960==      possibly lost: 380,696 bytes in 6,765 blocks
==27960==    still reachable: 279,458,690 bytes in 963,133 blocks
==27960==         suppressed: 0 bytes in 0 blocks
==27960== Reachable blocks (those to which a pointer was found) are not 
shown.
==27960== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==27960==
==27960== For counts of detected and suppressed errors, rerun with: -v
==27960== ERROR SUMMARY: 18 errors from 18 contexts (suppressed: 0 from 0)


Hopefully there is something to work with.
Regards,
Marcel

Reply via email to