Bug #31153 | calling stored procedure crashes server if available memory is low | ||
---|---|---|---|
Submitted: | 23 Sep 2007 9:01 | Modified: | 21 Dec 2007 16:54 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 5.1, 5.0 | OS: | Any |
Assigned to: | Kristofer Pettersson | CPU Architecture: | Any |
Tags: | bfsm_2007_10_18, crash, sp cache |
[23 Sep 2007 9:01]
Shane Bester
[23 Sep 2007 9:03]
MySQL Verification Team
start mysqld with --key_buffer_size=1000M to give it a headstart in memory usage. run testcase.
Attachment: bug31153_testcase.php (application/octet-stream, text), 1.86 KiB.
[10 Oct 2007 22:56]
Kristofer Pettersson
progress report: I get an error in sp_head::reset_lex trying to use the overloaded new-operator to get a st_lex-object. For some reason the constructor is executed even though malloc is returning null.
[22 Oct 2007 13:28]
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/36038 ChangeSet@1.2536, 2007-10-22 15:30:52+02:00, thek@adventure.(none) +8 -0 Bug #31153 calling stored procedure crashes server if available memory is low When the server was out of memory it crashed because of invalid memory access. This patch adds detection for failed memory allocations and have the server output a proper error message.
[30 Oct 2007 14:30]
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/36656 ChangeSet@1.2536, 2007-10-30 15:29:30+01:00, thek@adventure.(none) +9 -0 Bug #31153 calling stored procedure crashes server if available memory is low When the server was out of memory it crashed because of invalid memory access. This patch adds detection for failed memory allocations and make the server output a proper error message.
[19 Nov 2007 14:36]
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/38063 ChangeSet@1.2536, 2007-11-19 15:39:17+01:00, thek@adventure.(none) +7 -0 Bug #31153 calling stored procedure crashes server if available memory is low When the server was out of memory it crashed because of invalid memory access. This patch adds detection for failed memory allocations and make the server output a proper error message.
[19 Nov 2007 16:56]
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/38080 ChangeSet@1.2536, 2007-11-19 17:59:44+01:00, thek@adventure.(none) +7 -0 Bug #31153 calling stored procedure crashes server if available memory is low When the server was out of memory it crashed because of invalid memory access. This patch adds detection for failed memory allocations and make the server output a proper error message.
[19 Nov 2007 17:03]
Kristofer Pettersson
Patch revisited to fix: 1. Don't generate warnings in push_warnings 2. Don't crash because of double free on vio-object. 3. Cover more execution paths which might be affected by this test case.
[6 Dec 2007 9:55]
Bugs System
Pushed into 5.0.54
[6 Dec 2007 10:00]
Bugs System
Pushed into 5.1.23-rc
[6 Dec 2007 10:01]
Bugs System
Pushed into 6.0.5-alpha
[21 Dec 2007 16:54]
Paul DuBois
Noted in 5.0.54, 5.1.23, 6.0.5 changelogs. The server crashed in the parser when running out of memory. Memory handling in the parser has been improved to gracefully return an error when out-of-memory conditions occur in the parser.