diff --git a/src/boat/private/FileManager.nim b/src/boat/private/FileManager.nim index b94707b..affc243 100644 --- a/src/boat/private/FileManager.nim +++ b/src/boat/private/FileManager.nim @@ -3,16 +3,19 @@ ## =========== ## Saving to and Retrieving from disk +# valgrind throws if this file is imported into ./Config.nim +import std/asyncdispatch # causes valgrind to throw +import std/threadpool # causes valgrind to throw + # import ../../../bdd -# valgrind throws if this file is imported into ./Config.nim -import std/[ - asyncdispatch, # causes valgrind to throw - # locks, - threadpool, # causes valgrind to throw - ] +# import std/[ +# asyncdispatch, +# locks, +# threadpool, +# ] -import BoatConstants, BoatErrors +# import BoatConstants, BoatErrors # export asyncdispatch diff --git a/testresults.html b/testresults.html index d353beb..0ffc77c 100644 --- a/testresults.html +++ b/testresults.html @@ -126,9 +126,9 @@
7fe38510a7d
442d971e590
exitcode: 1 Output: -==233188== Memcheck, a memory error detector -==233188== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. -==233188== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info -==233188== Command: tests/boat/tmain -==233188== +==423555== Memcheck, a memory error detector +==423555== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. +==423555== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info +==423555== Command: tests/boat/tmain +==423555== All HANDS! cat o'nine tails! blue peter! OMG... landlubber -==233188== -==233188== HEAP SUMMARY: -==233188== in use at exit: 6,417 bytes in 21 blocks -==233188== total heap usage: 3,021 allocs, 3,000 frees, 116,417 bytes allocated -==233188== -==233188== 0 bytes in 1 blocks are definitely lost in loss record 1 of 9 -==233188== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) -==233188== by 0x4005A22: malloc (rtld-malloc.h:56) -==233188== by 0x4005A22: _dl_find_object_update (dl-find_object.c:791) -==233188== by 0x400ECCF: dl_open_worker_begin (dl-open.c:735) -==233188== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) -==233188== by 0x400DF99: dl_open_worker (dl-open.c:782) -==233188== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) -==233188== by 0x400E34D: _dl_open (dl-open.c:883) -==233188== by 0x48FE6BB: dlopen_doit (dlopen.c:56) -==233188== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) -==233188== by 0x49E2CF2: _dl_catch_error (dl-error-skeleton.c:227) -==233188== by 0x48FE1AD: _dlerror_run (dlerror.c:138) -==233188== by 0x48FE747: dlopen_implementation (dlopen.c:71) -==233188== by 0x48FE747: dlopen@@GLIBC_2.34 (dlopen.c:81) -==233188== -==233188== 3,264 bytes in 12 blocks are possibly lost in loss record 9 of 9 -==233188== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) -==233188== by 0x40147D9: calloc (rtld-malloc.h:44) -==233188== by 0x40147D9: allocate_dtv (dl-tls.c:375) -==233188== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634) -==233188== by 0x4903834: allocate_stack (allocatestack.c:430) -==233188== by 0x4903834: pthread_create@@GLIBC_2.34 (pthread_create.c:647) -==233188== by 0x11778C: createThread__pureZconcurrencyZthreadpool_489 (in /home/poop/git/private/nirv/boat/tests/boat/tmain) -==233188== by 0x11CF99: atmdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot12atslibatspureatsconcurrencyatsthreadpooldotnim_Init000 (in /home/poop/git/private/nirv/boat/tests/boat/tmain) -==233188== by 0x10A540: main (in /home/poop/git/private/nirv/boat/tests/boat/tmain) -==233188== -==233188== LEAK SUMMARY: -==233188== definitely lost: 0 bytes in 1 blocks -==233188== indirectly lost: 0 bytes in 0 blocks -==233188== possibly lost: 3,264 bytes in 12 blocks -==233188== still reachable: 3,153 bytes in 8 blocks -==233188== suppressed: 0 bytes in 0 blocks -==233188== Reachable blocks (those to which a pointer was found) are not shown. -==233188== To see them, rerun with: --leak-check=full --show-leak-kinds=all -==233188== -==233188== For lists of detected and suppressed errors, rerun with: -s -==233188== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)+==423555== +==423555== HEAP SUMMARY: +==423555== in use at exit: 6,417 bytes in 21 blocks +==423555== total heap usage: 3,021 allocs, 3,000 frees, 116,417 bytes allocated +==423555== +==423555== 0 bytes in 1 blocks are definitely lost in loss record 1 of 9 +==423555== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) +==423555== by 0x4005A22: malloc (rtld-malloc.h:56) +==423555== by 0x4005A22: _dl_find_object_update (dl-find_object.c:791) +==423555== by 0x400ECCF: dl_open_worker_begin (dl-open.c:735) +==423555== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) +==423555== by 0x400DF99: dl_open_worker (dl-open.c:782) +==423555== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) +==423555== by 0x400E34D: _dl_open (dl-open.c:883) +==423555== by 0x48FE6BB: dlopen_doit (dlopen.c:56) +==423555== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) +==423555== by 0x49E2CF2: _dl_catch_error (dl-error-skeleton.c:227) +==423555== by 0x48FE1AD: _dlerror_run (dlerror.c:138) +==423555== by 0x48FE747: dlopen_implementation (dlopen.c:71) +==423555== by 0x48FE747: dlopen@@GLIBC_2.34 (dlopen.c:81) +==423555== +==423555== 3,264 bytes in 12 blocks are possibly lost in loss record 9 of 9 +==423555== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) +==423555== by 0x40147D9: calloc (rtld-malloc.h:44) +==423555== by 0x40147D9: allocate_dtv (dl-tls.c:375) +==423555== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634) +==423555== by 0x4903834: allocate_stack (allocatestack.c:430) +==423555== by 0x4903834: pthread_create@@GLIBC_2.34 (pthread_create.c:647) +==423555== by 0x11778C: createThread__pureZconcurrencyZthreadpool_489 (in /home/poop/git/private/nirv/boat/tests/boat/tmain) +==423555== by 0x11CF99: atmdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot12atslibatspureatsconcurrencyatsthreadpooldotnim_Init000 (in /home/poop/git/private/nirv/boat/tests/boat/tmain) +==423555== by 0x10A540: main (in /home/poop/git/private/nirv/boat/tests/boat/tmain) +==423555== +==423555== LEAK SUMMARY: +==423555== definitely lost: 0 bytes in 1 blocks +==423555== indirectly lost: 0 bytes in 0 blocks +==423555== possibly lost: 3,264 bytes in 12 blocks +==423555== still reachable: 3,153 bytes in 8 blocks +==423555== suppressed: 0 bytes in 0 blocks +==423555== Reachable blocks (those to which a pointer was found) are not shown. +==423555== To see them, rerun with: --leak-check=full --show-leak-kinds=all +==423555== +==423555== For lists of detected and suppressed errors, rerun with: -s +==423555== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) @@ -338,60 +338,60 @@
exitcode: 1 Output: -==233194== Memcheck, a memory error detector -==233194== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. -==233194== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info -==233194== Command: tests/config/tconfig -==233194== +==423561== Memcheck, a memory error detector +==423561== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. +==423561== Using Valgrind-3.18.1 and LibVEX; rerun with -h for copyright info +==423561== Command: tests/config/tconfig +==423561== ref Exception(parent: nil, name: "OSError", msg: "No such file or directory\n Additional info: 192.168.1.1", trace: @[StackTraceEntry(procname: "raiseOSError", line: 95, filename: "oserr.nim", frameMsg: "")], up: nil) ref Exception(parent: nil, name: "OSError", msg: "No such file or directory\n Additional info: http://www.not.https", trace: @[StackTraceEntry(procname: "raiseOSError", line: 95, filename: "oserr.nim", frameMsg: "")], up: ref Exception(parent: nil, name: "OSError", msg: "No such file or directory\n Additional info: 192.168.1.1", trace: @[StackTraceEntry(procname: "raiseOSError", line: 95, filename: "oserr.nim", frameMsg: "")], up: nil)) -==233194== -==233194== HEAP SUMMARY: -==233194== in use at exit: 6,417 bytes in 21 blocks -==233194== total heap usage: 3,027 allocs, 3,006 frees, 130,129 bytes allocated -==233194== -==233194== 0 bytes in 1 blocks are definitely lost in loss record 1 of 9 -==233194== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) -==233194== by 0x4005A22: malloc (rtld-malloc.h:56) -==233194== by 0x4005A22: _dl_find_object_update (dl-find_object.c:791) -==233194== by 0x400ECCF: dl_open_worker_begin (dl-open.c:735) -==233194== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) -==233194== by 0x400DF99: dl_open_worker (dl-open.c:782) -==233194== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) -==233194== by 0x400E34D: _dl_open (dl-open.c:883) -==233194== by 0x48FE6BB: dlopen_doit (dlopen.c:56) -==233194== by 0x49E2C27: _dl_catch_exception (dl-error-skeleton.c:208) -==233194== by 0x49E2CF2: _dl_catch_error (dl-error-skeleton.c:227) -==233194== by 0x48FE1AD: _dlerror_run (dlerror.c:138) -==233194== by 0x48FE747: dlopen_implementation (dlopen.c:71) -==233194== by 0x48FE747: dlopen@@GLIBC_2.34 (dlopen.c:81) -==233194== -==233194== 3,264 bytes in 12 blocks are possibly lost in loss record 9 of 9 -==233194== at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) -==233194== by 0x40147D9: calloc (rtld-malloc.h:44) -==233194== by 0x40147D9: allocate_dtv (dl-tls.c:375) -==233194== by 0x40147D9: _dl_allocate_tls (dl-tls.c:634) -==233194== by 0x4903834: allocate_stack (allocatestack.c:430) -==233194== by 0x4903834: pthread_create@@GLIBC_2.34 (pthread_create.c:647) -==233194== by 0x119A1C: createThread__pureZconcurrencyZthreadpool_489 (in /home/poop/git/private/nirv/boat/tests/config/tconfig) -==233194== by 0x12AAC9: atmdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotdotatsdotchoosenimatstoolchainsatsnimminus1dot6dot12atslibatspureatsconcurrencyatsthreadpooldotnim_Init000 (in /home/poop/git/private/nirv/boat/tests/config/tconfig) -==233194== by 0x12BB9C: PreMain (in /home/poop/git/private/nirv/boat/tests/config/tconfig) -==233194== by 0x10A780: main (in /home/poop/git/private/nirv/boat/tests/config/tconfig) -==233194== -==233194== LEAK SUMMARY: -==233194== definitely lost: 0 bytes in 1 blocks -==233194== indirectly lost: 0 bytes in 0 blocks -==233194== possibly lost: 3,264 bytes in 12 blocks -==233194== still reachable: 3,153 bytes in 8 blocks -==233194== suppressed: 0 bytes in 0 blocks -==233194== Reachable blocks (those to which a pointer was found) are not shown. -==233194== To see them, rerun with: --leak-check=full --show-leak-kinds=all -==233194== -==233194== For lists of detected and suppressed errors, rerun with: -s -==233194== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)
Report generated by: testament
– Nim Tester
- Made with Nim. Generated on: 2023-03-15 09:20:10 UTC-07:00
+ Made with Nim. Generated on: 2023-03-15 09:57:27 UTC-07:00