<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi mmap maintainers,<div class=""><br class=""></div><div class="">Today I found the last test case out of 25 failed like:</div><div class=""><br class=""></div><div class="">```bash</div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">$ cabal v2-run -f mmaptest mmaptest</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Resolving dependencies...</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Build profile: -w ghc-8.6.5 -O1</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">In order, the following will be built (use -v for more details):</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> - mmap-0.5.9 (exe:mmaptest) (configuration changed)</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Configuring mmap-0.5.9...</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Preprocessing executable 'mmaptest' for mmap-0.5.9..</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Building executable 'mmaptest' for mmap-0.5.9..</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(251, 34, 255); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #98f4f5" class=""><b class=""><no location info>: </b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">warning:</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #98f4f5" class=""><b class=""> [</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-Wmissing-home-modules</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #98f4f5" class=""><b class="">]</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(152, 244, 245); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">    These modules are needed for compilation but not listed in your .cabal file's other-modules: </b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(152, 244, 245); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">        System.IO.MMap</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24); min-height: 13px;" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""></span><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(251, 34, 255); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #98f4f5" class=""><b class=""><no location info>: </b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">warning:</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #98f4f5" class=""><b class=""> [</b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">-Wmissing-home-modules</b></span><span style="font-variant-ligatures: no-common-ligatures; color: #98f4f5" class=""><b class="">]</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(152, 244, 245); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">    These modules are needed for compilation but not listed in your .cabal file's other-modules: </b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(152, 244, 245); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">        System.IO.MMap</b></span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">### Failure in: 24:Counters should be zero  </span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">tests/mmaptest.hs:256</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">expected: 0</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""> but got: 4</span></div><div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(116, 229, 202); background-color: rgb(22, 27, 24);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Cases: 25  Tried: 25  Errors: 0  Failures: 1</span></div></div><div class="">```</div><div class=""><br class=""></div><div class="">And the test code is:</div><div class=""><br class=""></div><div class="">```haskell</div><div class=""><div style="color: rgb(212, 212, 212); background-color: rgb(30, 30, 30); font-family: Menlo, Monaco, "Courier New", monospace; line-height: 18px; white-space: pre;" class=""><div class="">test_counters_zero = <span style="color: #c586c0;" class="">do</span></div><div class="">    System.Mem.performGC</div><div class="">    threadDelay <span style="color: #b5cea8;" class="">1000</span></div><div class="">    counters <- c_system_io_counters</div><div class="">    return (counters @?= <span style="color: #b5cea8;" class="">0</span>)</div></div></div><div class="">```</div><div class=""><br class=""></div><div class="">I see it is to make sure no resource held open after 1 millisecond after garbage collection is triggered. </div><div class="">I tried extending the threadDelay to 10 second and still got 4 thus failing the test, maybe newer machinery of GC with GHC 8.6 should be leveraged to prevent such leakage?</div><div class=""><br class=""></div><div class="">I CC haskell-cafe list to seek for broader community help, maybe some one can confirm that I can just live with this specific failure without worries?</div><div class=""><br class=""></div><div class="">Thanks & best regards,</div><div class="">Compl</div><div class=""><br class=""></div></body></html>