GNOME Bugzilla – Bug 104872
segfault using custom shapes with text
Last modified: 2004-05-20 19:32:04 UTC
The custom shape defined in: <?xml version="1.0" encoding="UTF-8"?> <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg"> <name>Subsystem - UserTasks</name> <icon>UserTasks.png</icon> <connections> <point x="0.875" y="1.35"/> <point x="0.375" y="4.05"/> <point x="0.375" y="6.75"/> <point x="0.375" y="9.45"/> <point x="0.875" y="12.15"/> </connections> <aspectratio type="free"/> <svg:svg> <svg:path style="fill: bg" d="M 4.5 0 C 5,0 7.5,0 8.5,1 C 9.5,2 9,6 9,7 C 9,8 9.5,11.5 8.5,12.5 C 7.5 <svg:rect style="fill: bg; stroke: bg" x="4" y="-0.5" width="1" height="1"/> <svg:text style="fill: fg; text-align: center; font-size: 2" x="4.5" y="0.5">U</svg:text> </svg:svg> </shape> produces a segmentation fault when opening a file that uses this shape. gdb where: Program received signal SIGSEGV, Segmentation fault. 0x405709cc in shape_info_getbyname () from /usr/lib/dia/libcustom_objects.so (gdb) where
+ Trace 33336
The svg:path element lacks a "/> at the end. When that is added, it loads in 0.90. Apart from that, I think this is related to 89640.
Created attachment 14007 [details] my .dia directory and a test file
Sorry, the path line didn't get pasted fully the first time arround... The following shape (without the path element) produces the same error with dia 0.90(I don't know XML as you see): <?xml version="1.0" encoding="UTF-8"?> <shape xmlns="http://www.daa.com.au/~james/dia-shape-ns" xmlns:svg="http://www.w3.org/2000/svg"> <name>Subsystem - UserTasks</name> <icon>UserTasks.png</icon> <connections> <point x="0.875" y="1.35"/> <point x="0.375" y="4.05"/> <point x="0.375" y="6.75"/> <point x="0.375" y="9.45"/> <point x="0.875" y="12.15"/> </connections> <aspectratio type="free"/> <svg:svg> <svg:rect style="fill: bg; stroke: bg" x="4" y="-0.5" width="1" height="1"/> <svg:text style="fill: fg; text-align: center; font-size: 2" x="4.5" y="0.5"> U </svg:text> </svg:svg> </shape> I attach a tar of my .dia directory and a test file...
It may indeed be related to 89640 as I don't have gsfonts installed, but dia crushes before it gets to complain about the fonts as it usually does.
*** This bug has been marked as a duplicate of 89640 ***