#524408 graphviz: dot returns success even when interrupted

Package:
graphviz
Source:
graphviz
Description:
rich set of graph drawing tools
Submitter:
Ivan Jager
Date:
2026-07-16 07:03:01 UTC
Severity:
normal
#524408#5
Date:
2009-04-16 21:29:32 UTC
From:
To:
When killing dot with SIGINT (ie ^C) it exits with exit status 0. (Even though
it was not successful.) This is a problem for scripting, even with simple
one-liners.

To reproduce run
dot -T png -o foo.png foo.dot
with a large foo.dot and press ^C (or send SIGINT any other way)

#524408#10
Date:
2013-03-05 11:39:02 UTC
From:
To:
Hi,

Okay, that would make sense!

It seemed to me that some other thread (not shown by gdb) had received
the signal and freed something the active thread was still using.
Sometimes it caused a segfault, and less often resulted in a hang somehow.

The SIGINT handler sounds buggy, and maybe not that useful (who needs a
half-rendered diagram?) and so it might be best to disable it, which
would fix http://bugs.debian.org/524408


But this was probably unrelated to the cause of the hang seen on the
buildds (#701832).  That was hopefully fixed by disabling the relevant
code for now (which didn't seem useful either), with the patch in
http://bugs.debian.org/701832#53.

Regards,

#524408#15
Date:
2026-07-16 07:01:09 UTC
From:
To:
The signal handler that seems to have been the cause of this issue was
removed in upstream commit 292f83b02f32c55b38ba685346e3f114c3f6b724
(https://gitlab.com/graphviz/graphviz/-/commit/292f83b02f32c55b38ba685346e3f114c3f6b724).
This landed in Graphviz 8.0.5.