Opened 13 years ago

Closed 13 years ago

#3494 closed Bugs (duplicate)

Boost::Test enters endless loop when running in vserver environment

Reported by: Eduard Hein <eduard_hein@…> Owned by: Gennadiy Rozental
Milestone: Boost 1.41.0 Component: test
Version: Boost 1.40.0 Severity: Problem
Keywords: Cc:

Description

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) running Debian Lenny guest and Centos 5 guest.

Change History (1)

comment:1 by Eduard Hein <eduard_hein@…>, 13 years ago

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.