Boost C++ Libraries: Ticket #13025: Segmentation fault in difference(multipoint, multilinestring) https://svn.boost.org/trac10/ticket/13025 <p> The following piece of code throws a segmentation fault. Produced on Ubuntu 14.04.3 with gcc 4.8.4 </p> <pre class="wiki">#include &lt;boost/geometry.hpp&gt; #include &lt;boost/geometry/geometries/point_xy.hpp&gt; namespace bg = boost::geometry; int main() { typedef bg::model::d2::point_xy&lt;double&gt; point; bg::model::multi_linestring&lt;bg::model::linestring&lt;point&gt; &gt; mls2; bg::read_wkt("MULTILINESTRING((0 1, 0 3))", mls2); bg::model::multi_point&lt;point&gt; mpt2; bg::read_wkt("MULTIPOINT(0 4)", mpt2); bg::difference(mpt2, mls2, mpt2); return 0; } </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13025 Trac 1.4.3 Vissarion Fisikopoulos <fisikop@…> Tue, 16 May 2017 09:37:09 GMT component changed; owner set https://svn.boost.org/trac10/ticket/13025#comment:1 https://svn.boost.org/trac10/ticket/13025#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Barend Gehrels</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">geometry</span> </li> </ul> Ticket awulkiew Sun, 02 Jul 2017 18:06:15 GMT <link>https://svn.boost.org/trac10/ticket/13025#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/13025#comment:2</guid> <description> <p> May it be caused by the fact that the output geometry which is modified inside the function is the same object as one of the input geometries? </p> </description> <category>Ticket</category> </item> </channel> </rss>