Bug 78813 - Java core dump, segfault, when creating table
Summary: Java core dump, segfault, when creating table
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
4.3.0.0.alpha1
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: regression
Depends on: 78835
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-17 08:31 UTC by Alex Kempshall
Modified: 2014-05-18 16:48 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Java core dump whilst creating table (81.22 KB, text/plain)
2014-05-17 08:31 UTC, Alex Kempshall
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Kempshall 2014-05-17 08:31:56 UTC
Created attachment 99204 [details]
Java core dump whilst creating table

When creating an initial table in a new database Base crashes.

I also get the same problem when attempting to open a form on an existing database.

Steps to recreate the problem -

1.
Start Base from the command line

2.
After the DataBase wizard starts push the Finish Button

3.
The "Save" Dialog opens give the database a name and save the newly created database.

4.
The main Dialog appears. Start the wizard to create a table.

5. 
In the "Table Wizard" dialog move all the available fields to the selected fields.

6.
Push the "Finish Button". Base crashes an returns to the command line with these messages written to stdout/stderr

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0xb76cf00f, pid=3046, tid=2601360192
#
# JRE version: Java(TM) SE Runtime Environment (7.0_51-b13) (build 1.7.0_51-b13)
# Java VM: Java HotSpot(TM) Client VM (24.51-b03 mixed mode linux-x86 )
# Problematic frame:
# C  [libuno_sal.so.3+0x3400f]  rtl_uString_release+0x15
#
# Core dump written. Default location: /home/master/core or core.3046
#
# An error report file with more information is saved as:
# /home/master/hs_err_pid3046.log                                                             
#                                                                               
# If you would like to submit a bug report, please visit:                                                                          
#   http://bugreport.sun.com/bugreport/crash.jsp                                                                      #                                                                                                                   
[error occurred during error reporting , id 0xb]        


I've attached the log file - hs_err_pid3046.log. The core dump file is 185MB  so not attached!

Alex
Comment 1 Terrence Enger 2014-05-17 16:28:53 UTC
Following Alex's instructions and creating an embedded HSQLDB, I have created a segfault in the same routine.  However, my terminal output, after the URL for bug reports, ends with
    [error occurred during error reporting , id 0xb]
and it has been just sitting there for several minutes.

My LibreOffice is master commit 48ecccfb, pulled 2014-05-15 00:50 UTC, configured as:
    --enable-option-checking=fatal
    --enable-dbgutil
    --enable-crashdump
    --without-system-postgresql
    --without-myspell-dicts
    --with-extra-buildid
    --without-doxygen
    --with-external-tar=/home/terry/lo_hacking/git/src
build and running on debian-wheezy 64-bit.

Note well that I did *not* have this problem with master commit 49dff05, fetched 2014-05-12 14:59 UTC.
Comment 2 Terrence Enger 2014-05-17 16:32:43 UTC
The bug was originally reported on platform x86(IA32), and I had it on
AMD64.  So, setting platform All.
Comment 3 Julien Nabet 2014-05-18 14:25:33 UTC
On pc Debian x86-64 with master sources updated today, I don't reproduce this.
java version "1.7.0_51"
OpenJDK Runtime Environment (IcedTea 2.4.6) (7u51-2.4.6-1)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)
Comment 4 Terrence Enger 2014-05-18 14:51:20 UTC
Further to comment 1, I should have mentioned that my JRE is:

    $ java -version
    java version "1.6.0_31"
    OpenJDK Runtime Environment (IcedTea6 1.13.3) (6b31-1.13.3-1~deb7u1)
    OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode)
Comment 5 Alex Kempshall 2014-05-18 16:17:08 UTC
I've done a git pull this afternoon and both problems I reported yesterday have gone away i.e.

Creating a new table in a new database
Opening an existing form in an existing database.

Maybe I jumped the gun too soon!

Does anyone else want to add any more comments as to what the fix was?

Alex
Comment 6 Julien Nabet 2014-05-18 16:25:27 UTC
I think the problem was due to my commit http://cgit.freedesktop.org/libreoffice/core/commit/?id=1334d2004625df9405bc7051fd233c5794da6128
and it has been fixed by Lionel's commit http://cgit.freedesktop.org/libreoffice/core/commit/?id=fcf4b4c3ebc46de974d57bdf6211ccb084b0835d

Sorry for this :-(
Comment 7 Alex Kempshall 2014-05-18 16:48:47 UTC
No problem. It's why I test, from time to time, that my applications are going to work in the future.

Thanks 

Alex