Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1679097

Summary: Syntax error in graphviz input file generates an empty image file with just a warning.
Product: Red Hat Enterprise Linux 7 Reporter: Teoman ONAY <tonay>
Component: graphvizAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Ondrej Mejzlik <omejzlik>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.7-AltCC: jskarvad, omejzlik, thozza
Target Milestone: rcKeywords: AutoVerified, FastFix, Patch, TestCaseProvided, Triaged, Upstream
Target Release: ---Flags: thozza: mirror+
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: graphviz-2.30.1-22.el7 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-09-29 19:33:34 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1780577    
Attachments:
Description Flags
graphviz sample document none

Description Teoman ONAY 2019-02-20 10:51:22 UTC
Description of problem:
When graphviz input file contains a syntax error, a empty image file is generated with a warning and an exit code 0.

The customer would like us to backport the existing fix: 

https://github.com/ellson/MOTHBALLED-graphviz/commit/181433391b1ea19caf999f91b14a50f0499b831e


Version-Release number of selected component (if applicable):
graphviz-2.30.1-21

How reproducible:
NA

Steps to Reproduce:
1.
2.
3.

Actual results:
See description

Expected results:
When the source document contains a syntax error, the program should stop with an error and an exit code > 0.

Additional info:
Sample input file requested to the customer.

Comment 2 Teoman ONAY 2019-02-28 16:17:39 UTC
Created attachment 1539588 [details]
graphviz sample document

Comment 3 Jaroslav Škarvada 2019-04-25 13:41:53 UTC
The backport seems easy (one-liner) and safe.

Comment 15 errata-xmlrpc 2020-09-29 19:33:34 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (graphviz bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:3880