FirebirdSQL / firebird

Firebird server, client and tools
https://www.firebirdsql.org/
1.24k stars 212 forks source link

Segfault when process exits with active sweep thread [CORE5197] #5478

Open firebird-automations opened 8 years ago

firebird-automations commented 8 years ago

Submitted by: @AlexPeshkoff

Is duplicated by CORE6338

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.

Commits: FirebirdSQL/firebird@c42c34c370831cc5e78d2cd5740d972ad3f88476 FirebirdSQL/firebird@090a5c762d9f2688ae1efc14263969406dc5afcf FirebirdSQL/firebird@e1ffc620633312039a03dcb9d1d550ba8eaaba48 FirebirdSQL/firebird@b5ade147672c2a611bd612c191c35317c17ea4a9 FirebirdSQL/firebird@c7054df600a2a7e8cf3b55a42ac93aab13dc7348 FirebirdSQL/firebird@7a6712660dfc8e2865288cbfb0484cd97b0ae701

firebird-automations commented 8 years ago
Modified by: @AlexPeshkoff assignee: Alexander Peshkov \[ alexpeshkoff \]
firebird-automations commented 3 years ago
Modified by: @AlexPeshkoff Link: This issue is duplicated by [CORE6338](https://github.com/FirebirdSQL/firebird/issues?q=CORE6338+in%3Atitle) \[ [CORE6338](https://github.com/FirebirdSQL/firebird/issues?q=CORE6338+in%3Atitle) \]
firebird-automations commented 3 years ago
Modified by: @AlexPeshkoff status: Open \[ 1 \] =\> Resolved \[ 5 \] resolution: Fixed \[ 1 \] Fix Version: 4\.0\.0 \[ 10931 \] Fix Version: 3\.0\.8 \[ 10960 \]
firebird-automations commented 3 years ago

Commented by: Attila Molnár (e_pluribus_unum)

Hello!

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

firebird-automations commented 3 years ago

Commented by: @AlexPeshkoff

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.

firebird-automations commented 3 years ago

Commented by: @AlexPeshkoff

First fix did not pass regular tests

firebird-automations commented 3 years ago
Modified by: @AlexPeshkoff status: Resolved \[ 5 \] =\> Reopened \[ 4 \] resolution: Fixed \[ 1 \] =\> Fix Version: 4\.0\.0 \[ 10931 \] =\> Fix Version: 3\.0\.8 \[ 10960 \] =\>