Can someone help me with the following program? It crashes with Boost
1.33.1 on gcc34 (GCC) 3.4.3 20050113 (Red Hat 3.4.3-16):
$ ./1
make_map_as_colormap entered
writing something to MapAsColorMap
Speicherzugriffsfehler
I have tracked down the crash to this line in
First you initialize Graph g; Afterward you initialize: Graph G(5); //add some vertices and edges And then you start to work with empty Graph g ;) Sure it will not work! If you simply remove Graph g; compiler will point you what to fix ;) With Kind Regards, Ovanes Markarian On Mon, February 19, 2007 19:36, Jens Müller wrote:
Can someone help me with the following program? It crashes with Boost 1.33.1 on gcc34 (GCC) 3.4.3 20050113 (Red Hat 3.4.3-16):
$ ./1 make_map_as_colormap entered writing something to MapAsColorMap Speicherzugriffsfehler
I have tracked down the crash to this line in
: for (tie(ei, ei_end) = out_edges(u, g); ei != ei_end; ++ei) {
But I don't know what happens there ...
I'm quite sure the bug is NOT in my color map proxy ...
Thanks a lot in advance!
Cheers,
Jens _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Ovanes Markarian schrieb:
First you initialize
Graph g;
Afterward you initialize:
Graph G(5); //add some vertices and edges
And then you start to work with empty Graph g ;) Sure it will not work!
If you simply remove
Graph g;
compiler will point you what to fix ;)
Sure :-) Thanks a lot! Damn tunnel vision ... Jens
I was able to compile and run your example and had some cmd line output. -----Original Message----- From: Jens Müller [mailto:jens.mueller@ira.uka.de] Sent: Montag, 19. Februar 2007 20:35 To: boost-users@lists.boost.org Subject: Re: [Boost-users] [graph] Crash in breadth_first_search Jens Müller schrieb:
Sure :-)
Thanks a lot! Damn tunnel vision ...
Well, but it crashes when I use a graph read with the GraphML reader from graph-tools ... And, what wonder: The graph is empty ... OK ... I'll have to ask on the graph-tools about this ... _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Ovanes Markarian schrieb:
I was able to compile and run your example and had some cmd line output.
The exact version I posted here? Yeah, that works. What doesn't work is the GraphML reader - I posted an example on the graph-tool mailing list, available at Gmane as gmane.comp.science.graph.graph-tool.general, if you want to give it a try ... This reader does not seem to write anything to my graph - it takes some time to read the file, though, and doesn't produce any error messages ...
Jens Müller
Jens Müller schrieb:
Sure :-)
Thanks a lot! Damn tunnel vision ...
Well, but it crashes when I use a graph read with the GraphML reader from graph-tools ...
And, what wonder: The graph is empty ... OK ... I'll have to ask on the graph-tools about this ...
Well, I'm not sure. Should BFS crash when used on an empty graph? -- Dave Abrahams Boost Consulting www.boost-consulting.com
David Abrahams wrote:
Well, I'm not sure. Should BFS crash when used on an empty graph?
Well - I also passed it an invalid vertex descriptor: *vertices(g).first, which was in that case equal to *vertices(g).second ... It then crashed when BFS tried to get the out edge iterator ...
participants (3)
-
David Abrahams
-
Jens Müller
-
Ovanes Markarian