Ticket #10432: valgrind.log

File valgrind.log, 18.8 KB (added by Andrey Semashev, 8 years ago)

Valgrind output

Line 
1==12425== Memcheck, a memory error detector
2==12425== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
3==12425== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
4==12425== Command: ./offset_ptr_test
5==12425== Parent PID: 25536
6==12425==
7==12425== Invalid read of size 4
8==12425== at 0x403C1A: boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul>::get() const (offset_ptr.hpp:346)
9==12425== by 0x4038D5: boost::intrusive::pointer_plus_bits<boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul>, 1ul>::set_pointer(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul>&, boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (offset_ptr.hpp:702)
10==12425== by 0x40327C: boost::intrusive::compact_rbtree_node_traits_impl<boost::interprocess::offset_ptr<void, long, int, 0ul> >::set_parent(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&, boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (rbtree_node.hpp:138)
11==12425== by 0x403215: boost::intrusive::bstree_algorithms<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> >::init_header(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (bstree_algorithms.hpp:619)
12==12425== by 0x404ECB: boost::intrusive::rbtree_algorithms<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> >::init_header(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (rbtree_algorithms.hpp:225)
13==12425== by 0x4046B4: boost::intrusive::bstbase3<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase3(boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:103)
14==12425== by 0x40418F: boost::intrusive::bstbase2<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase2(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:227)
15==12425== by 0x403D8E: boost::intrusive::bstbase_hack<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, true, unsigned long, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase_hack(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:466)
16==12425== by 0x4039B6: boost::intrusive::bstbase<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, true, unsigned long, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:524)
17==12425== by 0x403354: boost::intrusive::bstree_impl<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, unsigned long, true, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstree_impl(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:630)
18==12425== by 0x402C32: boost::intrusive::multiset_impl<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, unsigned long, true, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::multiset_impl(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (set.hpp:555)
19==12425== by 0x402917: boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::header_t::header_t() (rbtree_best_fit.hpp:147)
20==12425== Address 0x1004025018 is not stack'd, malloc'd or (recently) free'd
21==12425==
22==12425==
23==12425== Process terminating with default action of signal 11 (SIGSEGV)
24==12425== Access not within mapped region at address 0x1004025018
25==12425== at 0x403C1A: boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul>::get() const (offset_ptr.hpp:346)
26==12425== by 0x4038D5: boost::intrusive::pointer_plus_bits<boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul>, 1ul>::set_pointer(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul>&, boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (offset_ptr.hpp:702)
27==12425== by 0x40327C: boost::intrusive::compact_rbtree_node_traits_impl<boost::interprocess::offset_ptr<void, long, int, 0ul> >::set_parent(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&, boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (rbtree_node.hpp:138)
28==12425== by 0x403215: boost::intrusive::bstree_algorithms<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> >::init_header(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (bstree_algorithms.hpp:619)
29==12425== by 0x404ECB: boost::intrusive::rbtree_algorithms<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> >::init_header(boost::interprocess::offset_ptr<boost::intrusive::compact_rbtree_node<boost::interprocess::offset_ptr<void, long, int, 0ul> >, long, int, 0ul> const&) (rbtree_algorithms.hpp:225)
30==12425== by 0x4046B4: boost::intrusive::bstbase3<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase3(boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:103)
31==12425== by 0x40418F: boost::intrusive::bstbase2<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase2(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:227)
32==12425== by 0x403D8E: boost::intrusive::bstbase_hack<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, true, unsigned long, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase_hack(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:466)
33==12425== by 0x4039B6: boost::intrusive::bstbase<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, true, unsigned long, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstbase(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:524)
34==12425== by 0x403354: boost::intrusive::bstree_impl<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, unsigned long, true, (boost::intrusive::algo_types)4, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::bstree_impl(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (bstree.hpp:630)
35==12425== by 0x402C32: boost::intrusive::multiset_impl<boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u>, void, unsigned long, true, boost::intrusive::detail::default_header_holder<boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true> > >::multiset_impl(std::less<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl> const&, boost::intrusive::bhtraits<boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::block_ctrl, boost::intrusive::rbtree_node_traits<boost::interprocess::offset_ptr<void, long, int, 0ul>, true>, (boost::intrusive::link_mode_type)0, boost::intrusive::default_tag, 3u> const&) (set.hpp:555)
36==12425== by 0x402917: boost::interprocess::rbtree_best_fit<boost::interprocess::null_mutex_family, boost::interprocess::offset_ptr<void, long, int, 0ul>, 0ul>::header_t::header_t() (rbtree_best_fit.hpp:147)
37==12425== If you believe this happened as a result of a stack
38==12425== overflow in your program's main thread (unlikely but
39==12425== possible), you can try to increase the size of the
40==12425== main thread stack using the --main-stacksize= flag.
41==12425== The main thread stack size used in this run was 8388608.
42==12425==
43==12425== HEAP SUMMARY:
44==12425== in use at exit: 36 bytes in 1 blocks
45==12425== total heap usage: 3 allocs, 2 frees, 8,796 bytes allocated
46==12425==
47==12425== LEAK SUMMARY:
48==12425== definitely lost: 0 bytes in 0 blocks
49==12425== indirectly lost: 0 bytes in 0 blocks
50==12425== possibly lost: 36 bytes in 1 blocks
51==12425== still reachable: 0 bytes in 0 blocks
52==12425== suppressed: 0 bytes in 0 blocks
53==12425== Rerun with --leak-check=full to see details of leaked memory
54==12425==
55==12425== For counts of detected and suppressed errors, rerun with: -v
56==12425== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)