Issue Details (XML | Word | Printable)

Key: CORE-5950
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Basil A. Sidorov
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.
Firebird Core

Deadlock when attaching to bugchecked database

Created: 24/Oct/18 02:21 PM   Updated: 27/Dec/18 12:40 PM
Component/s: None
Affects Version/s: 4.0 Alpha 1, 3.0.4
Fix Version/s: 4.0 Beta 1, 3.0.5

QA Status: Cannot be tested
Test Details:
Can't get any reference on client side about Database instances that are assigned to attachment, --> can not check that new attachment get reference to the same Db object rather that to new (as it was before fix).
Value of _db_handle can be obtained in fdb, but its value is the same on FB builds before and after fix.

Discussed with dimitr and alex, letters 13.12.2018 - 26.12.2018

 Description  « Hide
Current code ignores databases with DBB_bugcheck flag - i.e. for new attaches new database is created. This is unsafe cause in SS for some time coexist 2 database blocks using same database file, and among others may cause mentioned deadlock.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 24/Oct/18 02:24 PM
Use safe behavior - raise an error when attaching bugchecked database.