Boost C++ Libraries: Ticket #13459: boost/regex/v4/perl_matcher_non_recursive.hpp infinite loop bug https://svn.boost.org/trac10/ticket/13459 <h2 class="section" id="description">description</h2> <p> {{{ do </p> <blockquote> <p> { </p> <blockquote> <p> --position; --count; ++state_count; </p> </blockquote> <p> }while(count &amp;&amp; !can_start(*position, rep-&gt;_map, mask_skip)); </p> </blockquote> <p> }}}<br /> It performs a continuous loop at this point. <br /> </p> <h2 class="section" id="StepstoReproduce">Steps to Reproduce</h2> <p> {{{<a class="missing ticket">#0</a> boost::re_detail_106600::perl_matcher&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;char const*, std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt;::unwind_greedy_single_repeat (this=0x7fffffffc600, r=0x0) </span></p> <blockquote> <p> at ./boost_1_66_0/boost/regex/v4/perl_matcher_non_recursive.hpp:1411 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1" title="#1: Bugs: boost.build causes ftjam to segfault (closed: Wont Fix)">#1</a> 0x00000000006a2ec3 in boost::re_detail_106600::perl_matcher&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;char const*, std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt;::unwind (this=0x7fffffffc600, have_match=0x0) </span></p> <blockquote> <p> at ./boost_1_66_0/boost/regex/v4/perl_matcher_non_recursive.hpp:1266 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2" title="#2: Bugs: list::size should be const (closed: fixed)">#2</a> 0x00000000006a92c3 in boost::re_detail_106600::perl_matcher&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;char const*, std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt;::match_all_states (this=0x7fffffffc600) </span></p> <blockquote> <p> at ./boost_1_66_0/boost/regex/v4/perl_matcher_non_recursive.hpp:214 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3" title="#3: Bugs: automatic conversion and overload proble (closed: fixed)">#3</a> 0x00000000006a25d9 in boost::re_detail_106600::perl_matcher&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;char const*, std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt;::match_prefix (this=0x7fffffffc600) </span></p> <blockquote> <p> at ./boost_1_66_0/boost/regex/v4/perl_matcher_common.hpp:336 </p> </blockquote> <p> <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/4" title="#4: Bugs: any_ptr in any library documentation? (closed: Fixed)">#4</a> 0x00000000005ed580 in boost::re_detail_106600::perl_matcher&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;char const*, std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt;::match_imp (this=0x7fffffffc600) at ./boost_1_66_0/boost/regex/v4/perl_matcher_common.hpp:220 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/5" title="#5: Bugs: shared_ptr and self-owning objects (closed: Fixed)">#5</a> 0x00000000005ecb5f in boost::re_detail_106600::perl_matcher&lt;</span>gnu_cxx::<span class="underline">normal_iterator&lt;char const*, std::</span>cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt;::match (this=0x7fffffffc600) at ./boost_1_66_0/boost/regex/v4/perl_matcher_common.hpp:193 <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6" title="#6: Bugs: tie in utility.hpp and tuple.hpp clash. (closed: Duplicate)">#6</a> 0x00000000004f353f in boost::regex_match&lt;<span class="underline">gnu_cxx::</span>normal_iterator&lt;char const*, std::<span class="underline">cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, char, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt; (first=0x0, last=0x0, m=..., e=..., flags=boost::regex_constants::match_partial) </span></p> <blockquote> <p> at ./boost_1_66_0/boost/regex/v4/regex_match.hpp:50 </p> </blockquote> <p> Python Exception &lt;class 'gdb.error'&gt; There is no member named _M_dataplus.: <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/7" title="#7: Bugs: g++ 2.96 requires NO_STRINGSTREAM (closed: Fixed)">#7</a> 0x00000000004f20f4 in boost::regex_match&lt;std::char_traits&lt;char&gt;, std::allocator&lt;char&gt;, std::allocator&lt;boost::sub_match&lt;__gnu_cxx::__normal_iterator&lt;char const*, std::__cxx11::basic_string&lt;char, std::char_traits&lt;char&gt;, std::allocator&lt;char&gt; &gt; &gt; &gt; &gt;, char, boost::regex_traits&lt;char, boost::cpp_regex_traits&lt;char&gt; &gt; &gt; (s=, m=..., e=..., flags=boost::regex_constants::match_partial) at ./boost_1_66_0/boost/regex/v4/regex_match.hpp:82 }}} </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/13459 Trac 1.4.3 komad <tlagyqls7@…> Wed, 28 Feb 2018 15:12:48 GMT attachment set https://svn.boost.org/trac10/ticket/13459 https://svn.boost.org/trac10/ticket/13459 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">slow-unit-8525c6224ae275d189a23b3c836f6d6a774fa5ed</span> </li> </ul> Ticket