On 20.03.2016 09:25, alice wrote:
> Hi Tiago,
>
> I seem to have a similar problem as Juan had a few years back. Using
> shortest_distance leads to a segmentation fault. The code below works fine
> if I build random networks with less than 100 nodes, but if I increase the
> number of nodes to 150 the segmentation fault occurs almost always.
>
>         #!/usr/bin/env python
>         from graph_tool.all import *
>         show_config()
>         g = random_graph(150, lambda: (poisson(3), poisson(3)))
>         print 'try shortest distance'
>         s = shortest_distance(g) #seg fault occurs here
>         print 'success!'
>
> This returns:
>
>
> /system/software/linux-x86_64/lib/python2.7/site-packages/graph_tool/draw/cairo_draw.py:1464:
>         RuntimeWarning: Error importing Gtk module: No module named gi; GTK+
> drawing will not work.
>           warnings.warn(msg, RuntimeWarning)
>         version: 2.12 (commit 1d6bf978, Fri Nov 6 15:54:18 2015 +0100)
>         gcc version: 4.9.2
>         compilation flags:
> -I/system/software/linux-x86_64/lib/boost/python2.7/1_55_0/include -I/system
>         /software/linux-x86_64/lib/cgal/4.3/include
> -I/system/software/linux-x86_64/lib/mpfr/3.1.2/include
>         -I/system/software/linux-x86_64/lib/gmp/5.1.3/include
> -I/system/software/linux-x86_64
>         /lib/sparsehash/gcc-4.8.2/2.0.2/include
> -I/system/software/linux-x86_64/python/2.7.8__gcc-
>         4.8.2/include/python2.7
> -I/system/software/linux-x86_64/lib/boost/python2.7/1_55_0/include
>
> -I/system/software/linux-x86_64/lib/python2.7/site-packages/numpy/core/include
>
> -DSPARSEHASH_PREFIX=/system/software/linux-x86_64/lib/sparsehash/gcc-4.8.2/2.0.2/include
>         /sparsehash -Wall -Wextra -ftemplate-backtrace-limit=0 -O3 -mavx
> -std=gnu++14 -DNDEBUG
>         -ftemplate-depth-250 -Wno-deprecated -Wno-unknown-pragmas -O3
> -fvisibility=default -fvisibility-
>         inlines-hidden -fopenmp
> -DSPARSEHASH_PREFIX=/system/software/linux-x86_64/lib/sparsehash
>         /gcc-4.8.2/2.0.2/include/sparsehash
> -L/system/software/linux-x86_64/lib/boost/python2.7
>         /1_55_0/lib -lboost_python -lboost_iostreams -lboost_regex
> -lboost_graph -L/system/software/linux-
>         x86_64/python/2.7.8/lib -lpython2.7
> -L/system/software/linux-x86_64/lib/cgal/4.3/lib -L/system
>         /software/linux-x86_64/python/2.7.8__gcc-4.8.2/lib -lpython2.7
>         install prefix: /system/software/linux-x86_64/graph-tool/2.12
>         python dir:
> /system/software/linux-x86_64/python/2.7.8__gcc-4.8.2/lib/python2.7/site-packages
>         graph filtering: True
>         openmp: True
>         uname: Linux login11 2.6.32-504.el6.x86_64 #1 SMP Wed Oct 15
> 04:27:16 UTC 2014 x86_64
>         try shortest distance
>         Segmentation fault (core dumped)

I cannot reproduce this. Could you run this under GDB and provide a
backtrace of the segfault?

Also, do you also observe it with the newest version, 2.13?

Best,
Tiago

-- 
Tiago de Paula Peixoto <[email protected]>
_______________________________________________
graph-tool mailing list
[email protected]
http://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to