Boost C++ Libraries: Ticket #7471: crash in unordered_multimap::erase(iterator, iterator) function https://svn.boost.org/trac10/ticket/7471 <p> The above function seems to corrupt the unordered_multimap data structure and eventually crashes the program. </p> <p> See the attached simple program to show the problem. Run with "unordered_map 1000", I got segfault when running it. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7471 Trac 1.4.3 Steven Li <steven.li@…> Fri, 05 Oct 2012 00:01:06 GMT attachment set https://svn.boost.org/trac10/ticket/7471 https://svn.boost.org/trac10/ticket/7471 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">unordered_bug.cxx</span> </li> </ul> <p> small C++ program to show the crash. </p> Ticket kdk <kdkomsdev@…> Sat, 06 Oct 2012 15:45:37 GMT <link>https://svn.boost.org/trac10/ticket/7471#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7471#comment:1</guid> <description> <p> Hi, </p> <p> I tried executing the attached program in my system cygwin(win32/g++ (GCC) 4.5.3/boost 1.51.0) with the input as 1000 but the program did not give any segmentation fault. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Sat, 06 Oct 2012 15:52:25 GMT</pubDate> <title>owner, component changed https://svn.boost.org/trac10/ticket/7471#comment:2 https://svn.boost.org/trac10/ticket/7471#comment:2 <ul> <li><strong>owner</strong> changed from <span class="trac-author">John Maddock</span> to <span class="trac-author">Daniel James</span> </li> <li><strong>component</strong> <span class="trac-field-old">TR1</span> → <span class="trac-field-new">unordered</span> </li> </ul> Ticket soren.soe@… Sat, 06 Oct 2012 20:30:30 GMT <link>https://svn.boost.org/trac10/ticket/7471#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7471#comment:3</guid> <description> <p> Hi, </p> <p> I have tried this program on my Linux *64* bit platform (-m64) using gcc 4.1.2 and gcc 4.6.2 and it fails for me with both compilers. It does *not* fail when I compile on a 32 bit platform or with -m32. Hope this helps. </p> <p> Thanks, Soren Soe </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sat, 06 Oct 2012 20:36:53 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/7471#comment:4 https://svn.boost.org/trac10/ticket/7471#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I've attached a patch against trunk, will commit a fix with tests soon-ish. </p> Ticket Daniel James Sun, 07 Oct 2012 08:19:08 GMT <link>https://svn.boost.org/trac10/ticket/7471#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7471#comment:5</guid> <description> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80894" title="Unordered: Fix bug when erasing a range, refs #7471.">[80894]</a>) Unordered: Fix bug when erasing a range, refs <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7471" title="#7471: Bugs: crash in unordered_multimap::erase(iterator, iterator) function (closed: fixed)">#7471</a>. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Sun, 07 Oct 2012 08:24:35 GMT</pubDate> <title>attachment set https://svn.boost.org/trac10/ticket/7471 https://svn.boost.org/trac10/ticket/7471 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">erase.patch</span> </li> </ul> <p> Updated trunk patch </p> Ticket Daniel James Sun, 07 Oct 2012 08:34:32 GMT attachment set https://svn.boost.org/trac10/ticket/7471 https://svn.boost.org/trac10/ticket/7471 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">erase-1.51.patch</span> </li> </ul> <p> Updated patch for 1.51 </p> Ticket Steven Li <steven.li@…> Wed, 10 Oct 2012 18:53:57 GMT <link>https://svn.boost.org/trac10/ticket/7471#comment:6 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7471#comment:6</guid> <description> <p> I tried out the patch and it works. Thanks for quick fix! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Thu, 11 Oct 2012 17:29:22 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/7471#comment:7 https://svn.boost.org/trac10/ticket/7471#comment:7 <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-new">fixed</span> </li> </ul> <p> (In <a class="changeset" href="https://svn.boost.org/trac10/changeset/80958" title="Unordered: Fix erasing ranges, and some tests. Fixes #7471 ">[80958]</a>) Unordered: Fix erasing ranges, and some tests. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7471" title="#7471: Bugs: crash in unordered_multimap::erase(iterator, iterator) function (closed: fixed)">#7471</a> </p> Ticket