Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001722graphvizDotpublic2009-09-27 12:022011-04-28 04:03
ReporterEric Rannaud 
Assigned Toellson 
PlatformOS*-*-2.24.0 (20090616.2323)OS Version
Summary0001722: dot (xlib or gtk) does not respond to SIGINT sanely

echo "digraph {}" | dot -Txlib
echo "digraph {}" | dot -Tgtk

# Control-C or send SIGINT
killall -INT dot

With 'xlib', SIGINT is handled by dot in the following manner:
the program doesn't terminate, but a second window is created,
which displays the graph (if any), while the first window becomes

With 'gtk', after a SIGINT the following message is shown:

(<unknown>:1988): GLib-WARNING **: g_main_context_prepare(): main loop already active in another thread

When the dot window is given focus, a second window is created,
similarly to the 'xlib' case, except that both windows are responsive.

I'm not sure what 'dot' is trying to do with signals, but
whatever it is, it seems deeply wrong. An application like
'dot' has probably no business registering a signal handler
for SIGINT in the first place anyway.
Steps To Reproduce

digraph {
Additional Information

[ellson] Thanks for the report. I've fixed this in a slightly different way.

Dot has always had the "feature" of dumping partial layouts after an interrupt.
My fix just avoids starting output devices with event-loops (-Tgtk, -Txlib) after an

TagsNo tags attached.
There probably was a rationale for having a signal handler for SIGINT,
although it eludes me: it apparently attempts to trigger rendering
and exit.

But since (a) it doesn't work as expected, (b) this behavior doesn't
seem to be documented anywhere, (c)
STATUS-COMMENTFixed (4 Oct 2009)
VERSION     (Mon Jul 7 18:20:14 UTC 2008)
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 => user695

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