Boost logo

Boost Users :

From: Julie Larson (julie.larson_at_[hidden])
Date: 2008-05-14 01:12:04


Oh phooey, I wonder if this is a 64 bit issue. I should have
mentioned that. I'm compiling for 64 bit address space, pointer
sizes, etc., I think it actually might have something to do with that.

Watching it in the debugger it gets into hashtable_node.hpp
(boost::intrusive::detail::bucket_impl<Slist> during the iterator
increment and comes back with a crazy number from this operation in
(get_bucket_num):

      //Now just calculate the index b has in the bucket array
      return &b - &first_bucket;

it is subtracting two addresses to arrive at the next bucket number
and I think this is probably where my problem lies.

Thank you
-Julie

On Tue, May 13, 2008 at 9:39 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> Julie Larson wrote:
> > Thanks for the quick response Steven, However I think if you look at
> > it you'll see that the destructor hasn't been called yet when the
> > crash happens. The error happens during the iteration in main when
> > trying to print out the contents of the word class. The destructor
> > for the CWordHash class won't be called until after that when main
> > exits.
> >
>
> Using the trunk, it crashes in the destructor when the assertion on
> utilities.hpp line 394
>
> { (void)hook;
> BOOST_INTRUSIVE_SAFE_HOOK_DESTRUCTOR_ASSERT(!hook.is_linked()); }
>
> I don't happen to have 1.35 available, though.
>
>
> In Christ,
> Steven Watanabe
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net