Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000817graphvizDotpublic2005-02-11 13:502011-04-28 04:03
ReporterIcarus Sparry 
Assigned Toerg 
PlatformOS*-*-OS Version
Summary0000817: Dot core dumps if freetype not configured

Starting from a relativy poor development environment,
in particular not having freetype, dot crashes when it tries to
dereference a NULL pointer in initDPI.

The line in question is

    _dpi = GD_drawing(g)->dpi;

GD_drawing is a macro, which expands the line to

    _dpi = g->u.drawing->dpi;

u is a union, which is set to 0 somewhere below agparse(). There is some
type mismatch, in that agparse returns a Agraph_t, where the 'u' consists
of a union with just 'char notused;' in it, whilst initDPI is given
a graph_t (no leading A) when the u can have things like drawing, border,
label etc
Steps To Reproduce

digraph x {
Additional Information

[erg] This is bug 625
TagsNo tags attached.
It might be as simple as checking if GD_drawing(g) is not null,
before assigning to _dpi.
VERSION     2.2
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 => erg

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