wting / python-graph

Automatically exported from code.google.com/p/python-graph
Other
5 stars 4 forks source link

test_find_cycle_on_very_deep_graph SIGSEGV #124

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,
when running the test suite on a Debian system, we got this failure:

test_find_cycle_on_very_deep_graph (unittests-cycles.test_find_cycle) ... 
Segmentation fault

Original issue reported on code.google.com by sandro.tosi on 21 Sep 2014 at 10:50

GoogleCodeExporter commented 9 years ago
Some additional info from Debian bug 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=750362

>>>
(The full build log is attached.) Upon inspection via gdb it becomes apparent
that this is caused by excessive recursion, which eventually causes a stack
overflow. This is due to the following lines:

http://sources.debian.net/src/python-graph/1.8.2-4/tests/unittests-sorting.py?hl
=82,83#L82

Changing the numbers to 16876 and 16875, respectively, was the maximum I got to
work.
<<<

Original comment by sandro.tosi on 21 Sep 2014 at 11:16

GoogleCodeExporter commented 9 years ago
confirming same on attempting to build fedora-21

Original comment by hgkam...@gmail.com on 24 Sep 2014 at 8:13

GoogleCodeExporter commented 9 years ago
$ ulimit -s 65536 
is another way around.

Original comment by hgkam...@gmail.com on 27 Sep 2014 at 7:01