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 on overflow of division result [CORE6345] #6586

Closed
firebird-automations opened this issue Jun 25, 2020 · 7 comments
Closed

Server crashes on overflow of division result [CORE6345] #6586

firebird-automations opened this issue Jun 25, 2020 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @sim1984

Server crashes on overflow of division result

SQL> select -922337203685477.5808/-1.0 from rdb$database;

                                   DIVIDE

=============================================
Statement failed, SQLSTATE = 08006
Error reading data from the connection.

firebird.log contains the following error entry

DESKTOP-E3INAFT Thu Jun 25 19:27:24 2020
Interger overflow.
The result of an integer operation caused the
most significant bit of the result to carry.
This exception will cause the Firebird server
to terminate abnormally.

Commits: c00d9e2 fb6b36b 5895701

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Confirmed on linux too. And that's not v4 regression - previous versions are also affected.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Version: 3.0.5 [ 10885 ]

Version: 2.5.9 [ 10862 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Also backported to B2_5 - may be someone would like to have private build with fixed crash.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 3.0.6 [ 10889 ]

Fix Version: 4.0 RC 1 [ 10930 ]

@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