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 crashes preparing a query with both DISTINCT/ORDER BY and non-field expression in the select list [CORE5943] #6199

Closed
firebird-automations opened this issue Oct 16, 2018 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Robson Oliveira (robson_mcnsistemas.com.br)

When you run any query with the pattern below the service is stopped:

SELECT DISTINCT '0' AS CONSTANT, A.MON$SERVER_PID
FROM MON$ATTACHMENTS A
ORDER BY A.MON$SERVER_PID, A.MON$SERVER_PID

Commits: a97f76d db38f8c 96b9886

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

I can reproduce this on 3.0.4 (Windows 10, 64 bit); also reproducible on 3.0.3.

@firebird-automations
Copy link
Collaborator Author

Modified by: Robson Oliveira (robson_mcnsistemas.com.br)

Version: 3.0.3 [ 10810 ]

environment: OS: Windows Server 2012 R2 Standard => OS: Windows Server 2012 R2 Standard
Firebird SuperServer

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

summary: Firebird service terminated abnormally (4294967295) => Server crashes preparing a query with both DISTINCT/ORDER BY and non-field expression in the select list

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

v2.5 is also affected. It doesn' crash but accesses incorrect data in memory and thus theoretically may lead to wrong decisions.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 4.0 Beta 1 [ 10750 ]

Fix Version: 2.5.9 [ 10862 ]

Fix Version: 3.0.5 [ 10885 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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