Hi together, I have an algorithm whose results incl. the graph I save to disk at the end. When I load it again, on some vertices, shortest_distance() crashes python: ``` munmap_chunk(): invalid pointer Aborted (core dumped) ``` Any ideas on how I can debug this? All the property maps are internal and my custom vertex lists are converted to int before pickling and restored using gt.Graph().vertex() afterwards. Thank a lot for ideas! Cheers, Stephan _______________________________________________ graph-tool mailing list -- graph-tool@skewed.de To unsubscribe send an email to graph-tool-leave@skewed.de
Am 11.11.21 um 10:47 schrieb Monecke, Stephan:
Any ideas on how I can debug this?
Yes: try to isolate the problem by constructing a minimal, self-contained program that reproduces the crash. -- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list -- graph-tool@skewed.de To unsubscribe send an email to graph-tool-leave@skewed.de
I bisected manually until I found the problem: shortest_path() segfaults when the vertex is not present. - - MWE - - import graph_tool.all as gt gt.shortest_path(gt.Graph(), 1, 2) Segmentation fault (core dumped) - - o - - I wrote a ticket for that. Thanks for your help! ________________________________ Von: Tiago de Paula Peixoto <tiago@skewed.de> Gesendet: Donnerstag, 11. November 2021 11:05 An: graph-tool@skewed.de Betreff: [graph-tool] Re: Core dump Am 11.11.21 um 10:47 schrieb Monecke, Stephan:
Any ideas on how I can debug this?
Yes: try to isolate the problem by constructing a minimal, self-contained program that reproduces the crash. -- Tiago de Paula Peixoto <tiago@skewed.de> _______________________________________________ graph-tool mailing list -- graph-tool@skewed.de To unsubscribe send an email to graph-tool-leave@skewed.de _______________________________________________ graph-tool mailing list -- graph-tool@skewed.de To unsubscribe send an email to graph-tool-leave@skewed.de
participants (2)
-
Monecke, Stephan -
Tiago de Paula Peixoto