id summary reporter owner description type status milestone component version severity resolution keywords cc 272 undirected adjacency_matrix example segfaults at print_graph burnce jsiek "{{{ Example 2 from http://www.boost.org/libs/graph/doc/adjacency_matrix.html creates a segfault in the second to last line boost::print_graph(ug, name); Details follow: Program received signal SIGSEGV, Segmentation fault. 0x0804a276 in bool boost::detail::get_edge_exists(char const&, ...) (edge_proxy=@0xc804bbe9) at adjacency_matrix.hpp:84 /usr/include/boost/graph/adjacency_matrix.hpp:84:2923:beg:0x804a276 (gdb) up #1 0x0804ab6b in boost::detail::undir_adj_matrix_out_edge_iter > >, unsigned, boost::detail::matrix_edge_desc_impl >::dereference() const (this=0xbfffead0) at adjacency_matrix.hpp:228 (gdb) up #2 0x0804ab0c in dereference > >, size_t, boost::detail::matrix_edge_desc_impl > > (f=@0xbfffead0) at iterator_facade.hpp:341 (gdb) up #3 0x0804aae2 in boost::iterator_facade > >, unsigned, boost::detail::matrix_edge_desc_impl >, boost::detail::matrix_edge_desc_impl, boost::random_access_traversal_tag, boost::detail::matrix_edge_desc_impl, int>::operator*() const (this=0xbfffead0) at iterator_facade.hpp:442 (gdb) up #4 0x0804aa7b in boost::filter_iterator > >, unsigned, boost::detail::matrix_edge_desc_impl > >::satisfy_predicate() (this=0xbfffead0) at filter_iterator.hpp:102 /usr/include/boost/iterator/filter_iterator.hpp:102:2993:beg:0x804aa7b (gdb) up #5 0x0804a9fd in filter_iterator (this=0xbfffead0, f={}, x={ > >, unsigned int, boost::detail::matrix_edge_desc_impl >,__gnu_cxx::__normal_iterator > >,boost::detail::matrix_edge_desc_impl,boost::use_default,boost::detail::matrix_edge_desc_impl,int>> = { > >, unsigned int, boost::detail::matrix_edge_desc_impl >,boost::detail::matrix_edge_desc_impl,boost::random_access_traversal_tag,boost::detail::matrix_edge_desc_impl,int>> = {}, m_iterator = {> = {}, _M_current = 0x804d050 """"}}, m_src = 0, m_inc = 3221220248, m_targ = 0, m_n = 6}, end={ > >, unsigned int, boost::detail::matrix_edge_desc_impl >,__gnu_cxx::__normal_iterator > >,boost::detail::matrix_edge_desc_impl,boost::use_default,boost::detail::matrix_edge_desc_impl,int>> = { > >, unsigned int, boost::detail::matrix_edge_desc_impl >,boost::detail::matrix_edge_desc_impl,boost::random_access_traversal_tag,boost::detail::matrix_edge_desc_impl,int>> = {}, m_iterator = {> = {}, _M_current = 0x804d065 """"}}, m_src = 0, m_inc = 3221220260, m_targ = 0, m_n = 6}) at filter_iterator.hpp:61 (gdb) up #6 0x08049f60 in std::pair >::out_edge_iterator, boost::adjacency_matrix >::out_edge_iterator> boost::out_edges >(boost::adjacency_matrix >::vertex_descriptor, boost::adjacency_matrix > const&) (u=0, g_=@0xbfffed70) at adjacency_matrix.hpp:529 (gdb) up #7 0x08049cc7 in void boost::print_graph_dispatch >, char const*>(boost::adjacency_matrix > const&, char const*, boost::undirected_tag) (G=@0xbfffed70, name=0x804b0fc ""ABCDEF"") at graph_utility.hpp:201 (gdb) up #8 0x08048e28 in void boost::print_graph >, char const*>(boost::adjacency_matrix > const&, char const*) (G=@0xbfffed70, name=0x804b0fc ""ABCDEF"") at graph_utility.hpp:211 (gdb) up #9 0x08048a9a in main () at undirected_adj_matrix.cc:25 }}}" Bugs closed graph None Works For Me