[bind10-dev] Bugs identified by STL debug mode (Re: Windows support)

Stephen Morris stephen at isc.org
Mon Apr 11 16:34:58 UTC 2011


On 11/04/2011 17:20, Michal 'vorner' Vaner wrote:
>> I think so.  If debug mode is reporting problems that are not picked up
>> with our normal build settings, then we should build twice, once with
>> debug mode enabled and once with our normal settings.
> 
> I don't see why to build it twice. AFAIK the only drawback of using the debug
> mode is it's a lot slower, so we might just have the one with debug.

Debug mode appears to give more checking which is why I supported
Jeremy's suggestion that we build in this mode.

However, I think that we still need to check that the code works given
the normal build settings as that is the version of the program that
will actually be run. It is entirely possible (although, admittedly,
unlikely) that the debug version of STL conceals a problem that would
otherwise manifest itself, e.g. the additional checks hide a race
condition or the changed memory layout conceals a memory overwrite.

Stephen



More information about the bind10-dev mailing list