Bug #35437 potential crash with ALTER SERVER statement when out of memory
Submitted: 19 Mar 2008 13:01 Modified: 19 Mar 2008 14:02
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Federated storage engine Severity:S3 (Non-critical)
Version:5.1.x OS:Any
Assigned to: CPU Architecture:Any
Tags: alter server, OOM
Triage: Triaged: D2 (Serious)

[19 Mar 2008 13:01] Shane Bester
Description:
Related to bug #34790 ('create server' doesn't handle out of memory scenario well enough)

In low-memory situations it is possible ALTER SERVER can crash the server.

How to repeat:
Read the code.  Memory allocation failures can be better detected in some places in sql_servers.cc:

alter_server() 
prepare_server_struct_for_update()
[19 Mar 2008 14:02] Valeriy Kravchuk
Thank you for a bug report.