Bug 78835 - segfault during initial save of .odb with embedded Firebird
Summary: segfault during initial save of .odb with embedded Firebird
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
(earliest affected) Master
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
Keywords: haveBacktrace, regression
Depends on:
Blocks: 78813
  Show dependency treegraph
Reported: 2014-05-17 17:42 UTC by Terrence Enger
Modified: 2014-05-19 19:28 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:

terminal output (1.18 KB, text/plain)
2014-05-17 17:47 UTC, Terrence Enger
gdb with backtrace from the segfault (19.87 KB, text/plain)
2014-05-17 17:49 UTC, Terrence Enger

Note You need to log in before you can comment on or make changes to this bug.
Description Terrence Enger 2014-05-17 17:42:50 UTC

(0) Ensure that you have enabled experimental features.  ( Tools >
    Options > LibreOfficeDev > Advanced > "Optional (unstable)
    options" > "Enable experimental features".  If that was not
    already selected, restart LibreOffice. )

(1) From Welcome Center, click "Base Database".  Program presents
    "Database Wizard" step 1 "Select Database".

(2) Observe that radio button "Create a new database" is selected.

(3) In dropdown list "Embedded Database" select "Firebird Embedded",
    and click <Next>.  Program presents "Database Wizard" step 2 "Save
    and Proceed".

(5) Observe that "Open the database for editing" is selected and
    "Create tables using the table wizard" is not selected.

(6) Select "No, do not register the database" and click <Finish>.
    Program presents dialog Save.

(7) Enter the pathname less ".odb" of a not-existing file.  Program
    segfaults, leaving the named file with a size of 1751 bytes.

This observation is from commit 48eccfb, fetched 2014-05-15 00:50 UTC,
built and running on debian-wheezy 64-bit.

Note well, for comparison, that I do not see the problem in commit
49dff05, fetched 2014-05-12 14:59 UTC.

This bug is less important than bug 78813 "Java core dump, segfault,
when creating table", because this one happens with an experimental
feature.  However, a fix to this on may help that other by localizing
it to HSQLDB or by enabling a backtrace not mangled by the JRE.  So, I
am setting this bug to block the other, but do not take it too
Comment 1 Terrence Enger 2014-05-17 17:47:34 UTC
Created attachment 99231 [details]
terminal output
Comment 2 Terrence Enger 2014-05-17 17:49:03 UTC
Created attachment 99232 [details]
gdb with backtrace from the segfault
Comment 3 Julien Nabet 2014-05-18 14:41:28 UTC
Terrence: could you give a try to a newer version (> http://cgit.freedesktop.org/libreoffice/core/commit/?id=45e8fd5fcc71219d7564b475a3fec3d4536f70aa, see comment of this commit)?
Comment 4 Terrence Enger 2014-05-19 19:24:59 UTC
With a debug build of commit 20c5618, fetched 2014-05-18 20:13 UTC,
the segfault is gone.

Thank you, Julien, for the heads-up.  But that commit referenced
fdo#41295, "MAILMERGE Corrupted PDFs in massmailing".  Is that what
you intended?  If so, the resolution should be FIXED.
Comment 5 Julien Nabet 2014-05-19 19:28:39 UTC
Thank you Terrence for your feedback, great it works now! :-)
You're right it's better "FIXED"