[Boost-bugs] [Boost C++ Libraries] #3495: Boost::Test enters endless loop when running in vserver environment

Subject: [Boost-bugs] [Boost C++ Libraries] #3495: Boost::Test enters endless loop when running in vserver environment
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-29 07:11:54


#3495: Boost::Test enters endless loop when running in vserver environment
--------------------------------------------------+-------------------------
 Reporter: Eduard Hein <eduard_hein@…> | Owner: rogeeff
     Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: test
  Version: Boost 1.40.0 | Severity: Problem
 Keywords: |
--------------------------------------------------+-------------------------
 Boost::Test tries to find out if a debugger is attached by iterating
 through the process tree until ppid 0 is reached. Some vserver kernel
 emulate the init process in a way that ppid of process 1 is 1. This lets
 the debugger search function go into an endless loop.

 Since pid 1 is unlikely to be a debugger, we can safely ignore
 pid 1 and just quit searching when we reach pid 1 instead of 0. The
 attached patch implements this.

 We observed this bug with standard Debian Lenny vserver host (linux-
 image-2.6.26-2-vserver-amd64, version 2.6.26-19) running Debian Lenny
 guest and Centos 5 guest.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/3495>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC