<p>Intel tools finds nothing particular (few memory leaks in middle-ram, new ... as a parameters). <br>
The program does not crash or show critical error while running with analysis tools (it is slowing the threads down very much), so there are no new ideas... </p>

<p>The only find: the errors does not appear if I do not call get_wkt_split or if I insert <code>return nullptr</code> before </p>

<div class="highlight highlight-source-c++"><pre>wkts-><span class="pl-en">back</span>().geom = writer.write(geom.get());</pre></div>

<p>and after get_wkt_split call. But the errors resume (with some pif I move <code>return nullptr</code> after that line. It usually happens in geom.isValid() call  or inside writer.write.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/osm2pgsql/pull/498#issuecomment-155414437">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7uGswm7MkSaNx1y-lNy0WMHx1pUaks5pEeMYgaJpZM4GeIs1.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/openstreetmap/osm2pgsql/pull/498#issuecomment-155414437"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>