[Libreoffice-bugs] [Bug 122129] Firebird: app must be forced to end after any use relation designer window - add table function causes immediate hang

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jan 31 15:53:11 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=122129

--- Comment #4 from Tamas Bunth <btomi96 at gmail.com> ---
Hi,

These are my observations:

- The bug is not always reproducible. It happens after around half of my
attempts for me.

- LibreOffice hangs after multiple concurrent calls of isc_dsql_prepare. The
problem is that Firebird lands in a deadlock.

- Those calls are initiated by separate threads started at
RelationLoader::run() [1]

- The threads use the very same connection, but separate statements.

According to this [2] and this [3] Firebird should be thread-safe in a manner
that multiple threads are allowed, if they are working on the same connection
object.

That means that it might be a bug of Firebird, and not ours. Although it would
be good to get rid of the problem. A workaround could be not to allow multiple
calls of OStatementCommonBase::prepareAndDescribeStatement related to the same
connection object.

[1] dbaccess/source/ui/relationdesign/RelationController.cxx
[2] https://firebirdsql.org/rlsnotesh/rnfb25-engine.html
[3]
https://www.firebirdsql.org/file/documentation/reference_manuals/driver_manuals/odbc/html/fbodbc205-threading.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190131/bf48d26f/attachment.html>


More information about the Libreoffice-bugs mailing list