libfontconfig causes SIGBUS due to mmap and NFS interaction.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fontconfig |
Fix Released
|
High
|
|||
fontconfig (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
https:/
Summarized:
man mmap specifies the occasions when sigbus is sent:
SIGBUS Attempted access to a portion of the buffer that does not correspond to the file (for
cated the file).
If users are using homedirectories on NFS; a simple NFS failure may cause a file size to change.
Users originally reported this problem running eclipse and seeing 3-4 crashes per day.
I believe the workaround we are proposing is to modify /etc/fonts/
<!-- Font cache directory list -->
<config>
and just remove the ~/.fontconfig section (possibly replacing it with something on local disk if that is supported.)
antarus@goats2 /etc/fonts $ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
antarus@goats2 /etc/fonts $ apt-cache policy fontconfig
fontconfig:
Installed: 2.8.0-2ubuntu1
Candidate: 2.8.0-2ubuntu1
I expect fontconfig to handle mmap's properly. Upstream is aware of the problem but I don't see a fix yet.
The application SIGBUS's
Changed in fontconfig: | |
importance: | Unknown → High |
status: | Unknown → Confirmed |
Changed in fontconfig: | |
status: | Confirmed → Fix Released |
ref https:/ /bugs.kde. org/show_ bug.cgi? id=272870
fontconfig's usage of mmap may lead to sigbus when the mapped file disappears, e.g. due to an NFS failure. this is fatal if the crashed application happens to be the screensaver.
consequently, it should be possible to disable mmap use alltogether.