← Back to team overview

desktop-packages team mailing list archive

[Bug 745836] Re: encrypted swap corrupts application stack/heap [was: soffice.bin SIGSEGV cppu::throwException()]

 

hello all, here is my "solution".

i have been struggling for several months with the same problem, my system is a common ubuntu 11.04 with a default encrypted home and thus an encrypted swap:
luca@idle:~$ uname -a
Linux idle 2.6.38-11-generic #50-Ubuntu SMP Mon Sep 12 21:18:14 UTC 2011 i686 i686 i386 GNU/Linux

i have just 1gb of ram, so a continue swap is normal for me with several applications open.
libreoffice used to crash continuously after few minutes of idle periods or even few minutes i wasn't use it when open on a document, or a presentation, or a database, or a spreadsheet. every time i used to leave libreoffice opened few minutes without any activity on it it crashed, 100% of times.

now, following the suggestion of andrei but in a simpler way i tried to
move outside the encrypted area just the personal configuration settings
folder of libreoffice, this way:

(i am in my home folder)
luca@idle:~$ sudo mkdir /home/unencryted
luca@idle:~$ sudo chown luca.luca /home/unencrypted
luca@idle:~$ mv .libreoffice /home/unencrypted/
luca@idle:~$ ln -s /home/unencrypted/.libreoffice .

i don't need to set the HOME env in that unencrypted folder before
starting libreoffice, what is above is everything i made.

now the problem seems definitely gone away, it doesn't seem to crash
anymore

i hope this may help someone.
luca

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to libreoffice in Ubuntu.
https://bugs.launchpad.net/bugs/745836

Title:
  encrypted swap corrupts application stack/heap [was: soffice.bin
  SIGSEGV cppu::throwException()]

Status in LibreOffice Productivity Suite:
  Won't Fix
Status in “ecryptfs-utils” package in Ubuntu:
  Confirmed
Status in “libreoffice” package in Ubuntu:
  Invalid
Status in “linux” package in Ubuntu:
  Incomplete
Status in “openoffice.org” package in Ubuntu:
  Won't Fix
Status in “ecryptfs-utils” source package in Oneiric:
  Confirmed
Status in “libreoffice” source package in Oneiric:
  Invalid
Status in “linux” source package in Oneiric:
  Incomplete
Status in “openoffice.org” source package in Oneiric:
  Won't Fix

Bug description:
  Binary package hint: libreoffice

  1) lsb_release -rd
  Description:	Ubuntu 11.04
  Release:	11.04

  2) apt-cache policy libreoffice-calc
  libreoffice-calc:
    Installed: 1:3.3.3-1ubuntu2
    Candidate: 1:3.3.3-1ubuntu2
    Version table:
   *** 1:3.3.3-1ubuntu2 0
          100 /var/lib/dpkg/status
       1:3.3.2-1ubuntu5 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
       1:3.3.2-1ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

  apt-cache policy libreoffice-writer
  libreoffice-writer:
    Installed: 1:3.3.3-1ubuntu2
    Candidate: 1:3.3.3-1ubuntu2
    Version table:
   *** 1:3.3.3-1ubuntu2 0
          100 /var/lib/dpkg/status
       1:3.3.2-1ubuntu5 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty-updates/main i386 Packages
       1:3.3.2-1ubuntu4 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty/main i386 Packages

  3) What is expected to happen in a KDE Natty in a KDE session with the
  KDE integration active or GNOME is a Writer or Calc file untouched for
  a long period of time (ex. 1 hour+) is when one tries to edit it, the
  application does not crash.

  4) What happens instead is it crashes. This is highly correlated to
  both EcryptfsInUse and resource constrained (Memory & CPU >> 50%)
  environments. Occurs with:

  + Intel drivers, Compiz not enabled, Writer open only bug 745836
  + binary ATI drivers, Compiz enabled, Calc open only bug 799047

  WORKAROUND: Use Gnumeric.

  apt-cache policy gnumeric
  gnumeric:
    Installed: 1.10.13-1ubuntu1
    Candidate: 1.10.13-1ubuntu1
    Version table:
   *** 1.10.13-1ubuntu1 0
          500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
          100 /var/lib/dpkg/status

  ProblemType: Crash
  DistroRelease: Ubuntu 11.04
  Package: libreoffice-core 1:3.3.2-1ubuntu2
  ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
  Uname: Linux 2.6.38-7-generic i686
  Architecture: i386
  Date: Wed Mar 30 12:34:39 2011
  Disassembly: => 0x100000:	Cannot access memory at address 0x100000
  EcryptfsInUse: Yes
  ExecutablePath: /usr/lib/libreoffice/program/soffice.bin
  ProcCmdline: /usr/lib/libreoffice/program/soffice.bin -writer -splash-pipe=5
  ProcEnviron:
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SegvAnalysis:
   Segfault happened at: 0x100000:	Cannot access memory at address 0x100000
   PC (0x00100000) not located in a known VMA region (needed executable region)!
  SegvReason: executing unknown VMA
  Signal: 11
  SourcePackage: libreoffice
  StacktraceTop:
   ?? ()
   cppu::throwException(com::sun::star::uno::Any const&) () from /usr/lib/libreoffice/program/../basis-link/program/../ure-link/lib/libuno_cppuhelpergcc3.so.3
   ucbhelper::cancelCommandExecution(com::sun::star::ucb::IOErrorCode, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandEnvironment> const&, rtl::OUString const&, com::sun::star::uno::Reference<com::sun::star::ucb::XCommandProcessor> const&) () from /usr/lib/libreoffice/program/../basis-link/program/libucbhelper4gcc3.so
   ?? () from /usr/lib/libreoffice/program/../basis-link/program/libucpfile1.so
   ?? () from /usr/lib/libreoffice/program/../basis-link/program/libucpfile1.so
  Title: soffice.bin crashed with SIGSEGV in cppu::throwException()
  UpgradeStatus: Upgraded to natty on 2011-03-29 (0 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/df-libreoffice/+bug/745836/+subscriptions


Follow ups