Bug 105062 - Firebird: Trying to close Firebird-DB without saving leads to hang of LO
Summary: Firebird: Trying to close Firebird-DB without saving leads to hang of LO
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
5.4.0.0.alpha0+
Hardware: x86-64 (AMD64) All
: highest critical
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard:
Keywords: haveBacktrace
Depends on:
Blocks: Database-Firebird
  Show dependency treegraph
 
Reported: 2017-01-03 07:52 UTC by robert
Modified: 2017-04-07 07:59 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
stack trace (680.80 KB, text/plain)
2017-01-05 15:45 UTC, Alex Thurgood
Details

Note You need to log in before you can comment on or make changes to this bug.
Description robert 2017-01-03 07:52:00 UTC
Open a firebird-database, for example https://bugs.documentfoundation.org/attachment.cgi?id=129916
Open a table of this database.
Write something into the table, change data ...
Close the table.
No try to close the *.odb-file.
The comes a popup if the data could be saved.
Try to save the data. 

On my systems this leads every time to a hang. I could do nothing except to kill LO and restart.

Tested with
Version: 5.4.0.0.alpha0+
Build ID: 2a4cd80abcf9e515d1ce3b3a944b573bdc42bff2
CPU Threads: 4; OS Version: Linux 4.1; UI Render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2016-12-22_00:18:04
Locale: de-DE (de_DE.UTF-8); Calc: group
Comment 1 Buovjaga 2017-01-05 09:14:52 UTC
Tried both Save and Don't save, but no hang.

Maybe try a newer build to be sure.

Arch Linux 64-bit, KDE Plasma 5
Version: 5.4.0.0.alpha0+
Build ID: 1a58cdf8af1aba52ce0a376666dd7d742234d7cf
CPU Threads: 8; OS Version: Linux 4.8; UI Render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on January 4th 2016
Comment 2 robert 2017-01-05 10:11:49 UTC
Have tested it with
Version: 5.4.0.0.alpha0+
Build ID: a3cf075880db31f77cd0550e0ee25eca931c6a40
CPU Threads: 4; OS Version: Linux 4.1; UI Render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-01-05_01:21:50
Locale: de-DE (de_DE.UTF-8); Calc: group
on OpenSUSE 42.1 64bit rpm Linux.

Same buggy behavior:
Save changes to document “Firebird_3” before closing?
appears.
I click "Save" and LO hangs.
I click "Don't Save" and LO closes the Firebird database file.
I click "Cancel" and get back to the Firebird database file.

I have to kill the process libreofficebase_dev.
Comment 3 Buovjaga 2017-01-05 10:22:26 UTC
Maybe you could grab a debug build and try to get a backtrace of the hang http://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@70-TDF-dbg/current/
https://wiki.documentfoundation.org/QA/BugReport/Debug_Information#GNU.2FLinux:_How_to_get_a_backtrace

Note: "If its a hang, you will need to force a crash"
Comment 4 robert 2017-01-05 11:36:15 UTC
(In reply to Buovjaga from comment #3)
> Maybe you could grab a debug build and try to get a backtrace of the hang
> http://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@70-TDF-
> dbg/current/

This build is too big for my internet-connection (6 MBit/s). Will get a faster next month ...
Comment 5 Alex Thurgood 2017-01-05 15:23:21 UTC
Hmm, thought this had been reported by Julien already, but guess not...
Comment 6 Alex Thurgood 2017-01-05 15:39:47 UTC
Confirming on my own master build 540alpha
Comment 7 Alex Thurgood 2017-01-05 15:45:50 UTC
Created attachment 130178 [details]
stack trace

From the trace, it looks like a mutex wait/release lock problem again.