Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server may crash or corrupt data if SELECT WITH LOCK is issued against records not in the latest format [CORE3374] #3740

Closed
firebird-automations opened this issue Mar 4, 2011 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @dyemanov

Is related to QA467

Test case:

create table test (col1 int, col2 varchar(10), col3 date);
insert into test values (1, 'qwerty', current_date);

alter table test drop col2;
select * from test order by col1 with lock; -- crash here

Prerequisites:

1) Sorting must be present (in order to set the re-fetch flag)
2) The on-disk record must be in the prior format which must be longer than the current one

In this case deallocated memory is accessed which may lead to either crashing (most probably) or record/index errors.

Commits: d68affa 40f27b5 7208ae1 0c2900c

====== Test Details ======

Actually there is NO crash in 2.5.0, checked SS/SC/CS, WI-V2.5.0.26074

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5.1 [ 10333 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

Fix Version: 2.0.7 [ 10390 ]

Fix Version: 2.1.5 [ 10420 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA467 [ QA467 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Done successfully

Test Details: Actually there is NO crash in 2.5.0, checked SS/SC/CS, WI-V2.5.0.26074

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Test created.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment