Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002470graphvizDotpublic2014-07-20 00:162014-07-24 17:01
Reporteryurivict 
Assigned Toerg 
PrioritynormalSeveritynormalReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSFreeBSDOS Version9
Summary0002470: Parsing failure message isn't informative and failure behavior is wrong
Description'dot' command fails on one of .dot files with this message:
Warning: <stdin>: syntax error in line 4 near ''

There are 3 problems:
1. It says 'Warning', but it actually stops at this point, produces no output and exits. So it should be an error instead.
2. No column in provided, and line 4 in the input is very long. So line should be provided.
3. 'dot' command exits with an error code 0, which normally indicates success. It should be something like -1.

Additional InformationWe use flex for scanning, which doesn't provide much context, especially for scanning errors. The code now gives a bit more information and some context.
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION
Attached Filesbz2 file icon testcase.dot.bz2 (Attachment missing)

- Relationships

-  Notes
User avatar (0000774)
yurivict (reporter)
2014-07-20 01:49

Versions 2.36.0 and 2.34.0 both have the same problem.

The line where it fails is a very long description of enclosed blocks. It may be that this description is too long.
User avatar (0000775)
erg (administrator)
2014-07-24 11:51

Can you attach a file causing this behavior, or point me to one? Thanks.
User avatar (0000777)
yurivict (reporter)
2014-07-24 13:10

Attaching the testcase.

$ dot < testcase.dot
Warning: <stdin>: syntax error in line 5 near ''
User avatar (0000778)
erg (administrator)
2014-07-24 15:00

For the record, points 1 and 3 have been fixed as of 2.38.

- Issue History
Date Modified Username Field Change
2014-07-20 00:16 yurivict New Issue
2014-07-20 01:49 yurivict Note Added: 0000774
2014-07-24 11:51 erg Note Added: 0000775
2014-07-24 13:10 yurivict Note Added: 0000777
2014-07-24 13:12 yurivict File Added: testcase.dot.bz2
2014-07-24 15:00 erg Note Added: 0000778
2014-07-24 17:01 erg Assigned To => erg
2014-07-24 17:01 erg Status new => resolved
2014-07-24 17:01 erg Resolution open => fixed
2014-07-24 17:01 erg Additional Information Updated View Revisions


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