Number: 889
Title: Dot segfaults when some nodes are used as source, doesn't with others
Submitter: Guillaume POIRIER
Date: Mon Feb 27 09:40:59 2006
Subsys: Dot
Version: dot version 2.2.1 (Fri Sep 30 13:22:44 UTC 2005)
System: *-*-
Severity: major
Problem:
command: dot -Tps -o $psfile $dotfile

The problem lies here: _0x82d71f0 -> _0x82d8d68[ color="green",fontcolor="green" style="dotted" label="war"] if "_0x82d71f0" is replace by "_0x82d4e88" for example, it doesn't segfault.

Is that a known problem?
Input:

digraph Tree{
	node [fontsize=10 shape=record,style=filled];
	_0x82d4e88 [color="lightblue2",label = "{T3[0]nldnoffset = 0nstride = 1ntype = 0nlatency = 8nunroll = 0nstep = 1n|{<dst0>data|<dst1>addr}}"];
	 _0x82d4e88:dst0 -> _0x82d71f0:src1[fontsize=10 label="vr204" color="red",fontcolor="red"]
	 _0x82d4e88:dst0 -> _0x82d8d68:src0:src1[fontsize=10 label="vr204" color="red",fontcolor="red"]
	 _0x82d4e88:dst0 -> _0x82d8d68:src0:src1[fontsize=10 label="vr204" color="red",fontcolor="red"]
	_0x82d71f0 [color="lightyellow1",label = "{{<src0>0|<src1>1}|binopnop = addnarg = 136451544noffset = 136451632nstride = 136451808ntype = 2nlatency = 0nunroll = 0nstep = 2n}"];
	 _0x82d71f0 -> _0x82d71f0:src0[fontsize=10 label="vr202" color="red",fontcolor="red"]
	 _0x82d71f0 -> _0x82cfaa0[fontsize=10 label="vr202" color="red",fontcolor="red"]
	_0x82cfaa0 [label = "{accnop = addnarg = 997nstride = 999ntype = 2nlatency = 0nunroll = 0nstep = 3n}"];
	_0x82d8d68 [color="lightyellow1",label = "{{<src0>0|<src1>1}|binopnop = mulnarg = 577135986noffset = 1887007753nstride = 577921384ntype = 3nlatency = 0nunroll = 0nstep = 2n}"];
	 _0x82d8d68 -> _0x82d9b30:src1[fontsize=10 label="vr204" color="red",fontcolor="red"]
	_0x82d9b30 [color="lightyellow1",label = "{{<src0>0|<src1>1}|binopnop = addnarg = 0noffset = 0nstride = 0ntype = 2nlatency = 0nunroll = 0nstep = 3n}"];
	 _0x82d9b30 -> _0x82d9b30:src0[fontsize=10 label="vr206" color="red",fontcolor="red"]
	 _0x82d9b30 -> _0x82da928[fontsize=10 label="vr206" color="red",fontcolor="red"]
	_0x82da928 [label = "{accnop = addnarg = 0noffset = 0nstride = 0ntype = 2nlatency = 0nunroll = 0nstep = 4n}"];
	_0x82cb888 [label = "{brntype = 12nunroll = 0n}"];
	{ node [shape=plaintext, fontsize=12] 1 -> 2 -> 3 -> 4; }
	{ rank=same; 1; _0x82d4e88 }
	{ rank=same; 2; _0x82d71f0; _0x82d8d68 }
	{ rank=same; 3; _0x82cfaa0; _0x82d9b30 }
	{ rank=same; 4; _0x82da928 }
	_0x82d71f0 -> _0x82d8d68[ color="green",fontcolor="green" style="dotted" label="war"]
}
Comments:
[ellson] I can't reproduce the segfault with graphviz-2.8, so it seems the problem has been fixed.

I do get two warnings from your graph though:


   $ dot -Tps tree.dot >tree.ps
   Warning: node _0x82d8d68, port src0, unrecognized compass point 'src1' - ignored
   Warning: node _0x82d8d68, port src0, unrecognized compass point 'src1' - ignored

[poirierg] Yes, Indeed. I downloaded and compiled an updated version, and it works like a charm. Sorry for the false alarm.

Too bad Debian doesn't have any version more rencent than 2.2 as I kept hitting lotsa bugs with 2.2. I hope that now that I've got 2.8 it will be okay.
Owner: ellson
Status: Fixed