Public bug reported:

Note: this is a bug that has been reported and fixed upstream already:
https://gitlab.gnome.org/GNOME/pango/-/issues/825
https://gitlab.gnome.org/GNOME/pango/-/merge_requests/777
https://gitlab.gnome.org/GNOME/pango/-/merge_requests/772
but is still present on Ubuntu 24.04 at least (libpango-1.0.0 version: 
1.52.1+ds-1build1)

It has also been reported for the kubuntu-settings package:
https://bugs.launchpad.net/ubuntu/+source/kubuntu-settings/+bug/2089470
however, ideally, it could be fixed in Pango (it should not crash even if a 
config file is invalid)


To reproduce:

1. Add the following to your fonts config:
```
  <match target="scan">
    <test name="family">
        <string>Symbola</string>
    </test>
    <!-- <test name="prgname">
        <string>firefox</string>
    </test> -->
    <!-- <edit name="family" mode="delete" /> -->
    <edit name="file" mode="delete" />
  </match>

  <match target="scan">
    <test name="family" >
        <string>Noto Sans Symbols2</string>
    </test>
    <!-- <test name="prgname">
        <string>firefox</string>
    </test> -->
    <edit name="family" mode="prepend">
        <string>Symbola</string>
    </edit>
  </match>
```

2. Verify that the Symbola font does not have a font file anymore:
```
fc-match Symbola
<unknown filename>: "Symbola" "Regular"
```

3. Crash in Pango when trying to use the font, e.g. with:
```
pango-view --dpi=300 --header --font Symbola --text abc
```
or even:
```
pango-view --dpi=300 --header --text 🐱🐱
```

The crash also happens in apps using Pango when trying to show emojis;
e.g. see the original report I received for Cairo-Dock:
https://github.com/Cairo-Dock/cairo-dock-core/issues/201

** Affects: pango1.0 (Ubuntu)
     Importance: Undecided
         Status: Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137511

Title:
  Crash in pango_coverage_get () for font without a valid file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pango1.0/+bug/2137511/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to