Issue Details (XML | Word | Printable)

Key: CORE-5197
Type: Bug Bug
Status: Reopened Reopened
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: Alexander Peshkov
Votes: 0
Watchers: 1
Operations

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

Segfault when process exits with active sweep thread

Created: 15/Apr/16 02:44 PM   Updated: 18/Dec/20 06:13 PM
Component/s: None
Affects Version/s: 2.5.5, 3.0 RC2, 4.0 Initial, 3.0.0
Fix Version/s: None

Environment:
AIX
Artificially reproduced on linux
Issue Links:
Duplicate
 

QA Status: No test


 Description  « Hide
In case when process exits when sweep thread has not yet attached to database (i.e. very fast) process does not wait for sweep thread to complete and begins cleanup with sweep starting which almost for sure causes access violation.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Attila Molnár added a comment - 10/Dec/20 07:50 AM
Hello!

Can this cause DB corruption? CS and SC both are affected?

Alexander Peshkov added a comment - 10/Dec/20 12:59 PM
This bug has no specific 'features' corrupting database, but certainly some chances to have DB corrupted are present. Must say I've never noticed it when debugging.

CS is more affected - it has much more chances to exit a process when sweep thread is starting. But SS may be affected too.

Alexander Peshkov added a comment - 18/Dec/20 06:13 PM
First fix did not pass regular tests