mono / libgdiplus

C-based implementation of the GDI+ API
http://www.mono-project.com/
MIT License
329 stars 171 forks source link

Unit test `testfont` crashed on Debian 11. #738

Open xkszltl opened 2 years ago

xkszltl commented 2 years ago

This is specific to Debian 11. Ubuntu 18.04 and CentOS 7 doesn't seem to have the issue.

We installed all stock fonts.

Making check in src                                                                                                                                                                                                                                           
make[1]: Entering directory '/tmp/scratch/libgdiplus/src'                                                                                                                                                                                                     
make[1]: Nothing to be done for 'check'.                                                                                                                                                                                                                      
make[1]: Leaving directory '/tmp/scratch/libgdiplus/src'                                                                                                                                                                                                      
Making check in tests                                                                                                                                                                                                                                         
make[1]: Entering directory '/tmp/scratch/libgdiplus/tests'                                                                                                                                                                                                   
make  check-TESTS                                                                                                                                                                                                                                             
make[2]: Entering directory '/tmp/scratch/libgdiplus/tests'                                                                                                                                                                                                   
make[3]: Entering directory '/tmp/scratch/libgdiplus/tests'                                                                                                                                                                                                   
PASS: testmatrix                                                                                                                                                                                                                                              
PASS: testicocodec                                                                                                                                                                                                                                            
PASS: testhatchbrush                                                                                                                                                                                                                                          
PASS: testmetafile                                                                                                                                                                                                                                            
PASS: testpen                                                                                                                                                                                                                                                 
PASS: teststringformat                                                                                                                                                                                                                                        
PASS: testbits                                                                                                                                                                                                                                                
PASS: testjpegcodec                                                                                                                                                                                                                                           
PASS: testlineargradientbrush                                                                                                                                                                                                                                 
PASS: testadjustablearrowcap                                                                                                                                                                                                                                  
PASS: testsolidbrush                                                                                                                                                                                                                                          
PASS: testreversepath                                                                                                                                                                                                                                         
PASS: testcodecs                                                                                                                                                                                                                                              
PASS: testimageattributes                                                                                                                                                                                                                                     
PASS: testbrush                                                                                                                                                                                                                                               
PASS: testcustomlinecap                                                                                                                                                                                                                                       
PASS: testpathgradientbrush                                                                                                                                                                                                                                   
PASS: testwmfcodec                                                                                                                                                                                                                                            
PASS: testgifcodec                                                                                                                                                                                                                                            
PASS: testpng                                                                                                                                                                                                                                                 
PASS: testemfcodec                                                                                                                                                                                                                                            
PASS: testbmpcodec                                                                                                                                                                                                                                            
PASS: testpngcodec                                                                                                                                                                                                                                            
PASS: testclip                                                                                                                                                                                                                                                
PASS: testgpimage                                                                                                                                                                                                                                             
PASS: testbitmap                                                                                                                                                                                                                                              
PASS: testregion                                                                                                                                                                                                                                              
PASS: testtext                                                                                                                                                                                                                                                
PASS: testtiffcodec                                                                                                                                                                                                                                           
PASS: testgraphicspath                                                                                                                                                                                                                                        
../test-driver: line 109: 76048 Aborted                 (core dumped) "$@" > $log_file 2>&1                                                                                                                                                                   
FAIL: testfont                                                                                                                                                                                                                                                
PASS: testgraphics                                                                                                                                                                                                                                            
PASS: testgraphicsfill                                                                                                                                                                                                                                        
PASS: testgeneral                                                                                                                                                                                                                                             
PASS: testtexturebrush                                                                                                                                                                                                                                        
PASS: testgraphicsdraw                                                                                                                                                                                                                                        
============================================================================                                                                                                                                                                                  
Testsuite summary for libgdiplus 6.1                                                                                                                                                                                                                          
============================================================================                                                                                                                                                                                  
# TOTAL: 36                                                                                                                                                                                                                                                   
# PASS:  35                                                                                                                                                                                                                                                   
# SKIP:  0                                                                                                                                                                                                                                                    
# XFAIL: 0                                                                                                                                                                                                                                                    
# FAIL:  1                                                                                                                                                                                                                                                    
# XPASS: 0                                                                                                                                                                                                                                                    
# ERROR: 0                                                                                                                                                                                                                                                    
============================================================================                                                                                                                                                                                  
See tests/test-suite.log                                                                                                                                                                                                                                      
Please report to https://github.com/mono/mono/issues/new                                                                                                                                                                                                      
============================================================================                                                                                                                                                                                  

If we run is directly:

root@023e1a839e2c:/tmp/scratch/libgdiplus/tests# ./testfont 
testfont: testfont.c:895: verifyFontFamily: Assertion `stringsEqual (name, expectedName) || stringsEqual (name, alternateExpectedName)' failed.
Aborted (core dumped)