Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002524graphvizDotpublic2015-03-05 18:052015-03-06 12:09
Reporterskvadrik 
Assigned Toerg 
PrioritynormalSeverityimportantReproducibilityalways
StatusresolvedResolutionfixed 
Platformx86_64OSLinuxOS Version3.19.0-gentoo
Summary0002524: fails to parse backslash in the end of label text
DescriptionConsider the following input (1.dot):

digraph g {
1 -> 2 [label="\\"]
}

I expect single backslash as a label.
Steps To ReproduceSee file 1.dot in attach. Got an error:

$ dot -Tpng -o1.png 1.dot
$ Warning: 1.dot: syntax error in line 2 near ''
Additional InformationReproduced with graphviz-2.39.20150305.0545 (also 2.38 and 2.36), 2.26 worked fine.

Is there another way to draw trailing backslashes (preferably portable between graphviz versions) ?
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSIONgraphviz-2.39.20150305.0545
Attached Filesdot file icon 1.dot (Attachment missing)

- Relationships

-  Notes
User avatar (0000886)
north (administrator)
2015-03-05 18:42

I couldn't reproduce this bug (Graphviz 2.39, latest, built on OSX). I get a single backslash as a label. I agree that this behavior is important. This specific feature was worked on several times over the years. I don't know what's going wrong. In the past, there were situations where test scripts were actually processing the graph through the shell an extra time and eating one of the backslashes, but the submission shows a simple command line execution with the test graph in a file. I'm stumped.
User avatar (0000887)
skvadrik (reporter)
2015-03-06 04:41
edited on: 2015-03-06 04:47

Built from git:

$ git clone https://github.com/ellson/graphviz/ [^]
$ cd graphviz
$ ./autogen.sh
$ ./configure --prefix=<prefix>
$ make -j5
$ make install
$ <prefix>/bin/dot -Tpng -o1.png 1.dot

Works fine (draws single backslash). Maybe I'll try to bisect.

I found two runnable programs: cmd/dot/dot (bash script) and cmd/dot/.libs/dot (executable). Bash script fails:

$ cmd/dot/dot -Tpng -o1.png 1.dot
$ Warning: 1.dot: syntax error in line 4 near ''

While executable works fine:

$ cmd/dot/.libs/dot -Tpng -o1.png 1.dot

User avatar (0000889)
skvadrik (reporter)
2015-03-06 11:54
edited on: 2015-03-06 11:56

Bisected, faulty behaviour was fixed by commit 386e47c14b3a8e83bdf3ec8772963213095a7294: "Remove change made in d19b672a3c06f0ae95b1da38b63b068f71eb266f until we can remember why this change was made."


- Issue History
Date Modified Username Field Change
2015-03-05 18:05 skvadrik New Issue
2015-03-05 18:05 skvadrik File Added: 1.dot
2015-03-05 18:42 north Note Added: 0000886
2015-03-06 04:41 skvadrik Note Added: 0000887
2015-03-06 04:47 skvadrik Note Edited: 0000887 View Revisions
2015-03-06 11:54 skvadrik Note Added: 0000889
2015-03-06 11:56 skvadrik Note Edited: 0000889 View Revisions
2015-03-06 12:09 erg Assigned To => erg
2015-03-06 12:09 erg Status new => resolved
2015-03-06 12:09 erg Resolution open => fixed


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