Skip to content

Instantly share code, notes, and snippets.

@kenkangxgwe
Created October 18, 2018 08:49
Show Gist options
  • Save kenkangxgwe/af4ccb3cec3ae446dc5d69df2184caba to your computer and use it in GitHub Desktop.
Save kenkangxgwe/af4ccb3cec3ae446dc5d69df2184caba to your computer and use it in GitHub Desktop.
==19487== Memcheck, a memory error detector
==19487== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==19487== Using Valgrind-3.14.0.GIT and LibVEX; rerun with -h for copyright info
==19487== Command: ./test_sub
==19487==
==19487== Invalid read of size 8
==19487== at 0x10D75E: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::global_to_local(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DB13: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DBDF: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10B80E: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > >(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A7DD: main (in /home/kenkangxgwe/graph/test_sub)
==19487== Address 0x4d81b50 is 0 bytes after a block of size 240 alloc'd
==19487== at 0x4837DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==19487== by 0x10B089: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >& boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::create_subgraph<boost::range_detail::integer_iterator<unsigned long> >(boost::range_detail::integer_iterator<unsigned long>, boost::range_detail::integer_iterator<unsigned long>) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A718: main (in /home/kenkangxgwe/graph/test_sub)
==19487==
==19487== Invalid read of size 8
==19487== at 0x10D761: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::global_to_local(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DB13: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DBDF: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10B80E: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > >(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A7DD: main (in /home/kenkangxgwe/graph/test_sub)
==19487== Address 0x4d81b58 is 8 bytes after a block of size 240 alloc'd
==19487== at 0x4837DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==19487== by 0x10B089: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >& boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::create_subgraph<boost::range_detail::integer_iterator<unsigned long> >(boost::range_detail::integer_iterator<unsigned long>, boost::range_detail::integer_iterator<unsigned long>) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A718: main (in /home/kenkangxgwe/graph/test_sub)
==19487==
==19487== Invalid read of size 8
==19487== at 0x10D76C: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::global_to_local(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DB13: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DBDF: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10B80E: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > >(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A7DD: main (in /home/kenkangxgwe/graph/test_sub)
==19487== Address 0x4d81b60 is 16 bytes after a block of size 240 alloc'd
==19487== at 0x4837DEF: operator new(unsigned long) (vg_replace_malloc.c:334)
==19487== by 0x10B089: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >& boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::create_subgraph<boost::range_detail::integer_iterator<unsigned long> >(boost::range_detail::integer_iterator<unsigned long>, boost::range_detail::integer_iterator<unsigned long>) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A718: main (in /home/kenkangxgwe/graph/test_sub)
==19487==
==19487== Invalid read of size 8
==19487== at 0x11032F: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::local_to_global(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x110567: boost::graph::detail::bundled_result<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS>, boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long> >::type const& boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::operator[]<boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long> >(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DB33: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DBDF: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10B80E: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > >(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A7DD: main (in /home/kenkangxgwe/graph/test_sub)
==19487== Address 0x0 is not stack'd, malloc'd or (recently) free'd
==19487==
==19487==
==19487== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==19487== Access not within mapped region at address 0x0
==19487== at 0x11032F: boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::local_to_global(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x110567: boost::graph::detail::bundled_result<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS>, boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long> >::type const& boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >::operator[]<boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long> >(boost::detail::edge_desc_impl<boost::bidirectional_tag, unsigned long>) const (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DB33: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10DBDF: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const>(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > const&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10B80E: void global_local_convertion_test<boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> > >(boost::subgraph<boost::adjacency_list<boost::vecS, boost::vecS, boost::bidirectionalS, boost::property<boost::vertex_color_t, int, boost::no_property>, boost::property<boost::edge_index_t, unsigned long, boost::property<boost::edge_weight_t, int, boost::no_property> >, boost::no_property, boost::listS> >&) (in /home/kenkangxgwe/graph/test_sub)
==19487== by 0x10A7DD: main (in /home/kenkangxgwe/graph/test_sub)
==19487== If you believe this happened as a result of a stack
==19487== overflow in your program's main thread (unlikely but
==19487== possible), you can try to increase the size of the
==19487== main thread stack using the --main-stacksize= flag.
==19487== The main thread stack size used in this run was 8388608.
==19487==
==19487== HEAP SUMMARY:
==19487== in use at exit: 33,198 bytes in 440 blocks
==19487== total heap usage: 675 allocs, 235 frees, 117,407 bytes allocated
==19487==
==19487== LEAK SUMMARY:
==19487== definitely lost: 0 bytes in 0 blocks
==19487== indirectly lost: 0 bytes in 0 blocks
==19487== possibly lost: 0 bytes in 0 blocks
==19487== still reachable: 33,198 bytes in 440 blocks
==19487== suppressed: 0 bytes in 0 blocks
==19487== Rerun with --leak-check=full to see details of leaked memory
==19487==
==19487== For counts of detected and suppressed errors, rerun with: -v
==19487== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment