Boost C++ Libraries: Ticket #3481: Boost Testing doesn't work under Sun Solaris Containers https://svn.boost.org/trac10/ticket/3481 <p> In the function under_debugger() (debug.ipp) the terminating condition for the while loop is pid != 0, which is for a normal solaris installation correct. </p> <p> But under a container the init-pid is zsched, which doesn't have the pid==1 and the ppid==0. So you have to test for ppid == pid. </p> <p> The following patch should fix the problem. </p> <p> $ diff -Nru boost/test/impl/debug.ipp.orig boost/test/impl/debug.ipp --- boost/test/impl/debug.ipp.orig 2009-09-21 15:36:06.442325869 +0200 +++ boost/test/impl/debug.ipp 2009-09-21 15:36:39.606341269 +0200 @@ -653,7 +653,7 @@ </p> <blockquote> <p> if( dbg_list.find( pi.binary_name() ) != const_string::npos ) </p> <blockquote> <p> return true; </p> </blockquote> </blockquote> <ul><li> pid = pi.parent_pid(); </li></ul><p> + pid = (pi.parent_pid() == pid ? 0 : pi.parent_pid()); </p> <blockquote> <p> } </p> </blockquote> <p> </p> <blockquote> <p> return false; </p> </blockquote> <p> Regards Ranko </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3481 Trac 1.4.3 Gennadiy Rozental Sun, 22 Nov 2009 21:57:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3481#comment:1 https://svn.boost.org/trac10/ticket/3481#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</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/57850" title="Handles the case where parent pid == process pid and != 0. Fixes ...">[57850]</a>) Handles the case where parent pid == process pid and != 0. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3495" title="#3495: Bugs: Boost::Test enters endless loop when running in vserver environment (closed: fixed)">#3495</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3481" title="#3481: Bugs: Boost Testing doesn't work under Sun Solaris Containers (closed: fixed)">#3481</a>. Fixes <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/3592" title="#3592: Bugs: under_debugger() goes into infinite loop (closed: fixed)">#3592</a> </p> Ticket Raffi Enficiaud Tue, 07 Jul 2015 08:05:56 GMT milestone changed https://svn.boost.org/trac10/ticket/3481#comment:2 https://svn.boost.org/trac10/ticket/3481#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">Boost 1.41.0</span> → <span class="trac-field-new">Boost 1.59.0</span> </li> </ul> Ticket