Subject: [Boost-bugs] [Boost C++ Libraries] #1917: Boost.Signals crashes on MSVC9.0 with _HAS_ITERATOR_DEBUGGING=0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-05-14 13:21:26
#1917: Boost.Signals crashes on MSVC9.0 with _HAS_ITERATOR_DEBUGGING=0
-----------------------------------------------------------+----------------
Reporter: ntr_at_[hidden] | Owner: dgregor
Type: Bugs | Status: new
Milestone: Boost 1.35.1 | Component: signals
Version: Boost 1.35.0 | Severity: Problem
Keywords: Boost.Signals MSVC9.0 _HAS_ITERATOR_DEBUGGING |
-----------------------------------------------------------+----------------
The following code in a {{{main(...)}}} or {{{InitInstance(..)}}} of a
MFC/ATL project with static linkage - thus linking to e.g.
{{{boost/boost_1_35_0/lib/libboost_signals-vc90-mt-sgd-1_35.lib}}} -
causes a crash due to what appears to be uninitialized memory within a
{{{shared_ptr}}} within {{{named_slot_map}}}.
{{{
typedef boost::signal0<void> Signal;
Signal signal;
}}}
The bug only appears if the preprocessor definition in question is set
i.e. _HAS_ITERATOR_DEBUGGING=0.
Compiler settings (debug):
{{{
/Od /I "boost_1_35_0/include/" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D
"_HAS_ITERATOR_DEBUGGING=0" /D "_ATL_STATIC_REGISTRY" /D "_UNICODE" /D
"UNICODE" /Gm /EHsc /RTC1 /MTd /Yu"stdafx.h" /Fp"Debug\Console.pch"
/Fo"Debug\\" /Fd"Debug\vc90.pdb" /W3 /nologo /c /ZI /TP
/errorReport:prompt
}}}
Linker settings (debug):
{{{
/VERBOSE:LIB /OUT:"Console.exe" /INCREMENTAL /NOLOGO
/LIBPATH:"boost_1_35_0/lib/" /MANIFEST
/MANIFESTFILE:"Console.exe.intermediate.manifest"
/MANIFESTUAC:"level='asInvoker' uiAccess='false'" /DELAYLOAD:"OleAcc.dll"
/DEBUG /PDB:"Console\Debug\Console.pdb" /SUBSYSTEM:CONSOLE /DYNAMICBASE
/NXCOMPAT /MACHINE:X86 /ERRORREPORT:PROMPT DelayImp.lib
}}}
Visual Studio 2008 Info:
Microsoft Visual Studio 2008 (with C++ Feature Pack)
Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1917>
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:49:57 UTC