Bug #34790 | 'create server' doesn't handle out of memory scenario well enough | ||
---|---|---|---|
Submitted: | 24 Feb 2008 14:49 | Modified: | 15 Apr 2008 1:41 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Federated storage engine | Severity: | S3 (Non-critical) |
Version: | 5.1.23 | OS: | Any |
Assigned to: | Sergey Vojtovich | CPU Architecture: | Any |
[24 Feb 2008 14:49]
Shane Bester
[19 Mar 2008 12:58]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/44221 ChangeSet@1.2569, 2008-03-19 16:54:14+04:00, svoj@mysql.com +1 -0 BUG#34790 - 'create server' doesn't handle out of memory scenario well enough CREATE SERVER may cause server crash if there is not enough memory to execute this operation. Fixed that create_server() and prepare_server_struct_for_insert() didn't check return value of functions that allocate memory. As this is out of memory issue fix, not test case available.
[19 Mar 2008 13:01]
MySQL Verification Team
I opened bug #35437 which is related to this.
[19 Mar 2008 13:09]
Sergey Vojtovich
Reviewers note: the same problem in ALTER SERVER is subject of BUG#35437 - potential crash with ALTER SERVER statement when out of memory.
[19 Mar 2008 14:12]
Alexander Barkov
http://lists.mysql.com/commits/44221 is Ok to push.
[20 Mar 2008 7:43]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/44268 ChangeSet@1.2569, 2008-03-20 11:40:26+04:00, svoj@mysql.com +1 -0 BUG#34790 - 'create server' doesn't handle out of memory scenario well enough CREATE SERVER may cause server crash if there is not enough memory to execute this operation. Fixed that create_server() and prepare_server_struct_for_insert() didn't check return value of functions that allocate memory. As this is out of memory issue fix, not test case available.
[27 Mar 2008 11:17]
Bugs System
Pushed into 5.1.24-rc
[27 Mar 2008 17:49]
Bugs System
Pushed into 6.0.5-alpha
[3 Apr 2008 14:59]
Jon Stephens
Pushed into 5.1.23-ndb-6.3.11.
[15 Apr 2008 1:41]
Paul DuBois
Noted in 5.1.24, 6.0.5 changelogs. CREATE SERVER and ALTER SERVER could crash the server if out-of-memory conditions occurred.