<p>It fails if I run with 4 threads only</p>
<pre><code>osm2pgsql.exe RU-TY.osm.bz2 --number-processes 4
</code></pre>
<p>(1 or 2 processes => no errors).<br>
And, as classical threading error, it differs for each run:<br>
Run 1:<br>
<a href="https://cloud.githubusercontent.com/assets/4124648/11021872/523443f2-8671-11e5-8e71-fad6b3fc94cc.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4124648/11021872/523443f2-8671-11e5-8e71-fad6b3fc94cc.png" alt="image" style="max-width:100%;"></a><br>
Run 2:<br>
<a href="https://cloud.githubusercontent.com/assets/4124648/11021865/158e8188-8671-11e5-8616-5bb101fa92ec.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4124648/11021865/158e8188-8671-11e5-8616-5bb101fa92ec.png" alt="image" style="max-width:100%;"></a><br>
Run 3:<br>
<a href="https://cloud.githubusercontent.com/assets/4124648/11021883/90313520-8671-11e5-8806-2b9500691602.png" target="_blank"><img src="https://cloud.githubusercontent.com/assets/4124648/11021883/90313520-8671-11e5-8806-2b9500691602.png" alt="image" style="max-width:100%;"></a><br>
The last was "vector iterator not dereferencable" exception in finding tag:<br>
big screenshot is here <a href="https://db.tt/O5DcclDt">https://db.tt/O5DcclDt</a> .</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-154856476">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AD2-7g5Q6dzfCxZCRxKpUnWIQAi2Pb8hks5pD480gaJpZM4GeIs1.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-154856476"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>