https://bugzilla.redhat.com/show_bug.cgi?id=2342257

            Bug ID: 2342257
           Summary: Software using fontconfig crashes in
                    FT_Stream_ReadULong
           Product: Fedora
           Version: 41
                OS: Linux
            Status: NEW
         Component: fontconfig
          Keywords: Desktop, Regression
          Severity: urgent
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected],
                    [email protected],
                    [email protected], [email protected],
                    [email protected], [email protected]
  Target Milestone: ---
    Classification: Fedora



Several programs using fontconfig are crashing.

This can be reproduced with fc-cache

'gdb --args /usr/bin/fc-cache-64 -f' yields

#0  FT_Stream_ReadULong (stream=0x555555617450, error=0x7fffffffc7f0) at
/usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/base/ftstream.c:659
#1  0x00007ffff7cc6f13 in sfnt_open_font (stream=0x555555617450,
face=<optimized out>, face_instance_index=<synthetic pointer>,
woff2_num_faces=<synthetic pointer>)
    at /usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/sfnt/sfobjs.c:384
#2  sfnt_init_face (stream=<optimized out>, face=<optimized out>,
face_instance_index=0, num_params=<optimized out>, params=<optimized out>)
    at /usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/sfnt/sfobjs.c:562
#3  0x00007ffff7c9c7d1 in tt_face_init (stream=0x555555617450,
ttface=0x5555555f0680, face_index=0, num_params=0, params=0x0)
    at /usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/truetype/ttobjs.c:693
#4  0x00007ffff7c7c32d in open_face (driver=driver@entry=0x55555562c960,
astream=astream@entry=0x7fffffffcb50, 
    anexternal_stream=anexternal_stream@entry=0x7fffffffcb47 "",
face_index=face_index@entry=0, num_params=0, params=0x0, aface=0x7fffffffcb48)
    at /usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/base/ftobjs.c:1556
#5  0x00007ffff7c81a41 in ft_open_face_internal (library=0x5555555991b0,
args=args@entry=0x7fffffffcd40, face_index=face_index@entry=0, 
    aface=aface@entry=0x7fffffffce20, test_mac_fonts=test_mac_fonts@entry=1
'\001') at /usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/base/ftobjs.c:2648
#6  0x00007ffff7c825b2 in FT_New_Face (library=<optimized out>,
pathname=pathname@entry=0x5555555f0490
"/usr/share/fonts/google-noto/NotoSans-MediumItalic.ttf", 
    face_index=face_index@entry=0, aface=aface@entry=0x7fffffffce20) at
/usr/src/debug/freetype-2.13.3-1.fc41.x86_64/src/base/ftobjs.c:1622
#7  0x00007ffff7f4817e in IA__FcFreeTypeQueryAll
(file=file@entry=0x5555555f0490
"/usr/share/fonts/google-noto/NotoSans-MediumItalic.ttf",
id=id@entry=4294967295, 
    blanks=blanks@entry=0x0, count=count@entry=0x0,
set=set@entry=0x555555560a60) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fcfreetype.c:2343
#8  0x00007ffff7f48771 in FcFileScanFontConfig (set=0x555555560a60,
file=0x5555555f0490 "/usr/share/fonts/google-noto/NotoSans-MediumItalic.ttf", 
    config=0x555555560570) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fcdir.c:81
#9  FcFileScanConfig (set=set@entry=0x555555560a60,
dirs=dirs@entry=0x555555572a10, file=0x5555555f0490
"/usr/share/fonts/google-noto/NotoSans-MediumItalic.ttf", 
    config=config@entry=0x555555560570) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fcdir.c:159
#10 0x00007ffff7f48d0c in FcDirScanConfig (set=set@entry=0x555555560a60,
dirs=dirs@entry=0x555555572a10, dir=dir@entry=0x5555555e5a00
"/usr/share/fonts/google-noto", 
    force=force@entry=1, config=config@entry=0x555555560570) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fcdir.c:274
#11 0x00007ffff7f48f76 in FcDirCacheScan (dir=0x5555555e5a00
"/usr/share/fonts/google-noto", config=0x555555560570)
    at /usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fcdir.c:354
#12 0x00007ffff7f3fc12 in IA__FcDirCacheRead (dir=<optimized out>,
force=<optimized out>, config=0x555555560570)
    at /usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fcdir.c:464
#13 FcConfigAddDirList (config=config@entry=0x555555560570,
set=set@entry=FcSetSystem, dirSet=0x555555560680)
    at /usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fccfg.c:509
#14 0x00007ffff7f3c9c7 in IA__FcConfigBuildFonts
(config=config@entry=0x555555560570) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fccfg.c:543
#15 0x00007ffff7f410c0 in IA__FcConfigSetCurrent
(config=config@entry=0x555555560570) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/src/fccfg.c:564
#16 0x00005555555557a8 in main (argc=<optimized out>, argv=0x7fffffffd3a8) at
/usr/src/debug/fontconfig-2.15.0-8.fc41.x86_64/fc-cache/fc-cache.c:386

This is particularly nasty since it also affects kwin_wayland/SDDM, so booting
into a graphical session is broken.

It can be worked around by removing some font files

sudo mv /usr/share/fonts/google-noto/NotoSans-MediumItalic.ttf . 
sudo mv /usr/share/fonts/dejavu-sans-fonts/DejaVuSans.ttf . 







Reproducible: Always


-- 
You are receiving this mail because:
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2342257

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202342257%23c0

-- 
_______________________________________________
fonts-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to