Boost logo

Boost :

Subject: Re: [boost] Gauging interest in patch submissions
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2011-09-28 18:56:55

On Wed, Sep 28, 2011 at 3:19 PM, Brett Lentz <blentz_at_[hidden]> wrote:
> On 09/28/2011 04:49 PM, GMan wrote:
>>> On Wed, Sep 28, 2011 at 8:48 AM, Brett Lentz <blentz_at_[hidden]> wrote:
>>>> 2. Adding backtrace and system_error_code support.
>>>> This adds additional exception information to boost::thread_exception,
>>>> boost::thread_resource_error, and boost::thread_interrupted that allows
>>>> Passenger to dump a full backtrace all the way up its stack.
>> [...snipped...]
>> Perhaps we'd like to make it opt-in, like BOOST_THROW_EXCEPTION_TRACED or
>> something.
> That's exactly the case with this set of patches. There's a set of
> TRACE_POINT macros that are required for users to toggle areas where
> they want to see the backtraces and also an DISABLE_BACKTRACES macro to
> turn this feature on/off globally.

Can't this be done non-intrusively, in a platform-specific matter? I
know it's difficult and tricky, but stack traces can often be helpful
in tracking errors. Having the user register trace points explicitly
makes the system not as helpful. :(

Emil Dotchevski
Reverge Studios, Inc.

Boost list run by bdawes at, gregod at, cpdaniel at, john at