Boost C++ Libraries: Ticket #815: remove_edge core dumps on self-circle https://svn.boost.org/trac10/ticket/815 <pre class="wiki"> This is uncovered while using in bioconductor's RBGL. This is tested on boost_1_33_1 with modified test codes, adjacency_list.cpp: bash-3.00$ cd download/boost_1_33_1/libs/graph/example/ bash-3.00$ diff adjacency_list.cpp bug_remove_vertex.cpp 78a79,81 &gt; // test removal of self-circle &gt; add_edge(vertex(3, g), vertex(3, g), EdgeProperties("test"), g); &gt; 88a92,94 &gt; cout &lt;&lt; endl &lt;&lt; "removing edge (3,3): " &lt;&lt; endl; &gt; remove_edge(vertex(3, g), vertex(3, g), g); &gt; bash-3.00$ g++ bug_remove_vertex.cpp -I../../../ -lm bash-3.00$ ./a.out 0 --joe--&gt; 1 1 --joe--&gt; 0 --curly--&gt; 2 --dick--&gt; 3 2 --curly--&gt; 1 --tom--&gt; 4 3 --dick--&gt; 1 --harry--&gt; 4 --LL--&gt; 3 --LL--&gt; 3 4 --tom--&gt; 2 --harry--&gt; 3 (0,1) (1,2) (1,3) (2,4) (3,4) (3,3) removing edge (3,3): *** glibc detected *** double free or corruption (out): 0x0889f288 *** Aborted (core dumped) Seems like it needs an additional test for edges like A -- A. Thanks lilong@isb-sib.ch </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/815 Trac 1.4.3 Jeremiah Willcock Wed, 13 May 2009 23:11:15 GMT status, resolution changed; severity set https://svn.boost.org/trac10/ticket/815#comment:1 https://svn.boost.org/trac10/ticket/815#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">worksforme</span> </li> <li><strong>severity</strong> → <span class="trac-field-new">Showstopper</span> </li> </ul> <p> I had no problems, even running under valgrind or glibc++'s debug mode. </p> Ticket