<div dir="ltr"><div dir="ltr">On Mon, Sep 14, 2020 at 7:25 AM Daniel Kozak <<a href="mailto:kozzi11@gmail.com">kozzi11@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div>Does not work, first I have to change  </div><div><br></div><div>auto map = khash!(keytype, valuetype);<br></div><div><br></div><div>to </div><div><br></div><div>auto map = khash!(keytype, valuetype)();<br></div><div><br></div><div>Because I get (source/app.d(20,11): Error: type khash!(uint, double, true, true) has no value)</div><div><br></div><div>And after that it takes 262ms but end up with SIGSEGV.</div><div>But it print right sum, so I guess it is something with freeing when try to dealocate hashmap</div></div></div></blockquote><div><br></div><div>But this line will fix that for me:</div><div><br></div><div>extern(C) __gshared string[] rt_options = [ "gcopt=parallel:0 cleanup:none" ];</div><div><br></div><div>So it is something with GC trying to free already freed memory I geuss </div></div></div>