Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Dot] dot aborts in pgram.dot #550

Open
GadgetSteve opened this issue Jul 4, 2016 · 0 comments
Open

[Dot] dot aborts in pgram.dot #550

GadgetSteve opened this issue Jul 4, 2016 · 0 comments

Comments

@GadgetSteve
Copy link
Contributor

Ported Issue from Mantis
Original ID: 1724
Reported By: Philipp Thomas

SEVERITY: MAJOR
Submitted: 2009-09-30 13:44:53

OS: X86-LINUX-OPENSUSE 11.2 MILESTON

VERSION: 2.20

DESCRIPTION


As you can see in https://bugzilla.novell.com/show_bug.cgi?id=542703

dot from graphviz 2.20 chokes on pgram.dot supplied with the package:

dot -v -Tps /usr/share/graphviz/graphs/directed/pgram.dot

Activated plugin library: libgvplugin_pango.so.5
Using textlayout: textlayout:cairo
Activated plugin library: libgvplugin_dot_layout.so.5
Using layout: dot:dot_layout
Activated plugin library: libgvplugin_core.so.5
Using render: ps:core
Using device: ps:ps:core
The plugin configuration file:
/usr/lib64/graphviz/config
was successfully loaded.
render : cairo dot fig gd map ps svg tk vml vrml xdot
layout : circo dot fdp neato nop nop1 nop2 twopi
textlayout : textlayout
device : bmp canon cmap cmapx cmapx_np dia dot eps fig gd gd2 gif
gtk hpgl ico imap imap_np ismap jpe jpeg jpg mif mp pcl pdf pic plain
plain-ext png ps ps2 svg svgz tif tiff tk vml vmlz vrml vtx wbmp xdot
xlib
loadimage : (lib) gd gd2 gif jpe jpeg jpg png ps svg xbm
fontname: "Times-Roman" resolved to: (ps) "Arial 14"
network simplex: 3 nodes 2 edges 0 iter 0.00 sec
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross: pass 0 iter 0 trying 0 cur_cross 0 best_cross 0
mincross test: 0 crossings, 0.00 secs.
network simplex: 111 nodes 160 edges 19 iter 0.00 sec
Aborted


When checking with gdb I get:

Program received signal SIGABRT, Aborted. 0x00007ffff76284e5 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory. in ../nptl/sysdeps/unix/sysv/linux/raise.c (gdb) where #0 0x00007ffff76284e5 in raise (sig=) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64 #1 0x00007ffff76299b0 in abort () at abort.c:88 #2 0x00007ffff71ebc6e in growdq (newdqn=) at shortest.c:559 #3 Pshortestpath (newdqn=) at shortest.c:124 #4 0x00007ffff7b92369 in _routesplines (pp=0x8, npoints=, polyline=) at routespl.c:466 #5 0x00007ffff31fd6d5 in make_flat_edge (sp=, P=0x69fd10, edges=, ind=, cnt=,
et=<value optimized out>) at dotsplines.c:1242

#6 0x00007ffff31fc664 in _dot_splines (g=, normalize=) at dotsplines.c:393
#7 0x00007ffff31f1cee in t (g=0x617de0) at dotinit.c:212
#8 0x00007ffff7b81310 in gvLayoutJobs (gvc=, g=0x617de0) at gvlayout.c:69
#9 0x0000000000400ddc in main (argc=, argv=0x7fffffffdfe8) at dot.c:180


So the abort is in shortest.c(growdq) when malloc fails. What irritates me
is that the message from perror doesn't seem to be printed.

Question now is if this is a bug in dot or is there just not enough memory
available (x86-64 aka AMD64 with 3 GiB Memory).

As told in the report, it's pgram.dot from the graphviz examples.

ADDITIONAL INFORMATION

[erg] I am unable to reproduce this on our Linux server with version 2.25. Maybe John can get it
to fail.

In any case, the bug is very strange, in that the input graph is small and the call to malloc
only occurs on the first call of growdq, in which case, it asks for 96 bytes. So memory
should not be an issue.

I'm wary of all of those values optimized out in the traceback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant