[Bug 1694108] [NEW] zero exit status on syntax error in graphviz 2.36.0

Sebastian Bank 1694108 at bugs.launchpad.net
Sun May 28 09:39:14 UTC 2017


Public bug reported:

unlike in version 2.38, graphviz 2.36.0 does not return a non-zero exit
status on syntax errors:

$ echo 'nongraph' | dot -Tsvg && echo $?
Warning: <stdin>: syntax error in line 1 near 'nongraph'
0

(echo should not be executed: $? should be 1)

$ dot -V
dot - graphviz version 2.36.0 (20140111.2315)

$ apt-cache policy graphviz
graphviz:
  Installed: 2.36.0-0ubuntu3.2

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"


AFAIU, the following change needs to be backported:
https://github.com/ellson/graphviz/commit/181433391b1ea19caf999f91b14a50f0499b831e


Upstream bugs:
https://github.com/ellson/graphviz/issues/191 = http://www.graphviz.org/mantisbt/view.php?id=2521
https://github.com/ellson/graphviz/issues/243 = http://www.graphviz.org/mantisbt/view.php?id=2470

** Affects: graphviz (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to graphviz in Ubuntu.
https://bugs.launchpad.net/bugs/1694108

Title:
  zero exit status on syntax error in graphviz 2.36.0

Status in graphviz package in Ubuntu:
  New

Bug description:
  unlike in version 2.38, graphviz 2.36.0 does not return a non-zero
  exit status on syntax errors:

  $ echo 'nongraph' | dot -Tsvg && echo $?
  Warning: <stdin>: syntax error in line 1 near 'nongraph'
  0

  (echo should not be executed: $? should be 1)

  $ dot -V
  dot - graphviz version 2.36.0 (20140111.2315)

  $ apt-cache policy graphviz
  graphviz:
    Installed: 2.36.0-0ubuntu3.2

  $ cat /etc/lsb-release
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=14.04
  DISTRIB_CODENAME=trusty
  DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"

  
  AFAIU, the following change needs to be backported:
  https://github.com/ellson/graphviz/commit/181433391b1ea19caf999f91b14a50f0499b831e

  
  Upstream bugs:
  https://github.com/ellson/graphviz/issues/191 = http://www.graphviz.org/mantisbt/view.php?id=2521
  https://github.com/ellson/graphviz/issues/243 = http://www.graphviz.org/mantisbt/view.php?id=2470

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/graphviz/+bug/1694108/+subscriptions



More information about the foundations-bugs mailing list