linux-image-4.13.0-12-generic, linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic | Regression: many user-space apps crashing

Bug #1699772 reported by Gunter Ohrner
376
This bug affects 60 people
Affects Status Importance Assigned to Milestone
LibreOffice
Won't Fix
Critical
linux (Debian)
Fix Released
Unknown
linux (Ubuntu)
Incomplete
Critical
Unassigned
Xenial
Incomplete
Critical
Unassigned
Artful
Won't Fix
Critical
Unassigned
Bionic
Fix Released
Critical
Unassigned

Bug Description

Distribution: Ubuntu 16.04 x64 (Flavour: KDE Neon User Edition 5.10)

linux-image-4.4.0-81-generic appears to contain a regression, probably related to the CVE-2017-1000364 fix backport / patch.

Using this kernel, the Oracle Java browser plugin always crashes during stack-related actions on initialization. This means, the plugin completely stopped working.

It works perfectly fine in linux-image-4.4.0-79-generic (vurlerable to CVE-2017-1000364) as well as linux-image-4.11.6-041106-generic, which also contains a fix for CVE-2017-1000364.

uname -a:

> Linux Zweiblum 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

I tested Oracle Java 1.8 u131 as well as 1.6 u64 in Firefox 51.0.1 as well as Iceweasel / Firefox/3.5.16 in a chroot.

Using linux-image-4.4.0-81-generic it crashes in all combinations while with both other kernels it works.

I was not able to obtain any detailed crash information from Firefox 51.0.1, but Iceweasel 3.5.16 crashed completely, allowing me to obtain a stack trace which shows the relation to stack operations performed by the plugin, even without proper debug symbols:

> (gdb) bt full
> #0 0x00007fa06d805307 in _expand_stack_to(unsigned char*) () from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> No symbol table info available.
> #1 0x00007fa06d8053ae in os::Linux::manually_expand_stack(JavaThread*, unsigned char*) ()
> from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> No symbol table info available.
> #2 0x00007fa06d80cf0b in JVM_handle_linux_signal () from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> No symbol table info available.
> #3 0x00007fa06d802e13 in signalHandler(int, siginfo*, void*) () from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> No symbol table info available.
> #4 <signal handler called>

I first assumed a bug in the Java plugin, but it works fine in Linux 4.11.6.

The crash will be triggered by any applet, for example the test applet at:

* https://java.com/en/download/installed8.jsp

I'm running the Ubuntu 16.04 based KDE Neon distribution which somehow apparently does not allow me to use apport to report this bug:

> $ LANG= apport-cli linux-image-4.4.0-81-generic
>
> *** Collecting problem information
>
> The collected information can be sent to the developers to improve the
> application. This might take a few minutes.
> .........
>
> *** Problem in linux-image-4.4.0-81-generic
>
> The problem cannot be reported:
>
> This is not an official KDE package. Please remove any third party package and try again.

If someone can tell me how to get apport working for this package, I can use it to collect additional information, but (unfortunately?) the problem should be fairly easy to reproduce...

CVE References

Revision history for this message
In , Xv3247 (xv3247) wrote :

Created attachment 134111
starting backtrace with scalc

I started scalc V6.0.0.0alpha1 with backtrace
and it crashed
its not always reproduced

Gunter Ohrner (gohrner)
affects: mesa (Ubuntu) → linux (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Jarda Sladek (jaroslav-sladek) wrote :

The same bug appears on 17.04. 4.10.0-24-generic, which contains CVE-2017-1000364 fix, causes Oracle java plugin to crash. 4.10.0-22-generic, in exactly the same setup, works fine. The console error from Firefox (what most users will see) is

###!!! [Parent][MessageChannel::Call] Error: Channel error: cannot send/recv

This makes Java Plugin on latest version of Ubuntu completely unusable.

Revision history for this message
Yuexiang Zhang (xfeep) wrote :

This bug affects not only Oracle Java plugin but also those applications based on JNI Invocation API. Here is a very simple example to reproduce it.

#include <jni.h>

int main(int argc, char *args[]) {
     JavaVM *jvm;
     JNIEnv *env;
     JavaVMInitArgs vm_args;
     JavaVMOption options [1];
     options[0].optionString = "-Djava.class.path=/usr/lib/java";
     vm_args.version = JNI_VERSION_1_6;
     vm_args.nOptions = 1;
     vm_args.options = options;
     vm_args.ignoreUnrecognized = 0;

     JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args); //crash at this line
            /**............**/

     (*jvm)->DestroyJavaVM(jvm);
            return 0;
}

Norbert (nrbrtx)
tags: added: xenial
Revision history for this message
Damjan Jovanovic (damjan-jov) wrote :

This is a ***MASSIVE REGRESSION*** affecting many or even all native applications that use the Java Invocation API, including at least Eclipse (crashes a few seconds after startup), and LibreOffice Base with any JDBC database connector (instant crash as soon as it tries to load the JVM).

Revision history for this message
Moritz Bechler (bechler) wrote :

This should affect all embedded java uses which launch the JVM on the main thread (the regular java launcher does not do that) and is caused by the known buggy (http://www.openwall.com/lists/oss-security/2017/06/22/6) custom CVE-2017-1000364 fix. Testing the upstream patch on debian it seems to be fine (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865549).

Revision history for this message
nezero (nezero) wrote :
nezero (nezero)
no longer affects: commons-daemon (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in commons-daemon (Ubuntu):
status: New → Confirmed
Changed in eclipse (Ubuntu):
status: New → Confirmed
Changed in imagej (Ubuntu):
status: New → Confirmed
Changed in libreoffice (Ubuntu):
status: New → Confirmed
Norbert (nrbrtx)
summary: - linux-image-4.4.0-81-generic Regression: Oracle Java plugin crashes
+ linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression:
+ many user-space apps crashing
Revision history for this message
Launchpad Janitor (janitor) wrote : Re: linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in scilab (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

Scilab is affected too. It uses openjdk-8.
See bug 1699892 for details.
Scilab is crashing with new kernel (linux-image-3.13.0-121-generic in Trusty / linux-image-4.4.0-81-generic in Xenial), but works with previous one (linux-image-3.13.0-119-generic in Trusty / linux-image-4.4.0-78-generic in Xenial).

Revision history for this message
Norbert (nrbrtx) wrote :

Also you can check comments on bug 1698919.
The (incomplete) list of affected applications include:
* LPCxpresso (see https://community.nxp.com/thread/453939 )
* RMongo (see https://stackoverflow.com/a/44699417 )
* Ubiquity UniFi (see
https://community.ubnt.com/t5/UniFi-Wireless/UniFi-Controller-failed-after-dist-upgrade/td-p/1967779
)

tags: added: trusty
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in octave (Ubuntu):
status: New → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

Octave in Trusty is affected too (see bug 1699594).

Revision history for this message
Arthur Edwards (edwardsah3) wrote : Re: [Bug 1699772] Re: linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing
Download full text (3.9 KiB)

Interestingly, octave 4.2 comes up successfully under 4.40-81 under Ubuntu
16.04.

On Jun 23, 2017 4:45 PM, "Norbert" <email address hidden> wrote:

> Octave in Trusty is affected too (see bug 1699594).
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1699594).
> https://bugs.launchpad.net/bugs/1699772
>
> Title:
> linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic
> Regression: many user-space apps crashing
>
> Status in commons-daemon package in Ubuntu:
> Confirmed
> Status in eclipse package in Ubuntu:
> Confirmed
> Status in imagej package in Ubuntu:
> Confirmed
> Status in libreoffice package in Ubuntu:
> Confirmed
> Status in linux package in Ubuntu:
> Confirmed
> Status in octave package in Ubuntu:
> Confirmed
> Status in scilab package in Ubuntu:
> Confirmed
>
> Bug description:
> Distribution: Ubuntu 16.04 x64 (Flavour: KDE Neon User Edition 5.10)
>
> linux-image-4.4.0-81-generic appears to contain a regression, probably
> related to the CVE-2017-1000364 fix backport / patch.
>
> Using this kernel, the Oracle Java browser plugin always crashes
> during stack-related actions on initialization. This means, the plugin
> completely stopped working.
>
>
> It works perfectly fine in linux-image-4.4.0-79-generic (vurlerable to
> CVE-2017-1000364) as well as linux-image-4.11.6-041106-generic, which
> also contains a fix for CVE-2017-1000364.
>
>
> uname -a:
>
> > Linux Zweiblum 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06
> UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
>
> I tested Oracle Java 1.8 u131 as well as 1.6 u64 in Firefox 51.0.1 as
> well as Iceweasel / Firefox/3.5.16 in a chroot.
>
> Using linux-image-4.4.0-81-generic it crashes in all combinations
> while with both other kernels it works.
>
>
> I was not able to obtain any detailed crash information from Firefox
> 51.0.1, but Iceweasel 3.5.16 crashed completely, allowing me to obtain a
> stack trace which shows the relation to stack operations performed by the
> plugin, even without proper debug symbols:
>
>
> > (gdb) bt full
> > #0 0x00007fa06d805307 in _expand_stack_to(unsigned char*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #1 0x00007fa06d8053ae in os::Linux::manually_expand_stack(JavaThread*,
> unsigned char*) ()
> > from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #2 0x00007fa06d80cf0b in JVM_handle_linux_signal () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #3 0x00007fa06d802e13 in signalHandler(int, siginfo*, void*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #4 <signal handler called>
>
>
> I first assumed a bug in the Java plugin, but it works fine in Linux
> 4.11.6.
>
>
> The crash will be triggered by any applet, for example the test applet
> at:
>
> * https://java.com/en/download/installed8.jsp
>
>
> I'm running the Ubuntu 16.04 based KDE Neon distribution which somehow
> apparently does not allow me t...

Read more...

Revision history for this message
Joshua R. Poulson (jrp) wrote : Re: linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing

Applications that use jsvc can increase their thread stack space with -Xss1280k or larger (Red Hat, for example, suggested -Xss2m which is much larger).

Revision history for this message
Norbert (nrbrtx) wrote :

I confirm issue with full installation of Octave 3.8.1-1ubuntu1 on Trusty
(
dpkg -l | grep octave | grep "^ii" | awk '{print $2;}'
liboctave2:i386 octave octave-audio octave-benchmark octave-biosig octave-common octave-communications octave-communications-common octave-control octave-data-smoothing octave-dataframe
octave-doc octave-econometrics octave-epstk octave-financial octave-fpl octave-ga octave-gdf octave-general octave-geometry octave-gmt octave-gsl octave-htmldoc octave-image octave-info octave-io octave-lhapdf:i386 octave-linear-algebra octave-mapping octave-miscellaneous octave-missing-functions octave-mpi octave-nan octave-nlopt octave-nnet octave-nurbs octave-ocs octave-octcdf octave-octgpr octave-odepkg octave-openmpi-ext octave-optim octave-optiminterp octave-parallel octave-pfstools octave-plot octave-psychtoolbox-3 octave-quaternion octave-signal octave-sockets octave-specfun octave-splines octave-statistics octave-strings octave-struct octave-sundials octave-symbolic octave-tsa octave-vlfeat:i386 octave-vrml octave-zenity qtoctave
)
it crashes on 3.13.0-121-generic. strace says that segmentation fault is after loading openjdk and mmap something. Octave starts normally with 3.13.0-119-generic.

Revision history for this message
Norbert (nrbrtx) wrote :

Current state of the problem: Ubuntu kernel developers will prepare new patch in a few days (see https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2017-June/017507.html).

John Johansen:
"The kernel team is aware of the issue, and will be releasing updated
kernels when they are available.

There are currently no plans to revert the kernel patch until the
replacement patches are ready due to the nature of the security
vulnerability. If the regression is preventing you from using the
applications you require then we currently recommend you reboot into
the previous kernel."

Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Norbert (nrbrtx) wrote : Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing

Other Xenial kernels (linux-image-4.8.0-56-generic, linux-image-4.10.0-24-generic) are affected too.

For today there is only one kernel with fixed problems - 4.11.6-1 in Debian sid (https://packages.debian.org/sid/linux-image-4.11.0-1-686).

summary: - linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression:
- many user-space apps crashing
+ linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
+ image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many
+ user-space apps crashing
Revision history for this message
Norbert (nrbrtx) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-jpype (Ubuntu):
status: New → Confirmed
Changed in linux (Debian):
status: Unknown → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

Scilab is still crashing with kernel from xenial-proposed (4.4.0-82.105).
"JAVA_TOOL_OPTIONS=-Xss1280k scilab" helps, but it is not a solution.

Revision history for this message
In , Beluga (beluga) wrote :

René Engelhard pointed to something similar:
https://buildd.debian.org/status/fetch.php?pkg=libreoffice&arch=i386&ver=1%3A5.3.4-1&stamp=1498442560&raw=0)

#0 0xead28975 in _expand_stack_to(unsigned char*) () from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so

He commented:
"Linux's stack clash fixes break Java (and thus whenever LO tries to use Java)"

Not sure, if related.

Revision history for this message
In , Michael-stahl (michael-stahl) wrote :

the JVM regularly receives SIGSEGV especially during startup,
and that is annoying but not a problem at all.

if Calc does indeed crash, that must be a later SIGSEGV that is
not handled by the JVM.

please attach a backtrace of the last SIGSEGV i.e. the one
that is in LO code and isn't handled by JVM.

Revision history for this message
In , Xv3247 (xv3247) wrote :

thanks for the info and i have tested with openjdk7 and no crashes anymore
second i fond that it loaded the file faster than with openjdk8

thanks again

Revision history for this message
In , Xv3247 (xv3247) wrote :

Sorry is spoke to soon
crashes with openjdk7 i have backtrace and strace logs

Revision history for this message
In , Xv3247 (xv3247) wrote :

Created attachment 134315
bactrace for openjdk7

Revision history for this message
In , Xv3247 (xv3247) wrote :

Created attachment 134316
strace for openjdk

wil test without java in advance options

Revision history for this message
In , Xv3247 (xv3247) wrote :

i have downloaded the 5.3.4.2 and there are is no crash
now i don't now anymore

Revision history for this message
Norbert (nrbrtx) wrote :

With latest proposed kernel (4.4.0-83.106) Scilab does not crash.

Revision history for this message
Norbert (nrbrtx) wrote :
no longer affects: rustc
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in rustc (Ubuntu):
status: New → Confirmed
Revision history for this message
nezero (nezero) wrote :

4.4.0-83.106 appears to be in the release repo's now and looks like it's fixed the issue for JSVC (commons-daemon (Ubuntu))

Revision history for this message
Damjan Jovanovic (damjan-jov) wrote :

4.4.0-83 fixes Eclipse, but LibreOffice Base still crashes with JDBC drivers.

Revision history for this message
Lachezar Dobrev (lachezar) wrote :

Kernel 4.10.0-26 (deb version 4.10.0-26.30) seems to have fixed crashes in Eclipse.

Revision history for this message
J. Klaus Krieger (ike85659ms127b) wrote :

Upgrade to "Linux ... 4.10.0-26-generic #30-Ubuntu SMP Tue Jun 27 09:30:12 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux" (Ubuntu 17.04 with XFCE under VMware WS Pro 12.5.7 build-5813279) fixed my problems with "jsvc" (starting "tomcat" 8.5.16) and kernel 4.10.0-24.28 ... catching "signal 11" immediately after start.

Many thanks to all of You, having helped to solve the problem!

Revision history for this message
Norbert (nrbrtx) wrote :

Scilab and test C-Java program from bug 1700270 work normally with linux-image-4.4.0-83-generic, linux-image-4.8.0-58-generic, linux-image-4.10.0-26-generic.
Thank you!

Changed in linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Arthur Edwards (edwardsah3) wrote : Re: [Bug 1699772] Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing
Download full text (4.3 KiB)

Thanks very much. I have installed it, and you're right.

Art Edwards

On Jun 29, 2017 3:02 PM, "Norbert" <email address hidden> wrote:

> Scilab and test C-Java program from bug 1700270 work normally with
> linux-image-4.4.0-83-generic, linux-image-4.8.0-58-generic,
> linux-image-4.10.0-26-generic.
> Thank you!
>
> ** Changed in: linux (Ubuntu)
> Status: Confirmed => Fix Released
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1699594).
> https://bugs.launchpad.net/bugs/1699772
>
> Title:
> linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
> image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression:
> many user-space apps crashing
>
> Status in commons-daemon package in Ubuntu:
> Confirmed
> Status in eclipse package in Ubuntu:
> Confirmed
> Status in imagej package in Ubuntu:
> Confirmed
> Status in libreoffice package in Ubuntu:
> Confirmed
> Status in linux package in Ubuntu:
> Fix Released
> Status in octave package in Ubuntu:
> Confirmed
> Status in python-jpype package in Ubuntu:
> Confirmed
> Status in rustc package in Ubuntu:
> Confirmed
> Status in scilab package in Ubuntu:
> Confirmed
> Status in linux package in Debian:
> Confirmed
>
> Bug description:
> Distribution: Ubuntu 16.04 x64 (Flavour: KDE Neon User Edition 5.10)
>
> linux-image-4.4.0-81-generic appears to contain a regression, probably
> related to the CVE-2017-1000364 fix backport / patch.
>
> Using this kernel, the Oracle Java browser plugin always crashes
> during stack-related actions on initialization. This means, the plugin
> completely stopped working.
>
>
> It works perfectly fine in linux-image-4.4.0-79-generic (vurlerable to
> CVE-2017-1000364) as well as linux-image-4.11.6-041106-generic, which
> also contains a fix for CVE-2017-1000364.
>
>
> uname -a:
>
> > Linux Zweiblum 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06
> UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
>
> I tested Oracle Java 1.8 u131 as well as 1.6 u64 in Firefox 51.0.1 as
> well as Iceweasel / Firefox/3.5.16 in a chroot.
>
> Using linux-image-4.4.0-81-generic it crashes in all combinations
> while with both other kernels it works.
>
>
> I was not able to obtain any detailed crash information from Firefox
> 51.0.1, but Iceweasel 3.5.16 crashed completely, allowing me to obtain a
> stack trace which shows the relation to stack operations performed by the
> plugin, even without proper debug symbols:
>
>
> > (gdb) bt full
> > #0 0x00007fa06d805307 in _expand_stack_to(unsigned char*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #1 0x00007fa06d8053ae in os::Linux::manually_expand_stack(JavaThread*,
> unsigned char*) ()
> > from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #2 0x00007fa06d80cf0b in JVM_handle_linux_signal () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #3 0x00007fa06d802e13 in signalHandler(int, siginfo*, void*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/li...

Read more...

Changed in linux (Debian):
status: Confirmed → Fix Released
Changed in linux (Debian):
status: Fix Released → Confirmed
Revision history for this message
Arthur Edwards (edwardsah3) wrote :
Download full text (4.1 KiB)

Thanks!

On Jul 4, 2017 3:41 PM, "Bug Watch Updater" <email address hidden>
wrote:

> ** Changed in: linux (Debian)
> Status: Fix Released => Confirmed
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1699594).
> https://bugs.launchpad.net/bugs/1699772
>
> Title:
> linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
> image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression:
> many user-space apps crashing
>
> Status in commons-daemon package in Ubuntu:
> Confirmed
> Status in eclipse package in Ubuntu:
> Confirmed
> Status in imagej package in Ubuntu:
> Confirmed
> Status in libreoffice package in Ubuntu:
> Confirmed
> Status in linux package in Ubuntu:
> Fix Released
> Status in octave package in Ubuntu:
> Confirmed
> Status in python-jpype package in Ubuntu:
> Confirmed
> Status in rustc package in Ubuntu:
> Confirmed
> Status in scilab package in Ubuntu:
> Confirmed
> Status in linux package in Debian:
> Confirmed
>
> Bug description:
> Distribution: Ubuntu 16.04 x64 (Flavour: KDE Neon User Edition 5.10)
>
> linux-image-4.4.0-81-generic appears to contain a regression, probably
> related to the CVE-2017-1000364 fix backport / patch.
>
> Using this kernel, the Oracle Java browser plugin always crashes
> during stack-related actions on initialization. This means, the plugin
> completely stopped working.
>
>
> It works perfectly fine in linux-image-4.4.0-79-generic (vurlerable to
> CVE-2017-1000364) as well as linux-image-4.11.6-041106-generic, which
> also contains a fix for CVE-2017-1000364.
>
>
> uname -a:
>
> > Linux Zweiblum 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06
> UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
>
> I tested Oracle Java 1.8 u131 as well as 1.6 u64 in Firefox 51.0.1 as
> well as Iceweasel / Firefox/3.5.16 in a chroot.
>
> Using linux-image-4.4.0-81-generic it crashes in all combinations
> while with both other kernels it works.
>
>
> I was not able to obtain any detailed crash information from Firefox
> 51.0.1, but Iceweasel 3.5.16 crashed completely, allowing me to obtain a
> stack trace which shows the relation to stack operations performed by the
> plugin, even without proper debug symbols:
>
>
> > (gdb) bt full
> > #0 0x00007fa06d805307 in _expand_stack_to(unsigned char*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #1 0x00007fa06d8053ae in os::Linux::manually_expand_stack(JavaThread*,
> unsigned char*) ()
> > from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #2 0x00007fa06d80cf0b in JVM_handle_linux_signal () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #3 0x00007fa06d802e13 in signalHandler(int, siginfo*, void*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #4 <signal handler called>
>
>
> I first assumed a bug in the Java plugin, but it works fine in Linux
> 4.11.6.
>
>
> The crash will be triggered by any applet, for example th...

Read more...

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

That specific crash has been reported both on debian (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865303) and ubuntu (https://launchpad.net/bugs/1702165). It started happening with a recent linux kernel update related to stack clash fixes (see https://launchpad.net/bugs/1699772). Subsequent kernel updates appear to have fixed all userspace apps affected by that crash, except for libreoffice on x86, which is still crashing. Libreoffice on x86-64 is fine.

I can reliably reproduce the crash in an Ubuntu 17.04 x86 virtual machine by ensuring that java is enabled in libreoffice's advanced options (using the openjdk-8 package), launching base and creating a new database.

A full backtrace with debug symbols is available there: https://launchpadlibrarian.net/326892034/libreoffice-base-zesty-full-backtrace.txt.

Revision history for this message
In , Olivier Tilloy (osomon) wrote :

Created attachment 134497
full backtrace with debug symbols of base crashing at database creation

Attaching the full backtrace I mentioned above.

Norbert (nrbrtx)
no longer affects: linux
Revision history for this message
In , Norbert (nrbrtx) wrote :

Created attachment 134499
backtrace for LibreOffice Writer 5.2.7.2 on Debian Stretch x86

This problem was discovered in LibreOffice Writer 5.2.7.2 on Debian Stretch (see for example my backtrace at https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865303#220 ) or in attachment.
In brief:
#0 0xa904a975 in _expand_stack_to(address) (bottom=0xbf805fff <error: Cannot access memory at address 0xbf805fff>, bottom@entry=0xbf805000 <error: Cannot access memory at address 0xbf805000>)
    at ./src/hotspot/src/os/linux/vm/os_linux.cpp:673
        sp = 0xbfffcc88 "\r"
        size = 8350857
        p = 0xbf805fe0 <error: Cannot access memory at address 0xbf805fe0>
#1 0xa904d184 in os::Linux::manually_expand_stack(JavaThread*, unsigned char*) (t=0x8106c800, addr=0xbf805000 <error: Cannot access memory at address 0xbf805000>) at ./src/hotspot/src/os/linux/vm/os_linux.cpp:686
        mask_all = {__val = {2147483647, 4294967294, 4294967295 <repeats 30 times>}}
        old_sigset =
            {__val = {0, 0, 3221212536, 3221212568, 2829768134, 96, 3221212536, 2835641696, 3017451961, 2164710288, 2164710288, 2839724032, 2835430804, 2164710320, 2837838588, 63, 2835430768, 2839724032, 2164717328, 3221212616, 2835654623, 2164710288, 0, 2837838588, 1, 180, 3221212616, 2835654507, 2839724032, 2164717328, 2164717328, 3221212648}}
        t = 0x8106c800
        addr = 0xbf805000 <error: Cannot access memory at address 0xbf805000>

I do not know how many users use Java in Writer, but it is enabled by default and Writer silently crashes.
It's critical bug!

Norbert (nrbrtx)
tags: added: zesty
Revision history for this message
In , Norbert (nrbrtx) wrote :

Created attachment 134502
backtrace for LibreOffice Base 5.2.7.2 on Debian Stretch x86

Base in Debian Stretch x86 is affected too (see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865303#225 ).

I ran "gdb --args /usr/lib/libreoffice/program/soffice.bin --base", 'run', in Database Wizard selected 'Create a new database', 'Embedded database:' -> 'HSQLDB Embedded', click 'Next', click 'Finish', save database file in /tmp/db.odb.

Backtrace in brief:
#0 0xa24e7975 in _expand_stack_to(address) (bottom=0xbf805fff <error: Cannot access memory at address 0xbf805fff>, bottom@entry=0xbf805000 <error: Cannot access memory at address 0xbf805000>)
    at ./src/hotspot/src/os/linux/vm/os_linux.cpp:673
        sp = 0xbfffc6c8 "\r"
        size = 8349385
        p = 0xbf805fe0 <error: Cannot access memory at address 0xbf805fe0>
#1 0xa24ea184 in os::Linux::manually_expand_stack(JavaThread*, unsigned char*) (t=0x8112d800, addr=0xbf805000 <error: Cannot access memory at address 0xbf805000>) at ./src/hotspot/src/os/linux/vm/os_linux.cpp:686
        mask_all = {__val = {2147483647, 4294967294, 4294967295 <repeats 30 times>}}
        old_sigset =
            {__val = {0, 0, 3221211064, 3221211096, 2717164998, 96, 3221211064, 2723038560, 3017451961, 2165500688, 2165500688, 2727120896, 2722827668, 2165500720, 2725235452, 63, 2722827632, 2727120896, 2165500504, 3221211144, 2723051487, 2165500688, 0, 2725235452, 1, 180, 3221211144, 2723051371, 2727120896, 2165500504, 2165500504, 3221211176}}
        t = 0x8112d800
        addr = 0xbf805000 <error: Cannot access memory at address 0xbf805000>

Revision history for this message
Norbert (nrbrtx) wrote : Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing

I can confirm that LibreOffice Base is crashing on Ubuntu 17.04 during database creation (launched Base, in 'Database Wizard' selected 'Create a new database', 'Embedded database:' -> 'HSQLDB Embedded', click 'Next', click 'Finish', save database file in /tmp/db.odb). After that Base is crashing silently.
I can't install libreoffice-dbg package on zesty (I reported bug 1702556 about it).
LibreOffice Writer does not crash in Zesty.

Revision history for this message
In , Norbert (nrbrtx) wrote :

LibreOffice Base 5.3.1.2 on Ubuntu 17.04 x86 is affected too. I can't get backtrace here.

Revision history for this message
Norbert (nrbrtx) wrote :

Libreoffice Base 5.1.6.2 is crashing on Ubuntu 16.04 LTS.
What I did:
0. Installed all updates, "uname -a"
 Linux flash-1604 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:25 UTC 2017 i686 i686 i686 GNU/Linux
1. "sudo apt-get install libreoffice-dbg ure-dbg uno-libs3-dbg libglib2.0-0-dbg"
3. run "gdb --args /usr/lib/libreoffice/program/soffice.bin --base", in Database Wizard selected 'Create a new database', 'Embedded database:' -> 'HSQLDB Embedded', click 'Next', click 'Finish', save database file in /tmp/db.odb.
   "run"
   "bt full"
    Got this backtrace: (see atachment).

Revision history for this message
In , Norbert (nrbrtx) wrote :

Created attachment 134504
backtrace for LibreOffice Writer 5.1.6.2 on Ubuntu 16.04 LTS x86

LibreOffice Base 5.1.6.2 on Ubuntu 16.04 LTS x86 is affected too.
See attached backtrace (jfw_plugin_startJavaVirtualMachine is mentioned here).

Revision history for this message
In , Norbert (nrbrtx) wrote :

It seems that bug may be fixed soon in kernel (see https://lkml.org/lkml/2017/7/3/1008 ), not in LibreOffice.
I'm sorry for the noise.

Changed in df-libreoffice:
importance: Unknown → Critical
status: Unknown → Confirmed
Revision history for this message
Norbert (nrbrtx) wrote :

Libreoffice Base 5.3.1.2 is crashing on Ubuntu 17.04.
What I did:
0. Installed all updates, "uname -a"
 Linux ubuntu-zesty 4.10.0-26-generic #30-Ubuntu SMP Tue Jun 27 09:29:33 UTC 2017 i686 i686 i686 GNU/Linux
1. "apt-get install libreoffice-core-dbgsym libreoffice-writer-dbgsym ure-dbgsym uno-libs3-dbgsym libreoffice-gtk3-dbgsym libglib2.0-0-dbgsym"
3. run "gdb --args /usr/lib/libreoffice/program/soffice.bin --base", in Database Wizard selected 'Create a new database', 'Embedded database:' -> 'HSQLDB Embedded', click 'Next', click 'Finish', save database file in /tmp/db.odb.
   "run"
   "bt full"
    Got this backtrace: (see atachment).

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

(In reply to Norbert X from comment #14)
> It seems that bug may be fixed soon in kernel (see
> https://lkml.org/lkml/2017/7/3/1008 ), not in LibreOffice.
> I'm sorry for the noise.

Thank your very much for investigating it.
I guess we can close this as RESOLVED NOTOURBUG

Revision history for this message
Rostislav Stříbrný (rstribrn) wrote :

Hi,
problem still present on linux-image-4.8.0-58-generic with these conditions:
    - while executing JVM launched from >>32-bit<< C (on 64-bit kernel)
    - defining "higher" JVM stack size (eg. -Xss2048k JVM argument)

=> causes JVM segmentation fault

Attached test case (sources + binary + output logs): Bug1699772_i386_jvm_segfault_problem.tgz
test_case1.c (32-bit) => using -Xss1024k => RUNS OK.
test_case2.c (32-bit) => using -Xss2048k => Segmentation fault.
test_case1.c (64-bit) => using -Xss1024k => RUNS OK.
test_case2.c (64-bit) => using -Xss2048k => RUNS OK.

My system:
cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"

with linux-generic-hwe-16.04

uname -a
Linux L34001100621 4.8.0-58-generic #63~16.04.1-Ubuntu SMP Mon Jun 26 18:08:51 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
Rostislav Stříbrný (rstribrn) wrote :
Changed in df-libreoffice:
status: Confirmed → Won't Fix
Revision history for this message
Norbert (nrbrtx) wrote :

I can confirm that case2 i386 (see comments 39, 40 by Rostislav Stříbrný (rstribrn) ) produce segmentation fault on
"4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:43 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux"
with log:
bash: line 1: 11948 Segmentation fault (core dumped) LD_PRELOAD=/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so ./test_openjdk_i386_case2

Do not forget to install gcc-multilib package before running test.

Here is backtrace with gdb:
(gdb) bt full
#0 0xf77c52c5 in ?? () from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#1 0xf77c7a34 in ?? () from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#2 0xf77d20a0 in ?? () from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#3 0xf790e1a2 in ?? () from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#4 0xf75cbe45 in JNI_CreateJavaVM () from /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so
No symbol table info available.
#5 0x080485ab in create_vm (jvm=0xffffcebc) at test_case2.c:16
        env = 0xf7fe78c2
        args = {version = 65544, nOptions = 2, options = 0xffffce6c, ignoreUnrecognized = 0 '\000'}
        options = {{optionString = 0x8048730 "-Djava.class.path=.", extraInfo = 0xf7ffd000}, {optionString = 0x8048744 "-Xss2048k",
            extraInfo = 0xffffce90}}
        rv = -142860576
#6 0x08048604 in main (argc=1, argv=0xffffcf84) at test_case2.c:27
        jvm = 0x80486fb <__libc_csu_init+75>
        env = 0x1
        foo_class = 0xffffcf84
        test_method = 0xffffcf8c

Revision history for this message
Norbert (nrbrtx) wrote :

In 32-bit Zesty linux 4.10.0-28-generic still crashes LibreOffice Base.

Changed in linux (Debian):
status: Confirmed → Fix Released
Changed in linux (Debian):
status: Fix Released → Confirmed
Revision history for this message
In , Luke (lukebenes) wrote :

There are 2 workarounds for this issue:

Add kernel parameter stack_guard_gap=1

Or

Start Libreoffice, click on Tools, click on options and under Libreoffice section click on Advanced.
And instead of changing parameteres, considering I don't use java in Libreoffice, I've simply deselected "Use a Java runtime environment".

from: https://bbs.archlinux.org/viewtopic.php?id=227597

Revision history for this message
In , Cloph-0 (cloph-0) wrote :

pointers to the openjdk code / showing why only 32bit is affected

https://<email address hidden>/msg1437925.html

Revision history for this message
Miroslav Karas (arditure87) wrote : Re: [Bug 1699772] Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing
Download full text (4.6 KiB)

Scilab 6.0 crash with 4.4.0-87-generic under Linux Mint

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18
DISTRIB_CODENAME=sarah
DISTRIB_DESCRIPTION="Linux Mint 18 Sarah"
NAME="Linux Mint"
VERSION="18 (Sarah)"
ID=linuxmint
ID_LIKE=ubuntu
PRETTY_NAME="Linux Mint 18"
VERSION_ID="18"
HOME_URL="http://www.linuxmint.com/"
SUPPORT_URL="http://forums.linuxmint.com/"
BUG_REPORT_URL="http://bugs.launchpad.net/linuxmint/"
UBUNTU_CODENAME=xenial
cat: /etc/upstream-release: Is a directory

On Thu, Jul 20, 2017 at 11:54 PM, Bug Watch Updater <
<email address hidden>> wrote:

> ** Changed in: linux (Debian)
> Status: Fix Released => Confirmed
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1699926).
> https://bugs.launchpad.net/bugs/1699772
>
> Title:
> linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
> image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression:
> many user-space apps crashing
>
> Status in LibreOffice:
> Won't Fix
> Status in commons-daemon package in Ubuntu:
> Confirmed
> Status in eclipse package in Ubuntu:
> Confirmed
> Status in imagej package in Ubuntu:
> Confirmed
> Status in libreoffice package in Ubuntu:
> Confirmed
> Status in linux package in Ubuntu:
> Fix Released
> Status in octave package in Ubuntu:
> Confirmed
> Status in python-jpype package in Ubuntu:
> Confirmed
> Status in rustc package in Ubuntu:
> Confirmed
> Status in scilab package in Ubuntu:
> Confirmed
> Status in linux package in Debian:
> Confirmed
>
> Bug description:
> Distribution: Ubuntu 16.04 x64 (Flavour: KDE Neon User Edition 5.10)
>
> linux-image-4.4.0-81-generic appears to contain a regression, probably
> related to the CVE-2017-1000364 fix backport / patch.
>
> Using this kernel, the Oracle Java browser plugin always crashes
> during stack-related actions on initialization. This means, the plugin
> completely stopped working.
>
>
> It works perfectly fine in linux-image-4.4.0-79-generic (vurlerable to
> CVE-2017-1000364) as well as linux-image-4.11.6-041106-generic, which
> also contains a fix for CVE-2017-1000364.
>
>
> uname -a:
>
> > Linux Zweiblum 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06
> UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
>
> I tested Oracle Java 1.8 u131 as well as 1.6 u64 in Firefox 51.0.1 as
> well as Iceweasel / Firefox/3.5.16 in a chroot.
>
> Using linux-image-4.4.0-81-generic it crashes in all combinations
> while with both other kernels it works.
>
>
> I was not able to obtain any detailed crash information from Firefox
> 51.0.1, but Iceweasel 3.5.16 crashed completely, allowing me to obtain a
> stack trace which shows the relation to stack operations performed by the
> plugin, even without proper debug symbols:
>
>
> > (gdb) bt full
> > #0 0x00007fa06d805307 in _expand_stack_to(unsigned char*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info available.
> > #1 0x00007fa06d8053ae in os::Linux::manually_expand_stack(JavaThread*,
> unsigned char*) ()
> > from /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
> > No symbol table info a...

Read more...

Revision history for this message
Norbert (nrbrtx) wrote : Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing

@Miroslav Karas (arditure87)
I'm running xenial x86_64 with 4.4.0-87-generic, I can run scilab-5.5.2 (from repos) and scilab-6.0.0 (from scilab.org).

$ uname -a
Linux host 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

It seems that you missed some scilab dependency or have other problems. What happens if you try to start scilab from terminal?

Revision history for this message
Miroslav Karas (arditure87) wrote : Re: [Bug 1699772] Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing
Download full text (4.8 KiB)

Norbert
You might be right, there might be something missing. I follow the Youtube
video installation, that basically ask you to copy the package, expend and
link the executable. So no real installation. The scilab 6.0 start and
immediately shoot down. I am running concurrently scilab 5.5.2 - no problem
(installed from MInt apps). From command line it open the 5.5.2 version.

On Wed, Jul 26, 2017 at 12:44 PM, Norbert <email address hidden>
wrote:

> @Miroslav Karas (arditure87)
> I'm running xenial x86_64 with 4.4.0-87-generic, I can run scilab-5.5.2
> (from repos) and scilab-6.0.0 (from scilab.org).
>
> $ uname -a
> Linux host 4.4.0-87-generic #110-Ubuntu SMP Tue Jul 18 12:55:35 UTC 2017
> x86_64 x86_64 x86_64 GNU/Linux
>
> It seems that you missed some scilab dependency or have other problems.
> What happens if you try to start scilab from terminal?
>
> --
> You received this bug notification because you are subscribed to a
> duplicate bug report (1699926).
> https://bugs.launchpad.net/bugs/1699772
>
> Title:
> linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
> image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression:
> many user-space apps crashing
>
> Status in LibreOffice:
> Won't Fix
> Status in commons-daemon package in Ubuntu:
> Confirmed
> Status in eclipse package in Ubuntu:
> Confirmed
> Status in imagej package in Ubuntu:
> Confirmed
> Status in libreoffice package in Ubuntu:
> Confirmed
> Status in linux package in Ubuntu:
> Fix Released
> Status in octave package in Ubuntu:
> Confirmed
> Status in python-jpype package in Ubuntu:
> Confirmed
> Status in rustc package in Ubuntu:
> Confirmed
> Status in scilab package in Ubuntu:
> Confirmed
> Status in linux package in Debian:
> Confirmed
>
> Bug description:
> Distribution: Ubuntu 16.04 x64 (Flavour: KDE Neon User Edition 5.10)
>
> linux-image-4.4.0-81-generic appears to contain a regression, probably
> related to the CVE-2017-1000364 fix backport / patch.
>
> Using this kernel, the Oracle Java browser plugin always crashes
> during stack-related actions on initialization. This means, the plugin
> completely stopped working.
>
>
> It works perfectly fine in linux-image-4.4.0-79-generic (vurlerable to
> CVE-2017-1000364) as well as linux-image-4.11.6-041106-generic, which
> also contains a fix for CVE-2017-1000364.
>
>
> uname -a:
>
> > Linux Zweiblum 4.4.0-81-generic #104-Ubuntu SMP Wed Jun 14 08:17:06
> UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>
>
> I tested Oracle Java 1.8 u131 as well as 1.6 u64 in Firefox 51.0.1 as
> well as Iceweasel / Firefox/3.5.16 in a chroot.
>
> Using linux-image-4.4.0-81-generic it crashes in all combinations
> while with both other kernels it works.
>
>
> I was not able to obtain any detailed crash information from Firefox
> 51.0.1, but Iceweasel 3.5.16 crashed completely, allowing me to obtain a
> stack trace which shows the relation to stack operations performed by the
> plugin, even without proper debug symbols:
>
>
> > (gdb) bt full
> > #0 0x00007fa06d805307 in _expand_stack_to(unsigned char*) () from
> /opt/java-8-oracle/jre/lib/amd64/server/libjvm.so
>...

Read more...

Revision history for this message
Norbert (nrbrtx) wrote : Re: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many user-space apps crashing

@Miroslav Karas (arditure87)
Scilab 6 has a bug, it should be started with control terminal.
You can create desktop application launcher with this contents of Command field:
   xterm -e /home/full_path_to_scilab-6.0.0/bin/scilab
(you can change xterm to your favorite editor).

Revision history for this message
Norbert (nrbrtx) wrote :

^ not 'editor', I mean terminal emulator (such as gnome-terminal).

Revision history for this message
In , Michael-stahl (michael-stahl) wrote :

*** Bug 109327 has been marked as a duplicate of this bug. ***

Revision history for this message
Nicholas Borisov (nicholas764) wrote :

I confirm this issue, LibreOffice Base crushed any time when i try to do anything in Base. are there any pathches ?

Processor: Intel Pentium T4400 @ 2.20GHz (2 Cores)

Software:
OS: Ubuntu 17.04, Kernel: 4.10.0-26-generic (i686), Desktop: Xfce 4.12, Display Driver: modesetting 1.19.3, OpenGL: 3.3 Mesa 17.2.0-devel, Compiler: GCC 6.3.0 20170406, File-System: ext4, Screen Resolution: 1366x768

Libreoffice 5.3.1.2, ID 1:5.3.1-0ubuntu2, VCL: gtk2

Revision history for this message
In , Iplaw67-h (iplaw67-h) wrote :

*** Bug 108854 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Iplaw67-h (iplaw67-h) wrote :

*** Bug 109101 has been marked as a duplicate of this bug. ***

Olivier Tilloy (osomon)
Changed in linux (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
In , Iplaw67-h (iplaw67-h) wrote :

*** Bug 110748 has been marked as a duplicate of this bug. ***

Revision history for this message
Bruno Vernay (brunovernay) wrote :

With a 32bit arch, LibreOffice Base crashes in the latest (updated) 16.04 LTS and in 17.04.
With a 64bit arch the 17.07 LibreOfiice Base does not crash.

Changed in linux (Ubuntu):
importance: Undecided → Critical
Revision history for this message
In , Michael-stahl (michael-stahl) wrote :

*** Bug 109014 has been marked as a duplicate of this bug. ***

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

Regarding OpenJDK 8, it crashes as soon as Xss is set to (or higher than) 1141K in a i386 JVM (32-bit).

I used the example code from bug #1700270. Please note that there is no need to even use the java class: the program will segfault while starting the JVM, so do remove lines 30-34 from either test_case1.c or test_case2.c and set Xss to 1441K (or bigger).

The OpenJDK part where the stack location and size are calculated is in os::Linux::capture_initial_stack() [1], specially _initial_thread_stack_bottom [2].

From GDB I was able to collect the following data from that function:
(gdb) p max_size
$1 = 1171456

Note: max_size is Xss rounded to vm_page_size(), thus 1144K [3].

(gdb) info locals
rlim = {rlim_cur = 8388608, rlim_max = 4294967295}
stack_size = 8380416
stack_start = 4294956864
p = 0xf7ffcf34 <__libc_stack_end>
stack_top = 4294959104
low = 0xfffdd000 ""
high = 0xffffe000 <error: Cannot access memory at address 0xffffe000>

(gdb) x p
0xf7ffcf34 <__libc_stack_end>: 0xffffd740
(gdb) x stack_top
0xffffe000: Cannot access memory at address 0xffffe000
(gdb) x low
0xfffdd000: 0x00000000
(gdb) x high
0xffffe000: Cannot access memory at address 0xffffe000
(gdb) p _initial_thread_stack_size
$43 = 1171456
(gdb) x _initial_thread_stack_bottom
0xffee0000: 0x00000000

Backtrace:
(gdb) bt
#0 os::Linux::capture_initial_stack (max_size=1171456) at ./src/hotspot/src/os/linux/vm/os_linux.cpp:1272
#1 0xf7394287 in os::init_2 () at ./src/hotspot/src/os/linux/vm/os_linux.cpp:4939
#2 0xf74ee886 in Threads::create_vm (args=0xffffd62c, canTryAgain=0xffffd5bf) at ./src/hotspot/src/share/vm/runtime/thread.cpp:3361
#3 0xf7151423 in JNI_CreateJavaVM (vm=0xffffd684, penv=0xffffd624, args=0xffffd62c) at ./src/hotspot/src/share/vm/prims/jni.cpp:5220
#4 0x5655561f in create_vm (jvm=0xffffd684) at test_case.c:16
#5 0x56555685 in main (argc=1, argv=0xffffd744) at test_case.c:25

That information is used by os::Linux::default_guard_size() [4] to fetch both 'bottom' and 'size' used to indicate the start of the guard page - and it has a nice doc explaining the stack layout. The values from default_guard_size are in turn used by os::current_stack_base() [5] to calculate what should be the stack base.

Let me know if there's any additional information I can help with.

[1] http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/tip/src/os/linux/vm/os_linux.cpp#l1081
[2] http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/tip/src/os/linux/vm/os_linux.cpp#l1271
[3] http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/tip/src/os/linux/vm/os_linux.cpp#l5010
[4] http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/tip/src/os_cpu/linux_x86/vm/os_linux_x86.cpp#l714
[5] http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/tip/src/os_cpu/linux_x86/vm/os_linux_x86.cpp#l745

Revision history for this message
Pete Cheslock (pete-cheslock) wrote :

This affects linux-aws 4.4.0-1020-aws as well. I ran into this issue on that kernel. https://github.com/collectd/collectd/issues/2321#issuecomment-311634825

Seems maybe fixed in 4.4.0-1022-aws

Revision history for this message
In , Iplaw67-h (iplaw67-h) wrote :

*** Bug 112357 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Iplaw67-h (iplaw67-h) wrote :

*** Bug 112479 has been marked as a duplicate of this bug. ***

Revision history for this message
Olivier Tilloy (osomon) wrote :

libreoffice base still crashing at startup on xenial i386 with kernels 4.4.0-96.119 (in xenial-security) and 4.4.0-97.120 (in xenial-proposed)

Revision history for this message
In , Luke (lukebenes) wrote :

The build time manifestation of this bug is a CppunitTest_dbaccess_hsqldb_test or CppunitTest_dbaccess_RowSetClones test failure. For details see:

http://nabble.documentfoundation.org/CppunitTest-dbaccess-hsqldb-test-CppunitTest-dbaccess-RowSetClones-Failing-after-System-Update-td4218769.html

Revision history for this message
Norbert (nrbrtx) wrote :

Ubuntu 17.10 with all updates. LibreOffice Base is still crashing on 32-bit (kernel is 4.13.0-12-generic).

tags: added: artful
summary: linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
- image-4.4.0-81-generic, linux-image-3.13.0-121-generic Regression: many
- user-space apps crashing
+ image-4.4.0-81-generic, linux-image-3.13.0-121-generic, linux-
+ image-4.13.0-12-generic Regression: many user-space apps crashing
summary: - linux-image-4.10.0-24-generic, linux-image-4.8.0-56-generic, linux-
- image-4.4.0-81-generic, linux-image-3.13.0-121-generic, linux-
- image-4.13.0-12-generic Regression: many user-space apps crashing
+ linux-image-4.13.0-12-generic, linux-image-4.10.0-24-generic, linux-
+ image-4.8.0-56-generic, linux-image-4.4.0-81-generic, linux-
+ image-3.13.0-121-generic | Regression: many user-space apps crashing
tags: added: id-599af6610f9a304e95fd9796
ronalddsp (rdsierrap)
Changed in python-jpype (Ubuntu):
status: Confirmed → New
Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 112930 has been marked as a duplicate of this bug. ***

Revision history for this message
Henk Stuurman (hw-stuurman) wrote :

The crashes of LibreOffice give the following errors:
Sorry, Ubuntu 16.04 has experienced an internal error

ExecutablePath /usr/lib/libreoffice/program/sov\ffice.bin

Package libreoffice-core 1:5.1.6-rc2-oubuntu1~xenial2

Problem type crash

title soffice.bin crahed with SIGSEGV

apport version 2.20.1ubuntu2.10

distro release Ubuntu 16.04

Installation Dae Installed on 2014-03-19

Installationm Meda Ubuntu 12.04.4 LTS “Precise Pangolin” - Release i386 (20140204)

ProcCmdline /usr/lib/libreoffice/program/soffice.bin -writer -splash-pipe=5

ProcVersionSignature Ubuntu 4.4.0-92.115-generic 4.4.76

SegvReason reading unknown VMA

Signal 11

SourceOackage libreoffice

StacktraceAddressSignature /usr/lib/libreoffice.bin:11:/usr/lib/jvm/java-8-openjgk-i386/jre/lib/i386/server/libjvm.so+73fb35:/usr/lib/jvm/java-6-openjdk-i386/jre/lib/i386/server/libjvm.so+7422a4:/usr/lib/jvm/java-8-openjdk-i386/jre/lib/server/libjvm.so+74c790:/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so+533f5f:/usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so+53439c:/usr/lib/libreoffice/program/libjvmaccesslo/so+3ce7:/usr/lib/libreoffice/program/libjvmaccesslo.so+3d36:/usr/lib/libreoffice/program/libjava_uno.so+13ffc:/usr/lib/libreoffice/program/libjava_uno.so+14a46:/usr/lib/libreoffice/program/libgcc3_uno.so.2720:/usr/lib/libreoffice/program/libgcc3_uno.so+2c6b:/usr/lib/libreoffice/program/libgcc3_uno.so+9235:/usr/lib/libreoffice/program/libjavaloaderlo.so+40ca:/usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so+6a9b4:usr/lib/libreoffice/program/libuno_cppuhelpergcc3.so.3+6bb4d

Tags xenial

Uname Linux 4.4.0.92-generic i386

Upgradestatus Upgraded to xenial on 2016-08-03

UserGroups adm cdrom dip lpadmin plugdev sambashare sudo

I have no uninstalled Oracle Java and will try to find Open JDK to install, and see what happens.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python-jpype (Ubuntu):
status: New → Confirmed
Revision history for this message
In , julien2412 (serval2412-6) wrote :

*** Bug 113491 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Beluga (beluga) wrote :

*** Bug 113904 has been marked as a duplicate of this bug. ***

Changed in linux (Debian):
status: Confirmed → Fix Released
Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

*** Bug 114689 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Mikekaganski (mikekaganski) wrote :

*** Bug 114898 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 114639 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 114638 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Aron Budea (baron-z) wrote :

*** Bug 114977 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jan-Peter Rühmann (jpruehmann) wrote :

Why then every other Java Programm not showing errors?
LibreOffice is the only one.
Thanks,

tags: added: kernel-da-key
Changed in linux (Ubuntu Artful):
assignee: nobody → Joseph Salisbury (jsalisbury)
importance: Undecided → High
status: New → In Progress
Changed in linux (Ubuntu Bionic):
assignee: nobody → Joseph Salisbury (jsalisbury)
status: Confirmed → In Progress
no longer affects: commons-daemon (Ubuntu)
no longer affects: commons-daemon (Ubuntu Artful)
no longer affects: commons-daemon (Ubuntu Bionic)
no longer affects: eclipse (Ubuntu Artful)
no longer affects: eclipse (Ubuntu Bionic)
no longer affects: eclipse (Ubuntu)
no longer affects: imagej (Ubuntu Artful)
no longer affects: imagej (Ubuntu Bionic)
no longer affects: libreoffice (Ubuntu Artful)
no longer affects: libreoffice (Ubuntu Bionic)
no longer affects: libreoffice (Ubuntu)
no longer affects: imagej (Ubuntu)
no longer affects: octave (Ubuntu Artful)
no longer affects: octave (Ubuntu Bionic)
no longer affects: octave (Ubuntu)
no longer affects: python-jpype (Ubuntu Artful)
no longer affects: python-jpype (Ubuntu Bionic)
no longer affects: python-jpype (Ubuntu)
no longer affects: rustc (Ubuntu Artful)
no longer affects: rustc (Ubuntu Bionic)
no longer affects: rustc (Ubuntu)
no longer affects: scilab (Ubuntu Artful)
no longer affects: scilab (Ubuntu Bionic)
no longer affects: scilab (Ubuntu)
Changed in linux (Ubuntu Xenial):
status: New → In Progress
Changed in linux (Ubuntu Artful):
importance: High → Critical
Changed in linux (Ubuntu Xenial):
importance: Undecided → Critical
assignee: nobody → Joseph Salisbury (jsalisbury)
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I back ported debian kernel commit 3f937de to Xenial, Artful and Bionic. I also had to perform a cherry pick of commit b6fb293f2.

I built test kernels for each of these releases, which can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test these kernels and see if it resolves this bug?

Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
Olivier Tilloy (osomon) wrote :

Thanks Joseph. The test kernels are for amd64 only, and the bug affects exclusively i386. Could you build test kernels for i386?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built i386 versions of the test kernel. They can also be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Also, it might be worthwhile to see if this bug still exists in the latest upstream 4.15 mainline kernel, which can be downloaded from:

http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.15/

Revision history for this message
Olivier Tilloy (osomon) wrote :

Just tested in a bionic i386 VM, and unfortunately neither your build of 4.13.0-17 nor upstream 4.15 make the situation better. I'm still seeing libreoffice base crash when creating a new database, and the crash happens in /usr/lib/jvm/java-8-openjdk-i386/jre/lib/i386/server/libjvm.so.

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

Just tested on Xenial i386, LibreOffice Base still crash on both kernels, 4.4.0-112.135~lp1699772 and 4.15.0-041500.201801282230

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Thanks for testing my kernel. It sounds like the Debian bug may be different or that the bug might be outside of the kernel.

It was originally reported that this bug was a regression. Can those that can reproduce this bug try the following kernel:

https://launchpad.net/ubuntu/+source/linux/4.4.0-79.100

From that page, select your arch under the "Builds" section. Then install the linux-image and linux-image-extra .deb packages.

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base works fine on Xenial i386 with kernel:

https://launchpad.net/ubuntu/+source/linux/4.4.0-79.100

~# uname -a
Linux WS 4.4.0-79-generic #100-Ubuntu SMP Wed May 17 19:57:27 UTC 2017 i686 i686 i686 GNU/Linux

Revision history for this message
In , julien2412 (serval2412-6) wrote :

*** Bug 115631 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 115222 has been marked as a duplicate of this bug. ***

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

There were a few commits added for CVE-2017-1000364:

a010365 mm/mmap.c: expand_downwards: don't require the gap if !vm_prev
8105a5d mm/mmap.c: do not blow on PROT_NONE MAP_FIXED holes in the stack
028383b Allow stack to grow up to address space limit
393d9b1 mm: fix new crash in unmapped_area_topdown()
88a1685 mm: larger stack guard gap, between vmas
cf83f7c mm: vma_adjust: remove superfluous confusing update in remove_next == 1 case

I'd like to build some test kernels, each with peeling of one of these commits at a time to try and narrow down which one caused it.

I built the first test kernel with commit a010365 reverted.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

The test kernel are for amd64 only, but the bug affects exclusively on i386. Could you build test kernel for i386?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built an i386 test kernel with commit a010365 reverted.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base still crash on Xenial i386 with kernel from:

http://kernel.ubuntu.com/~jsalisbury/lp1699772

~$ uname -a
Linux WS 4.4.0-112-generic #135~lp1699772v1 SMP Wed Feb 21 21:22:38 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built the next test kernel with commits a010365 and 8105a5d reverted.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base still crash with test kernel:

~$ uname -a
Linux WS 4.4.0-112-generic #135~lp1699772v2 SMP Thu Feb 22 00:00:50 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built the next test kernel with commits a010365, 8105a5d and 028383b reverted.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base still crash with test kernel:

~$ uname -a
Linux WS 4.4.0-112-generic #135~lp1699772v3 SMP Thu Feb 22 16:08:07 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built the next test kernel with commits a010365, 8105a5d, 028383b and 393d9b1 reverted.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base still crash with test kernel:

~$ uname -a
Linux WS 4.4.0-112-generic #135~lp1699772v4 SMP Thu Feb 22 18:45:01 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built the next test kernel with commits a010365, 8105a5d, 028383b, 393d9b1 and 88a1685 reverted.

The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base works fine on Xenial i386 with last test kernel:

~$ uname -a
Linux WS 4.4.0-112-generic #135~lp1699772v5 SMP Thu Feb 22 20:41:29 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

I built a test kernel with a revert of commit 88a1685. The test kernel can be downloaded from:
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Can you test this kernel and see if it resolves this bug?

Note, to test this kernel, you need to install both the linux-image and linux-image-extra .deb packages.

Thanks in advance!

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

The test kernel are for amd64 only, but the bug affects exclusively on i386. Could you build test kernel for i386?

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

There is an i386 test kernel there now.
http://kernel.ubuntu.com/~jsalisbury/lp1699772

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base works fine on Xenial i386 with last test kernel:

~$ uname -a
Linux WS 4.4.0-112-generic #135~lp16909772Revert88a1685 SMP Tue Mar 6 08:40:12 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

It might be worth also testing 4.16-rc4:
http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.16-rc4/

Revision history for this message
Roman Shipovskij (roman-shipovskij) wrote :

LibreOffice Base crashes with 4.16-rc4 kernel:

~# uname -a
Linux WS 4.16.0-041600rc4-generic #201803041930 SMP Mon Mar 5 00:44:23 UTC 2018 i686 i686 i686 GNU/Linux

Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

We should notify upstream since the bug still occurs with the latest upstream kernel. Would it be possible for you to open an upstream bug report[0]? That will allow the upstream Developers to examine the issue, and may provide a quicker resolution to the bug.

Please follow the instructions on the wiki page[0]. The first step is to email the appropriate mailing list. If no response is received, then a bug may be opened on bugzilla.kernel.org.

Once this bug is reported upstream, please add the tag: 'kernel-bug-reported-upstream'.

[0] https://wiki.ubuntu.com/Bugs/Upstream/kernel

Changed in linux (Ubuntu Xenial):
status: In Progress → Incomplete
Changed in linux (Ubuntu Artful):
status: In Progress → Incomplete
Changed in linux (Ubuntu Bionic):
status: In Progress → Incomplete
Revision history for this message
Matt (mguignes) wrote :

Whenever LibreOffice Writer is launched, it does not load and a crash report appears.
LibreOffice base and Calc opens OK though.

System info:

OS: Ubuntu Budgie 18.04 32-bit
PC: Sony Vaio VGN-FE21H

Revision history for this message
Tiago Stürmer Daitx (tdaitx) wrote :

IcedTea 2.6.14 has backported a fix for the exec guard issue and will be available in Trusty's openjdk-7 version 7u181-2.6.14-0ubuntu0.1.

The fix for OpenJDK-8 will be included in the next security update.

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 118677 has been marked as a duplicate of this bug. ***

Revision history for this message
Andy Whitcroft (apw) wrote : Closing unsupported series nomination.

This bug was nominated against a series that is no longer supported, ie artful. The bug task representing the artful nomination is being closed as Won't Fix.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu Artful):
status: Incomplete → Won't Fix
Revision history for this message
Wladimir Mutel (mwg) wrote :

Is there any chance to have this fixed in Ubuntu 18.04 earlier than 20.04 is released ?

Revision history for this message
Wladimir Mutel (mwg) wrote :

What's interesting, is that lowriter does not crash in 32-bit LinuxMint-Mate 19 (based on Ubuntu Bionic 18.04)
with either 4.15.0-20 initial kernel, or -33 updated from Bionic.
with 32-bit Lubuntu 18.04 it still crashes under -33 kernel, so the fix is clearly in some different place.
probably LinuxMint authors know some magic incantations

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 119078 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 119487 has been marked as a duplicate of this bug. ***

Revision history for this message
Olivier Tilloy (osomon) wrote :

Still crashing in cosmic on i386 with libreoffice 6.0.6 and kernel 4.17.0.9.12, and libreoffice 6.1.0 and kernel 4.18.0.7.8.

Revision history for this message
In , Beluga (beluga) wrote :

*** Bug 119614 has been marked as a duplicate of this bug. ***

Revision history for this message
Seth Forshee (sforshee) wrote :

I've tried to reproduce the crash in a vm running up-to-date i386 cosmic, kernel version 4.18.0-7.8. I'm not seeing any crashes opening up the libreoffice apps. Can you give instructions on how to reproduce? Thanks.

Revision history for this message
Olivier Tilloy (osomon) wrote :

@Seth: I can reliably reproduce the crash in an up-to-date i386 cosmic VM. You need to install libreoffice-base (which is not installed by default, and pulls in all the java dependencies), then run it with "libreoffice --base", go through the initial wizard to create a new HSQLDB database, and that's when the crash happens.

Changed in linux (Ubuntu):
assignee: Joseph Salisbury (jsalisbury) → nobody
Changed in linux (Ubuntu Xenial):
assignee: Joseph Salisbury (jsalisbury) → nobody
Changed in linux (Ubuntu Artful):
assignee: Joseph Salisbury (jsalisbury) → nobody
Changed in linux (Ubuntu Bionic):
assignee: Joseph Salisbury (jsalisbury) → nobody
Revision history for this message
Seth Forshee (sforshee) wrote :

I can reproduce using those steps, opened bug #1795956 from the crash report that was produced.

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 122062 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Djn4823 (djn4823) wrote :

xubuntu 18.04.1 32-bit (4.15.0-42-generic #45-Ubuntu)

My experience was rather different. LibreOffice would always crash at a point about 35% through the splash screen, so I couldn't use the UI to disable the use of Java.

I checked with sysctl -a and also by dumping all strings in the kernel, and "stack_guard_gap" isn't a valid kernel parameter.

If I edited the LibreOffice config file "javasettings_Linux_x86.xml"

to look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!--This is a generated file. Do not alter this file!-->
<java xmlns="http://openoffice.org/2004/java/framework/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<enabled xsi:nil="false"/>
<userClassPath xsi:nil="true"/>
<vmParameters xsi:nil="true"/>
<jreLocations xsi:nil="true"/>
<javaInfo xsi:nil="true"/>
</java>

LibreOffice 6.0.6.2 00m0(Build:2) would find the java virtual machine, update the config file, and then crash as before.

The (partial) solution was to rename /usr/bin/java and /usr/lib/jvm/ AND code the javasettings file as above. With these steps taken I can at least edit documents in --writer and spreadsheets with --calc. Creating a native database requires Java, so that doesn't work, but I was able to attach to a spreadsheet and treat it like a database. Not sure about Access/Jet or SqLite databases yet.

Of course, anything else that requires Java is now broken. Java version is

OpenJDK Runtime Environment (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4)
OpenJDK Server VM (build 10.0.2+13-Ubuntu-1ubuntu0.18.04.4, mixed mode)

I tried creating a "Hello World" Java program and it worked as expected.

Hmmm... "Mixed Mode?" Also, this version of was intended for Ubuntu 18.04.**4**, whereas I have 18.04.**1**.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

@ Seth Forshee (sforshee)

the "crash" based bug got marked as dupicate of this bug. So surely this bug report should not be "incomplete" status. What's the progress here?

Trivial to reproduce using libreoffice package in bionic i386 VM as seen in autopkgtests all the time.

Changed in linux (Ubuntu Bionic):
status: Incomplete → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

As evidenced by http://autopkgtest.ubuntu.com/packages/libreoffice/cosmic/i386, the problem went away in cosmic at some point in November 2018.

xenial and bionic are still affected.

Revision history for this message
Olivier Tilloy (osomon) wrote :

Autopkgtests on cosmic started passing (as far as this bug is concerned − there were other unrelated failures) on 2018-10-10, when openjdk-lts was upgraded from 10.0.2+13-1ubuntu1 to 11~28-3ubuntu1.

Revision history for this message
In , Luke (lukebenes) wrote :

(In reply to Dave Notman from comment #42)
> "stack_guard_gap" isn't a valid kernel parameter.

Yes, the correct parameter "stack_guard_gap=1"

With ubuntu 18.04.2 32-bit, the master branch is building with this parameter.

Brad Figg (brad-figg)
tags: added: cscc
Changed in libreoffice (Ubuntu):
status: New → Fix Released
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

openjdk 11 has since been backported to bionic.

Changed in linux (Ubuntu Bionic):
status: Confirmed → Fix Released
no longer affects: libreoffice (Ubuntu)
no longer affects: libreoffice (Ubuntu Xenial)
Norbert (nrbrtx)
tags: removed: artful trusty zesty
Revision history for this message
In , Funnylittleman76 (funnylittleman76) wrote :

Very informative post. Thanks for sharing it. <a href="https://www.rubbishremovalgeelong.com.au/">rubbish removal Geelong</a>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.