Boost C++ Libraries: Ticket #2019: Intrusive lists seem to return invalid references with member hooks in 64 bit mode on calling front/back https://svn.boost.org/trac10/ticket/2019 <p> In our application we use intrusive lists with classes that contain multiple member hooks for insertion in variuos lists. The member_hooks are defined without any template options as are the boost::intrusive lists that are used. </p> <p> Our code however, which runs great on 32 bit machines crashes on 64 bit windows vista (compiled by MSVC 2005) when calling front () or back () on an intrusive list. The problem seems to be caused by ... </p> <p> inline std::size_t offset_from_pointer_to_member(const Member Parent::* ptr_to_member) </p> <p> ... in parent_from_member.hpp, where the parameter ptr_to_member is unitialized in the upper 32bit fields. There is a static assertion at the top of the function (BOOST_STATIC_ASSERT(( sizeof(std::ptrdiff_t) == sizeof(ptr_to_member) ));) wich is disabled but throws an error in 64 bit if enabled. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/2019 Trac 1.4.3 Nico Becherer <n.becherer@…> Wed, 18 Jun 2008 15:58:23 GMT <link>https://svn.boost.org/trac10/ticket/2019#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/2019#comment:1</guid> <description> <p> Add: The code runs fine under 64 bit, when instead of the BOOST_MSVC implementation of offset_from_pointer_to_member, the <span class="underline">GNUC</span> implementation (2nd definen branch) is used. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ion Gaztañaga</dc:creator> <pubDate>Thu, 19 Jun 2008 14:58:54 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/2019#comment:2 https://svn.boost.org/trac10/ticket/2019#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> Fixed in trunk SVN, revision 46514. </p> Ticket Mon, 03 Nov 2008 14:20:34 GMT milestone deleted https://svn.boost.org/trac10/ticket/2019#comment:3 https://svn.boost.org/trac10/ticket/2019#comment:3 <ul> <li><strong>milestone</strong> <span class="trac-field-deleted">Boost 1.35.1</span> </li> </ul> <p> Milestone Boost 1.35.1 deleted </p> Ticket