| Bug #10193 | Invalid DataDir in config causes ndbd segfault | ||
|---|---|---|---|
| Submitted: | 27 Apr 2005 5:27 | Modified: | 7 May 2005 7:22 |
| Reporter: | Stewart Smith | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Cluster: Cluster (NDB) storage engine | Severity: | S3 (Non-critical) |
| Version: | OS: | ||
| Assigned to: | Stewart Smith | CPU Architecture: | Any |
[28 Apr 2005 1:42]
Stewart Smith
Code is common in 4.1, 5.0 and 5.1. Problem will exist in all (have reproduced on 5.1)
[6 May 2005 9:12]
Stewart Smith
Have asked for review of a patch.
[7 May 2005 7:22]
Stewart Smith
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.
If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information
about accessing the source trees is available at
http://www.mysql.com/doc/en/Installing_source_tree.html
Additional info:
Committed to 4.1-ndb tree

Description: ErrorReporter.cpp:240 stream = fopen(theErrorFileName, "w"); fprintf(stream, "%s%u%s", "Current byte-offset of file-pointer is: ", 69, " \n\n\n"); return value of fopen isn't checked. If path is invalid, crash. How to repeat: set DataDir in config.ini to something invalid (e.g. /pants... unless you have a /pants) Suggested fix: Gracefully exit with error