[Neato] Neato segfault if some node placed between pair-connected nodes
Ported Issue from Mantis Original ID: 2513 Referenced attachment(s) only available in original Mantis DB Reported By: christianrusinm
SEVERITY: CRASH Submitted: 2015-02-03 19:36:05
OS: WINDOWS
OS BUILD: 7, 8.1
PLATFORM: X86_64
DESCRIPTION
cgraph gvLayout function randomly crashes if attached "neatoCrash.gv" dot-file used. If calling gvLayout successful - pair edges looks very poor.
The way to avoid poor edges and crash is to set headPort and tailPort attributes for pair edges as in attached "neatoCrashAvoid.gv".
STEPS TO REPRODUCE
- Complile attached sample(main.c) or any other code that simply loads "neatoCrash.gv" dot file and calls gvLayout function with "neato" argument static linking gvc.lib, cgraph.lib, graph.lib, cdt.lib libs from 2.38 or 2.39.20150203 version.
- Set breakpoint on gvLayout call (use some IDE with debugger).
- Start programm in debug mode.
ADDITIONAL INFORMATION
Code compiled using C++ MinGW 4.4 compiler.
Edited by Matthew Fernandez