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-issue-importer opened this issue Jun 25, 2020 · 7 comments
Closed

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

Commented by: @AlexPeshkoff

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

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

Modified by: @AlexPeshkoff

Version: 3.0.5 [ 10885 ]

Version: 2.5.9 [ 10862 ]

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

Commented by: @AlexPeshkoff

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

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

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-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

@firebird-issue-importer
Copy link
Author

firebird-issue-importer commented Jun 26, 2020

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