After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 104872 - segfault using custom shapes with text
segfault using custom shapes with text
Status: RESOLVED DUPLICATE of bug 89640
Product: dia
Classification: Other
Component: general
0.90
Other Linux
: Normal major
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2003-01-31 00:49 UTC by raiman
Modified: 2004-05-20 19:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
my .dia directory and a test file (5.30 KB, application/octet-stream)
2003-01-31 22:57 UTC, raiman
Details

Description raiman 2003-01-31 00:49:03 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
  • #0 shape_info_getbyname
    from /usr/lib/dia/libcustom_objects.so
  • #1 shape_info_getbyname
    from /usr/lib/dia/libcustom_objects.so
  • #2 display_set_active
  • #3 layer_render
  • #4 data_render
  • #5 ddisplay_render_pixmap
  • #6 ddisplay_add_update
  • #7 g_timeout_add
    from /usr/lib/libglib-1.2.so.0
  • #8 g_get_current_time
    from /usr/lib/libglib-1.2.so.0
  • #9 g_get_current_time
    from /usr/lib/libglib-1.2.so.0
  • #10 g_main_run
    from /usr/lib/libglib-1.2.so.0
  • #11 gtk_main
    from /usr/lib/libgtk-1.2.so.0
  • #12 main
  • #13 __libc_start_main
    from /lib/libc.so.6

Comment 1 Lars Clausen 2003-01-31 01:43:01 UTC
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.
Comment 2 raiman 2003-01-31 22:57:44 UTC
Created attachment 14007 [details]
my .dia directory and a test file
Comment 3 raiman 2003-01-31 22:59:16 UTC
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...
Comment 4 raiman 2003-01-31 23:07:12 UTC
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.
Comment 5 Hans Breuer 2004-05-20 19:32:04 UTC

*** This bug has been marked as a duplicate of 89640 ***