Core dump

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

attachment.html (1.05 KB)

Yes: try to isolate the problem by constructing a minimal,
self-contained program that reproduces the crash.

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!

attachment.html (1.88 KB)