Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000287graphvizTcl/Tk Utilitiespublic2003-10-08 22:402011-04-28 04:02
ReporterHIRAKI Hideaki 
Assigned Toellson 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0000287: 2 bugs of Tcldot: setting attribute to subgraph and extra edge handles
Description



<CD>
$ tclsh
% package require Tcldot
1.10.20031007.0415
% dotstring "digraph g0 { a -> A; subgraph g1 { } }"
graph0
% ##### Problem 1. setting attribute to subgraph
% graph0 setattribute ga g0
% graph0 queryattribute ga
g0
% graph0 setnodeattribute na n0
% graph0 querynodeattribute na
n0
% graph0 setedgeattribute ea e0
% graph0 queryedgeattribute ea
e0
% ##### Ok, attributes can be set to the root graph.
% graph0 listsubgraphs
graph1
% graph1 setattribute ga g1
% graph1 queryattribute ga
{}
% graph0 queryattribute ga
g1
% ##### But it is impossible to set an graph attribute to a subgraph.
% ##### Instead, the attribute of the root graph has been changed.
% graph1 setnodeattribute na n1
% graph1 querynodeattribute na
n0
% graph0 querynodeattribute na
n0
% graph1 setedgeattribute ea e1
% graph1 queryedgeattribute ea
e0
% graph0 queryedgeattribute ea
e0
% ##### And setting node/edge attributes to a subgraph is ignored.
% ##### Problem 2. extra edge handles
% graph0 listedges
edge1
% ##### Ok, there is one edge.
% info commands edge*
edge0 edge1
% ##### But two edge handles exist.
% graph0 delete
% info commands edge*
edge0
% ##### Then one edge handle has leaked and may cause segmentation fault.
% edge0 listattributes
Segmentation fault (core dumped)
$
</CD>
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT 
<CD>
--- tcldot/tcldot.c.orig Tue Jul 29 00:41:43 2003
+++ tcldot/tcldot.c Wed Oct 8 17:49:24 2003
@@ -847,7 +847,7 @@
                 return TCL_ERROR;
             for (j = 0; j < argc2; j++) {
                 if ((a = agfindattr(g->proto->e, argv2[j]))) {
- Tcl_AppendElement(
FORMER-ID359
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed (10 October 2003)
VERSION     1.10.20031007.0415
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:02 user1 New Issue
2011-04-28 04:02 user1 Assigned To => user695


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker