Re: [Cppcms-users] valgrind and cppcms
Brought to you by:
artyom-beilis
|
From: Joerg S. <jo...@br...> - 2014-04-16 13:34:46
|
On Wed, Apr 16, 2014 at 03:34:17AM -0700, Artyom Beilis wrote:
> AFAIR when I tested it I found that it was false positive alarm.
Looking at it in more details, I see the issue. Run with
--malloc-fill=0x77. Trying to dereference end in
booster::aio::io_service::set_timer_event now shows after the necessary
cast:
(gdb) print ((std::_Rb_tree_iterator<std::pair<booster::ptime const,
booster::aio::event_loop_impl::timer_event> > *)0x9fa1290)[0]
$14 = {_M_node = 0x7777777700000000}
This looks completely valid, especially since the modifications to
timer_events_ itself will invalidate the iterator...
Joerg
|