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@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

** 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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/820134

Title:
  libfontconfig causes SIGBUS due to mmap and NFS interaction.

To manage notifications about this bug go to:
https://bugs.launchpad.net/fontconfig/+bug/820134/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to