Opened 13 years ago
Closed 13 years ago
#3493 closed Bugs (duplicate)
Boost::Test enters endless loop when running in vserver environment
Reported by: | 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 running Debian Lenny guest and Centos 5 guest.
Note:
See TracTickets
for help on using tickets.
note to self: don't tamper with browser history... duplicate of 3495