Bug#677601: libreoffice-core: Libreoffice crashes on start-up
Hi, This fix/workaround should be OK. However it seems to only treat the specific cause. Perhaps when permission denied is returned on non-critical checks (ure or anything else) a crash should be avoided and treated differently by libreoffice. Similar to how no such file is treated. Thanks for your prompt action. Regards, Cosmin On 10/22/2012 08:51 PM, Rene Engelhard wrote: tag 677601 + pending thanks Hi, On Mon, Oct 22, 2012 at 06:57:32PM +0200, Rene Engelhard wrote: On Mon, Oct 22, 2012 at 05:21:21PM +0200, Rene Engelhard wrote: So I quickly pointed upstream to your comment: 17:09 @_rene_ sberg: FYI: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677601#34 17:11 @sberg _rene_, that should ultimately become a non-issue with http://wiki.documentfoundation.org/Development/LibreOffice4#UNO_related_changes's drop support for /etc/opt/ure and ~/.ure, cf. ure/source/README 17:12 @_rene_ ah, nice. 17:12 @_rene_ have a patch for that already? (I'd then just backport it.) 17:12 -!- ricotz [~rico@ubuntu/member/ricotz] has joined #libreoffice-dev 17:13 * _rene_ knows Debian will never have a ure in /etc/opt/ure :) 17:13 @sberg _rene_, no, but it shouldn't be too difficult to grep for the relevant place(s) 17:13 @_rene_ yeah, will do. 17:13 @sberg _rene_, IIRC, its just mentioned in some .ini/rc files So fixing it in the same way even before LO4 (as we *do* know that we'll never have a /etc/opt/ure in Debian) by removing it now would also fix this.. $ grep -r etc\/opt /usr/lib/libreoffice/* /usr/lib/libreoffice/ure-link/lib/jvmfwk3rc:UNO_JAVA_JFW_SHARED_DATA=${URE_OVERRIDE_JAVA_JFW_SHARED_DATA} file:///etc/opt/ure/javasettings_${_OS}_${_ARCH}.xml /usr/lib/libreoffice/ure-link/lib/unorc:UNO_TYPES=${ORIGIN}/../share/misc/types.rdb ?file:///etc/opt/ure/types.rdb ?${SYSUSERHOME}/.ure/types.rdb ${URE_MORE_TYPES} /usr/lib/libreoffice/ure-link/lib/unorc:UNO_SERVICES=${ORIGIN}/../share/misc/services.rdb ?file:///etc/opt/ure/services.rdb ?${SYSUSERHOME}/.ure/services.rdb ${URE_MORE_SERVICES} Added as such to the tree. Will be in next upload. Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
On Tue, Oct 23, 2012 at 10:56:33AM +0300, Cosmin ANDREI wrote: specific cause. Perhaps when permission denied is returned on non-critical checks (ure or anything else) a crash should be avoided and ure IS critical. Without ure no LO. The point is that LO checks there (inherited by OOo) because of you can have it installed somewhere and the LO installed into /opt thing. You don't want to not-fail if /usr/lib/ure is (which is a Debian-ism!) broken for example. Just that we don't have something ure'ish in /etc/opt/ure. Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
I also had a similar issue. Note that it does not seem to be related to the ~/.config/libreoffice permissions. That was another bug. Error: $ libreoffice terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException' Analysis: strace -f -v -o stracelibre.txt libreoffice check the problem; solve it. In my case this was non root permissions for /etc/opt/ Solution: chown root:root /etc/opt/ the following may also be required: chmod o+r /etc/opt/ A bit of history: 1) OS This was a Debian stable Squeeze and then upgraded to Weezy. Right now: cat /etc/debian_version wheezy/sid uname -a Linux cosmin 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 i686 GNU/Linux 2) Info on libreoffice: ii libreoffice 1:3.5.4+dfsg-2 i386 office productivity suite 3) I also reinstalled all java components and libreoffice after the upgrade. Reproduction steps: - removed all ~/.config/libreoffice/ for account and for root For root user run it works, for non sudo user it fails. SOLUTION and ISSUE: After debugging and looking at a lot of DEV bull on existing bugs the strace was obvious. Sorry for libreoffice, but this needs to be fixed. So, because another program created /etc/opt/ with permissions other than root:root (will bring that up where needed) and no read flag for others, the strace showed: 4351 lstat64(/etc/opt/ure, 0xbf8ac678) = -1 EACCES (Permission denied) 4351 access(/etc/opt/ure/types.rdb, F_OK) = -1 EACCES (Permission denied) 4351 open(/etc/opt/ure/types.rdb, O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) 4351 open(/etc/opt/ure/types.rdb, O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied) 4351 futex(0xb752ab18, FUTEX_WAKE_PRIVATE, 2147483647) = 0 4351 munmap(0xb2cd7000, 1176064) = 0 4351 gettimeofday({1350912298, 273638}, NULL) = 0 4351 write(2, terminate called after throwing ..., 48) = 48 4351 write(2, com::sun::star::uno::RuntimeExce..., 37) = 37 4351 write(2, '\n, 2)= 2 4351 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 4351 tgkill(4351, 4351, SIGABRT) = 0 4351 --- SIGABRT (Aborted) @ 0 (0) --- 4352 +++ killed by SIGABRT +++ 4350 ... waitpid resumed [{WIFSIGNALED(s) WTERMSIG(s) == SIGABRT}], 0) = 4351 4350 --- SIGCHLD (Child exited) @ 0 (0) --- 4350 futex(0x9692fec, FUTEX_CMP_REQUEUE_PRIVATE, 1, 2147483647, 0x9693018, 2) = 1 4350 madvise(0xb610, 8372224, MADV_DONTNEED) = 0 4350 _exit(0) = ? 4334 ... futex resumed ) = 0 4334 futex(0x9693018, FUTEX_WAKE_PRIVATE, 1) = 0 4334 close(5) = 0 4334 futex(0xb7654be4, FUTEX_WAKE_OP_PRIVATE, 1, 1, 0xb7654be0, {FUTEX_OP_SET, 0, FUTEX_OP_CMP_GT, 1} unfinished ... 4346 ... restart_syscall resumed ) = 0 4346 futex(0xb7654a80, FUTEX_WAIT_PRIVATE, 2, NULL unfinished ... 4334 ... futex resumed ) = 1 4334 futex(0xb7654a80, FUTEX_WAKE_PRIVATE, 1 unfinished ... 4346 ... futex resumed ) = 0 4346 futex(0xb7654a80, FUTEX_WAKE_PRIVATE, 1) = 0 4346 madvise(0xb695d000, 8372224, MADV_DONTNEED) = 0 4346 _exit(0) = ? 4334 ... futex resumed ) = 1 4334 munmap(0xb694d000, 65536) = 0 4334 munmap(0xb715e000, 65536) = 0 4334 exit_group(134) = ? Even with the read flag added for others, this did not work as ls also complained: ls -la /etc/opt ls: cannot access /etc/opt/cisco-vpnclient: Permission denied ls: cannot access /etc/opt/..: Permission denied ls: cannot access /etc/opt/.: Permission denied total 0 d? ? ? ? ?? ./ d? ? ? ? ?? ../ d? ? ? ? ?? cisco-vpnclient/ Changing the permissions to root:root SOLVED the issue. Be this as it may, you should make sure that libreoffice does not crash when permission denied is encountered on /etc/opt/ as the ure data was not there anyway so no critical files missing, just some failed check. Regards, -- Cosmin -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
retitle 677601 RuntimeError on broken /etc/opt permissions forwarded 677601 Stephan Bergmann sberg...@redhat.com tag 677601 + upstream thanks Hi, On Mon, Oct 22, 2012 at 05:11:45PM +0300, Cosmin ANDREI wrote: Note that it does not seem to be related to the ~/.config/libreoffice permissions. That was another bug. Jup. [...] Sorry for libreoffice, but this needs to be fixed. I agree, but Cisco should not ship broken packages... So, because another program created /etc/opt/ with permissions other s/another/another binary-only, crappy program not in Debian/ ls: cannot access /etc/opt/cisco-vpnclient: Permission denied grr. Be this as it may, you should make sure that libreoffice does not crash when permission denied is encountered on /etc/opt/ as the ure data was not there anyway so no critical files missing, just some failed check. There should not be *anything* in /etc/opt, except for totally broken packages. But you have a point, LO should survive that... So I quickly pointed upstream to your comment: 17:09 @_rene_ sberg: FYI: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677601#34 17:11 @sberg _rene_, that should ultimately become a non-issue with http://wiki.documentfoundation.org/Development/LibreOffice4#UNO_related_changes's drop support for /etc/opt/ure and ~/.ure, cf. ure/source/README 17:12 @_rene_ ah, nice. 17:12 @_rene_ have a patch for that already? (I'd then just backport it.) 17:12 -!- ricotz [~rico@ubuntu/member/ricotz] has joined #libreoffice-dev 17:13 * _rene_ knows Debian will never have a ure in /etc/opt/ure :) 17:13 @sberg _rene_, no, but it shouldn't be too difficult to grep for the relevant place(s) 17:13 @_rene_ yeah, will do. 17:13 @sberg _rene_, IIRC, its just mentioned in some .ini/rc files So fixing it in the same way even before LO4 (as we *do* know that we'll never have a /etc/opt/ure in Debian) by removing it now would also fix this.. Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
Hi, On Mon, Oct 22, 2012 at 05:21:21PM +0200, Rene Engelhard wrote: So I quickly pointed upstream to your comment: 17:09 @_rene_ sberg: FYI: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677601#34 17:11 @sberg _rene_, that should ultimately become a non-issue with http://wiki.documentfoundation.org/Development/LibreOffice4#UNO_related_changes's drop support for /etc/opt/ure and ~/.ure, cf. ure/source/README 17:12 @_rene_ ah, nice. 17:12 @_rene_ have a patch for that already? (I'd then just backport it.) 17:12 -!- ricotz [~rico@ubuntu/member/ricotz] has joined #libreoffice-dev 17:13 * _rene_ knows Debian will never have a ure in /etc/opt/ure :) 17:13 @sberg _rene_, no, but it shouldn't be too difficult to grep for the relevant place(s) 17:13 @_rene_ yeah, will do. 17:13 @sberg _rene_, IIRC, its just mentioned in some .ini/rc files So fixing it in the same way even before LO4 (as we *do* know that we'll never have a /etc/opt/ure in Debian) by removing it now would also fix this.. $ grep -r etc\/opt /usr/lib/libreoffice/* /usr/lib/libreoffice/ure-link/lib/jvmfwk3rc:UNO_JAVA_JFW_SHARED_DATA=${URE_OVERRIDE_JAVA_JFW_SHARED_DATA} file:///etc/opt/ure/javasettings_${_OS}_${_ARCH}.xml /usr/lib/libreoffice/ure-link/lib/unorc:UNO_TYPES=${ORIGIN}/../share/misc/types.rdb ?file:///etc/opt/ure/types.rdb ?${SYSUSERHOME}/.ure/types.rdb ${URE_MORE_TYPES} /usr/lib/libreoffice/ure-link/lib/unorc:UNO_SERVICES=${ORIGIN}/../share/misc/services.rdb ?file:///etc/opt/ure/services.rdb ?${SYSUSERHOME}/.ure/services.rdb ${URE_MORE_SERVICES} Removing it there should fi^Wworkaround this. Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
tag 677601 + pending thanks Hi, On Mon, Oct 22, 2012 at 06:57:32PM +0200, Rene Engelhard wrote: On Mon, Oct 22, 2012 at 05:21:21PM +0200, Rene Engelhard wrote: So I quickly pointed upstream to your comment: 17:09 @_rene_ sberg: FYI: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=677601#34 17:11 @sberg _rene_, that should ultimately become a non-issue with http://wiki.documentfoundation.org/Development/LibreOffice4#UNO_related_changes's drop support for /etc/opt/ure and ~/.ure, cf. ure/source/README 17:12 @_rene_ ah, nice. 17:12 @_rene_ have a patch for that already? (I'd then just backport it.) 17:12 -!- ricotz [~rico@ubuntu/member/ricotz] has joined #libreoffice-dev 17:13 * _rene_ knows Debian will never have a ure in /etc/opt/ure :) 17:13 @sberg _rene_, no, but it shouldn't be too difficult to grep for the relevant place(s) 17:13 @_rene_ yeah, will do. 17:13 @sberg _rene_, IIRC, its just mentioned in some .ini/rc files So fixing it in the same way even before LO4 (as we *do* know that we'll never have a /etc/opt/ure in Debian) by removing it now would also fix this.. $ grep -r etc\/opt /usr/lib/libreoffice/* /usr/lib/libreoffice/ure-link/lib/jvmfwk3rc:UNO_JAVA_JFW_SHARED_DATA=${URE_OVERRIDE_JAVA_JFW_SHARED_DATA} file:///etc/opt/ure/javasettings_${_OS}_${_ARCH}.xml /usr/lib/libreoffice/ure-link/lib/unorc:UNO_TYPES=${ORIGIN}/../share/misc/types.rdb ?file:///etc/opt/ure/types.rdb ?${SYSUSERHOME}/.ure/types.rdb ${URE_MORE_TYPES} /usr/lib/libreoffice/ure-link/lib/unorc:UNO_SERVICES=${ORIGIN}/../share/misc/services.rdb ?file:///etc/opt/ure/services.rdb ?${SYSUSERHOME}/.ure/services.rdb ${URE_MORE_SERVICES} Added as such to the tree. Will be in next upload. Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
Hi, Same symptom for me on 3 different systems, after performing my regular apt-get upgrade (on Debian testing). I get error message terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException' (or, on one of the computers, a more explicit error message in a dialog window, that said there was a problem accessing a sub-directory of ~/.config/libreoffice). Indeed, on all 3 computers, ~/.config/libreoffice was owned by user root, group root after the upgrade (as well as its content). Running, as root, chown -R myusername.myusergroup .config/libreoffice fixed the problem for me, and allowed libreoffice to start again. Best regards, Jean-Guilhem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
On Sat, Jun 16, 2012 at 09:56:01AM +0200, Jean-Guilhem Cailton wrote: Same symptom for me on 3 different systems, after performing my regular No, I believe you don't. apt-get upgrade (on Debian testing). You mean apt-get dist-upgrade? On changing package dependencies as happened here you need dist-upgrade... I get error message terminate called after throwing an instance of 'com::sun::star::uno::RuntimeException' (or, on one of the computers, a more explicit error message in a dialog window, that said there was a problem accessing a sub-directory of ~/.config/libreoffice). Indeed, on all 3 computers, ~/.config/libreoffice was owned by user root, group root after the upgrade (as well as its content). Running, as root, chown -R myusername.myusergroup .config/libreoffice fixed the problem for me, and allowed libreoffice to start again. This sounds like a old bug which is fixed in recent packages (see #619263). Was that ~/.config/libreoffice freshly crreated/broken by the upgrade? But the original bug post doesn't talk about a RuntimeException and it has a real segfault judging from the backtrace. Whereas you have an instance of #619263. That said, I am waiting for the original poster to send an strace and eventual console ouput to find out what his actual problem is.. Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
Subject: libreoffice-core: Libreoffice crashes on start-up Package: libreoffice-core Version: 1:3.5.4-4 Severity: important After I updated the libreoffice suite to 1:3.5.4-4, libreoffice crashes immediately after start-up (or on resuming after file recovery). A backtrace is attached. -- Package-specific info: All deployed bundled extensions: Identifier: org.openoffice.da.writer2xhtml.oxt Version: 1.0.2 URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml is registered: yes Media-Type: application/vnd.sun.star.package-bundle Description: Writer2xhtml provides Writer and Calc export filters for XHTML and XHTML+MathML bundled Packages: { URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/writer2xhtml.rdb is registered: yes Media-Type: application/vnd.sun.star.uno-typelibrary;type=RDB Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/W2XDialogs/ is registered: yes Media-Type: application/vnd.sun.star.basic-library Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/Options.xcs is registered: yes Media-Type: application/vnd.sun.star.configuration-schema Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/writer2xhtml-filter.jar is registered: yes Media-Type: application/vnd.sun.star.uno-component;type=Java Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/w2x_types.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/w2x_filters.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2xhtml/Options.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: } Identifier: com.sun.star.PresentationMinimizer-linux_x86_64 Version: 1.0.3 URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/presentation-minimizer is registered: yes Media-Type: application/vnd.sun.star.package-bundle Description: The Presentation Minimizer is used to reduce the file size of the current presentation. Images will be compressed, and data that is no longer needed will be removed. The Presentation Minimizer can optimize the image quality size. Presentations designed for screen or projector do not require the same high quality as presentations designed for print. bundled Packages: { URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/presentation-minimizer/registry/schema/org/openoffice/Office/extension/SunPresentationMinimizer.xcs is registered: yes Media-Type: application/vnd.sun.star.configuration-schema Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/presentation-minimizer/SunPresentationMinimizer.uno.so is registered: yes Media-Type: application/vnd.sun.star.uno-component;type=native;platform=Linux_X86_64 Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/presentation-minimizer/registry/data/org/openoffice/Office/extension/SunPresentationMinimizer.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/presentation-minimizer/registry/data/org/openoffice/Office/Addons.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/presentation-minimizer/registry/data/org/openoffice/Office/ProtocolHandler.xcu is registered: yes Media-Type: application/vnd.sun.star.configuration-data Description: } Identifier: org.openoffice.da.writer2latex.oxt Version: 1.0.2 URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2latex is registered: yes Media-Type: application/vnd.sun.star.package-bundle Description: Writer2LaTeX provides Writer export filters for LaTeX and BibTeX bundled Packages: { URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2latex/writer2latex.rdb is registered: yes Media-Type: application/vnd.sun.star.uno-typelibrary;type=RDB Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2latex/W2LDialogs/ is registered: yes Media-Type: application/vnd.sun.star.basic-library Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2latex/Options.xcs is registered: yes Media-Type: application/vnd.sun.star.configuration-schema Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2latex/writer2latex-filter.jar is registered: yes Media-Type: application/vnd.sun.star.uno-component;type=Java Description: URL: vnd.sun.star.expand:$BUNDLED_EXTENSIONS/writer2latex/w2l_types.xcu is
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
tag 677601 + moreinfo tag 677601 + unreproducible thanks Hi, On Fri, Jun 15, 2012 at 11:18:37AM +0200, Andreas Schmidt wrote: After I updated the libreoffice suite to 1:3.5.4-4, libreoffice crashes immediately after start-up (or on resuming after file recovery). A backtrace is attached. And strace of soffice.bin, please? (To know what it does when it crashes - from the bt it looks like it tries to handle the config dir and/or the config inside some extension). Can you also move your user profile(s) away and look whether that makes it work? (That said, it obviously starts/works for me.) Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#677601: libreoffice-core: Libreoffice crashes on start-up
Hi, On Fri, Jun 15, 2012 at 11:21:44AM +0200, Rene Engelhard wrote: On Fri, Jun 15, 2012 at 11:18:37AM +0200, Andreas Schmidt wrote: After I updated the libreoffice suite to 1:3.5.4-4, libreoffice crashes immediately after start-up (or on resuming after file recovery). A backtrace is attached. [...] And strace of soffice.bin, please? (To know what it does when it crashes - from the bt it looks like it tries to handle the config dir and/or the config inside some extension). That said - and what I forgot to say - this is weird if this was the case as from 3.5.4-3 to -4 there was no change in config stuff or config migration... Or ii fglrx-driver 1:12-6~beta-1 try with a sane driver? :) (any flgry and/or nvidia specific bug is per definiton non-existant/ a bug in those drivers) Regards, Rene -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org