Bug #51358 crash when using ambiguous options to mysqld on windows
Submitted: 20 Feb 2010 21:01 Modified: 4 Mar 2010 14:21
Reporter: Shane Bester (Platinum Quality Contributor) Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Options Severity:S1 (Critical)
Version:5.5.1-m2 OS:Windows
Assigned to: Alexey Botchkov CPU Architecture:Any
Tags: regression

[20 Feb 2010 21:01] Shane Bester
Description:
on windows, mysqld crashes when an ambiguous option is given:

H:\mysql\5.5\5.5.1>mysqld-debug --no-defaults --g
100220 23:00:38 [ERROR] mysqld-debug: ambiguous option '--g' (gdb, group_concat_max_len)
100220 23:00:38 [ERROR] Aborting

Stack:
mysqld-debug.exe!clean_up(bool print_message=true)  Line 1375
mysqld-debug.exe!unireg_abort(int exit_code=0x00000001)  Line 1265
mysqld-debug.exe!win_main()  Line 4357
mysqld-debug.exe!mysql_service(void * p=0x00000000)  Line 4624
mysqld-debug.exe!main()  Line 4810
mysqld-debug.exe!__tmainCRTStartup()  Line 327
mysqld-debug.exe!mainCRTStartup()  Line 196

How to repeat:
I extracted mysql-noinstall-5.5.1-m2-win32.zip and run:

mysqld-debug.exe --no-defaults --g
[21 Feb 2010 15:58] Valeriy Kravchuk
Thank you for the bug report. Verified just as described.

5.1.43 just outputs messages and does NOT crash:

C:\Program Files\MySQL\MySQL Server 5.1\bin>mysqld-debug.exe --no-defaults --g
100221 17:54:18 [ERROR] mysqld-debug.exe: ambiguous option '--g' (gdb, group_con
cat_max_len)
100221 17:54:18 [ERROR] Aborting

so this is a regression in 5.5.x comparing to 5.1.x.
[4 Mar 2010 14:21] Alexey Botchkov
Can't reproduce this bug with the current mysql-next-mr-bugfixing tree.