Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001570graphvizGraph Librariespublic2009-03-22 23:392011-04-28 04:03
ReporterAric Hagberg 
Assigned Tonorth 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOS*-*-OS Version
Summary0001570: Lost loop in cgraph
Description



I'm not sure if I'm understanding libcgraph well enough to
tell if this is a bug but anyway - this behaves differently between
2.18.3 and 2.22.2.



<CD>
#include <stdio.h>
#include <cgraph.h>
main(int argc, char **argv)
{
  Agraph_t *g;
  Agnode_t *a,*b;
  Agedge_t *e,*e1;
  FILE *file;



  const Agdesc_t Agstrictundirected = { 0, 0, 0, 1 };
  const int find = 0;
  const int create = 1;
  g = agopen("tmp",Agstrictundirected,NULL);
  a = agnode(g,"a",create);
  b = agnode(g,"b",create);
  e = agedge(g,a,a,NULL,create);
  e1 = agedge(g,a,a,NULL,find);
  printf("e1 %p\n", e1); /* fail, returns null pointer with 2.22.2*/
  file=fopen("strict.dot","w");
  agwrite(g,file);



}



# 2.18.3
bash-3.2$ gcc -L/sw/lib -lcgraph -I/sw/include/graphviz ex3.c;./a.out
e1 0x1004d0



# 2.22.2
bash-3.2$ gcc -L/usr/local/lib -lcgraph -I/usr/local/include/graphviz ex3.c;./a.out
e1 0x0
</CD>
Additional Information

[erg] Problem introduced in 1.9 of edge.c.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID1611
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENTFixed
VERSION     2.23
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2011-04-28 04:03 user1 New Issue
2011-04-28 04:03 user1 Assigned To => Stephen North


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