Bug #57931 | Crash when argc = 0 due to incorrect replacement with valid argument list | ||
---|---|---|---|
Submitted: | 2 Nov 2010 14:49 | Modified: | 29 Jul 2011 16:53 |
Reporter: | Bartosz Fabianowski | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Embedded Library ( libmysqld ) | Severity: | S3 (Non-critical) |
Version: | 5.5.6, 5.6.99 | OS: | Any |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
Tags: | Contribution |
[2 Nov 2010 14:49]
Bartosz Fabianowski
[3 Nov 2010 10:44]
Sveta Smirnova
Thank you for the report. Verified as described. To repeat get example from http://dev.mysql.com/doc/refman/5.5/en/mysql-library-init.html ("For convenience, argc may be 0 (zero) if there are...") and get: $./bug57931 my_getopt.c:125: failed assertion `argc && *argc >= 1' Abort trap
[13 Jan 2011 5:45]
[ name withheld ]
An even easier way to test this is to run mysqltest_embedded without any command-line arguments. The proposed patch fixes that for me.
[29 Jul 2011 15:46]
[ name withheld ]
This appears to have been silently fixed in 5.5.15. I appreciate the fix, but isn't there a process to follow here?
[29 Jul 2011 15:53]
Davi Arnaut
http://lists.mysql.com/commits/139170
[29 Jul 2011 16:54]
Paul DuBois
Noted in 5.5.16, 5.6.3 changelogs. The embedded server crashed when argc = 0.