[Dot] seg faults depending on length of fontpath name
Ported Issue from Mantis Original ID: 456 Reported By: Bill Cavnar
SEVERITY: MINOR Submitted: 2004-08-16 16:42:44
OS: X86-LINUX-REDHAT 7.3
dot seg faults, apparently depending on the length of the fontpath. I first discovered this when I was trying to move my font directory from one place to another. By luck, the first place had worked, but when I moved it to another directory whose pathname was 2 bytes longer, dot seg faulted. I tried fiddling with permissions and then with moving it from place to place. I noticed that when the fontpath was a multiple of 4 characters it seemed to work. Here's the smallest example I could come up with that exhibited the problem. In this case I had made my font directory a subdirectory of my working directory, and named it 'ttf' (which didn't work). I renamed it to 'ttf1' and it worked.
# dot -Gfontname=Arial -Gfontsize=12 -Gfontpath='ttf' -Tpng /tmp/5494_adfeed.dot -o html/cs_adflow.png zsh: segmentation fault dot -Gfontname=Arial -Gfontsize=12 -Gfontpath='ttf' -Tpng /tmp/5494_adfeed.do # mv ttf ttf1 # dot -Gfontname=Arial -Gfontsize=12 -Gfontpath='ttf1' -Tpng /tmp/5494_adfeed.dot -o html/cs_adflow.png #