Bug 34711 - Java extension crashes LibreOffice
Summary: Java extension crashes LibreOffice
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
(earliest affected)
3.3.1 RC1
Hardware: Other Linux (All)
: medium major
Assignee: Not Assigned
Depends on:
Reported: 2011-02-25 04:09 UTC by Kami
Modified: 2012-01-12 05:34 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

Zipped logfiles (393.28 KB, application/zip)
2011-02-25 04:09 UTC, Kami
Logs with sun-java installed (partner repo) and selected in LibO (121.05 KB, application/zip)
2011-03-07 07:35 UTC, Kami

Note You need to log in before you can comment on or make changes to this bug.
Description Kami 2011-02-25 04:09:26 UTC
Created attachment 43792 [details]
Zipped logfiles


I tried several machine (Ubuntu 32/64 bit 10.10) And it seems java extensions crashes LibreOffice.

The logfiles start with (all logfile attached as zip)

 A fatal error has been detected by the Java Runtime Environment:
#  SIGSEGV (0xb) at pc=0x00007fc8603844ac, pid=10232, tid=140498621150976
# JRE version: 6.0_20-b20
# Java VM: OpenJDK 64-Bit Server VM (19.0-b09 mixed mode linux-amd64 compressed oops)
# Derivative: IcedTea6 1.9.5
# Distribution: Ubuntu 10.10, package 6b20-1.9.5-0ubuntu1
# Problematic frame:
# C  [libuno_cppuhelpergcc3.so.3+0x224ac]  _ZN4cppu14throwExceptionERKN3com3sun4star3uno3AnyE+0x2ac

Other Java apps (ex. in the browser works well)
Comment 1 Kami 2011-02-25 04:10:34 UTC
These crashes occure mainly when I close one open window when more LO window open with different documents.
Comment 2 Björn Michaelsen 2011-02-26 07:07:53 UTC
added lp696532 as this is likely the root cause
Comment 3 Don't use this account, use tml@iki.fi 2011-03-03 09:14:31 UTC
Bjoern, do you want to take this bug?
Comment 4 Björn Michaelsen 2011-03-03 11:07:34 UTC
I currently cannot reproduce this the way I could before (my smoketests dies on exit). I would need a reproducible scenario to trigger the bug before going on.
Comment 5 Björn Michaelsen 2011-03-03 12:22:52 UTC
I just was "happy" enough to be hit by this error while running LO under gdb. Unfortunately, the backtrace ends not in LO but in openjdk:

#0 0x00007fffcf40765a in InterpreterRuntime::monitorexit(JavaThread*, BasicObjectLock*) () from /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libjvm.so

I did not have debug symbols there, so not much joy ...
Comment 6 Kami 2011-03-03 12:25:37 UTC
Should I try with Partners' repo: sun-java?
Comment 7 Björn Michaelsen 2011-03-03 12:40:05 UTC
@KAMI: Please do! If we can isolate this issue to being OpenJDK only, that would be a huge step already!
Comment 8 Kami 2011-03-04 03:48:05 UTC
However I tested it during half day it not produced java crash. I continue to test it.

Linux d 2.6.35-27-generic #48-Ubuntu SMP Tue Feb 22 20:25:46 UTC 2011 x86_64 GNU/Linux
ii  sun-java6-jre                                         6.24-1build0.10.10.1

LibreOffice 3.3.1 
OOO330m19 (Build:8)
tag libreoffice-
Comment 9 Kami 2011-03-07 07:35:07 UTC
Created attachment 44197 [details]
Logs with sun-java installed (partner repo) and selected in LibO
Comment 10 Kjelin 2011-03-31 14:36:05 UTC
My LibreOffice application is crashing as well. It could be the same problem as you are addressing here, but I'm unsure how to check it. Could you help me?

By the way, I'm running LibreOffice on a Ubuntu 10.04 and LibreOffice is regularly updated.
Got this log message in /var/log/syslog
> Mar 31 23:06:32 localhost kernel: [36778.672809] soffice.bin[20237] general protection ip:7f22e43cbf0e sp:7fff318b53b0 error:0 in libuno_cppuhelpergcc3.so.3[7f22e43ac000+9e000]
Comment 11 Michael Meeks 2011-04-08 06:31:10 UTC
Just to confirm - you're not building your binaries against gcj are you ?
Comment 12 Björn Michaelsen 2011-04-08 08:05:30 UTC
@mmeeks: Oh yes, we (Ubuntu/Debian) are building with gjc! It would be half the fun without that.

And yes, not doing that might sure save us from a lot of Heisenbugs.

I will test the politics of that.
Comment 13 Kami 2011-04-08 21:39:26 UTC
(In reply to comment #11)
> Just to confirm - you're not building your binaries against gcj are you ?

I am using latest sun-java JDK for build
Comment 14 Björn Michaelsen 2011-12-22 06:30:21 UTC
Removing jvmcrash whiteboard status, disowning as not Ubuntu specific.
Comment 15 Björn Michaelsen 2011-12-23 11:43:02 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 16 Björn Michaelsen 2012-01-12 05:34:28 UTC
Cant reproduce with 3.5.0beta2 => WORKSFORME