MOTHBALLED-graphviz icon indicating copy to clipboard operation
MOTHBALLED-graphviz copied to clipboard

[Neato] neato -n2 crashes on certain input (4 node example)

Open GadgetSteve opened this issue 8 years ago • 0 comments

Ported Issue from Mantis Original ID: 2434 Attached file(s) only currently available from Mantis Reported By: JonnyJD

SEVERITY: CRASH Submitted: 2014-03-18 11:18:04

OS: ARCH LINUX

OS BUILD: -

PLATFORM: X86_64

DESCRIPTION

I am running "neato -n2" on a graph with fixed node positions and one edge position. neato segfaults with this gdb backtrace:

Program received signal SIGABRT, Aborted. 0x00007ffff75b5319 in raise () from /usr/lib/libc.so.6 (gdb) bt #0 0x00007ffff75b5319 in raise () from /usr/lib/libc.so.6 #1 0x00007ffff75b6718 in abort () from /usr/lib/libc.so.6 #2 0x00007ffff75f2da4 in __libc_message () from /usr/lib/libc.so.6 #3 0x00007ffff75f856e in malloc_printerr () from /usr/lib/libc.so.6 #4 0x00007ffff75f9247 in _int_free () from /usr/lib/libc.so.6 #5 0x00007ffff7b83810 in addXLabels (gp=0x667080) at postproc.c:572 #6 gv_postprocess (g=g@entry=0x667080,

allowTranslation=allowTranslation@entry=0) at postproc.c:600

#7 0x00007fffede6a481 in neato_layout (g=0x667080) at neatoinit.c:1422 #8 0x00007ffff7b63182 in gvLayoutJobs (gvc=0x603760, g=0x667080)

at gvlayout.c:85

#9 0x0000000000400fbf in main (argc=, argv=)

at dot.c:191

(Also crashes without using gdb)

code at postproc.c:572 in my checkout (current git, see version): free(objs);

STEPS TO REPRODUCE

neato -n2 neato_crash.gv

ADDITIONAL INFORMATION

Every line in the gv/dot example is relevant. Removing one doesn't crash anymore then. This is the minified example. I encountered the problem in a bigger graph.

You can have a look at the situation with removing this line: 1 -> 0 [label="d"]; and then doing something like "neato -n2 -Tpng neato_nocrash.gv -o neato_nocrash.png".

GadgetSteve avatar Jul 04 '16 19:07 GadgetSteve