[Bug 820134] [NEW] libfontconfig causes SIGBUS due to mmap and NFS interaction.
Alec Warner
820134 at bugs.launchpad.net
Wed Aug 3 00:59:14 UTC 2011
Public bug reported:
https://bugs.freedesktop.org/show_bug.cgi?id=39278
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
example, beyond the end of the file, including the case where another process has trun‐
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/fonts.conf
<!-- Font cache directory list -->
<cachedir>/var/cache/fontconfig</cachedir>
<cachedir>~/.fontconfig</cachedir>
<config>
and just remove the ~/.fontconfig section (possibly replacing it with something on local disk if that is supported.)
antarus at goats2 /etc/fonts $ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
antarus at 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
** Affects: fontconfig
Importance: Unknown
Status: Unknown
** Affects: fontconfig (Ubuntu)
Importance: Undecided
Status: New
** Bug watch added: freedesktop.org Bugzilla #39278
http://bugs.freedesktop.org/show_bug.cgi?id=39278
** Also affects: fontconfig via
http://bugs.freedesktop.org/show_bug.cgi?id=39278
Importance: Unknown
Status: Unknown
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to fontconfig in Ubuntu.
https://bugs.launchpad.net/bugs/820134
Title:
libfontconfig causes SIGBUS due to mmap and NFS interaction.
Status in Fontconfig - Font Configuration Library:
Unknown
Status in “fontconfig” package in Ubuntu:
New
Bug description:
https://bugs.freedesktop.org/show_bug.cgi?id=39278
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
example, beyond the end of the file, including the case where another process has trun‐
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/fonts.conf
<!-- Font cache directory list -->
<cachedir>/var/cache/fontconfig</cachedir>
<cachedir>~/.fontconfig</cachedir>
<config>
and just remove the ~/.fontconfig section (possibly replacing it with something on local disk if that is supported.)
antarus at goats2 /etc/fonts $ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04
antarus at 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
To manage notifications about this bug go to:
https://bugs.launchpad.net/fontconfig/+bug/820134/+subscriptions
More information about the foundations-bugs
mailing list