Bug #2035 4.1.1 crash on "net start mysql" but not on --console

Submitted: 7 Dec 2003 8:17 Modified: 24 Jan 2004 8:45
Reporter: xuefer tinys Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S2 (Serious)
Version:4.1.1 OS:
Assigned to: MySQL Verification Team CPU Architecture:Any

[7 Dec 2003 8:17] xuefer tinys
Description:
crash on "net start mysql" but not on --console

detail:
*----> Ä£¿éÇåµ¥ <----*
(0000000000400000 - 0000000000740000: d:\www\mysql411\bin\mysqld-nt.exe
(0000000062c20000 - 0000000062c28000: C:\windows\System32\LPK.DLL
(0000000071a10000 - 0000000071a18000: C:\windows\System32\WS2HELP.dll
(0000000071a20000 - 0000000071a35000: C:\windows\System32\WS2_32.dll
(0000000071a40000 - 0000000071a4a000: C:\windows\System32\WSOCK32.dll
(0000000072f10000 - 0000000072f6a000: C:\windows\System32\USP10.dll
(0000000076300000 - 000000007631c000: C:\windows\System32\IMM32.DLL
(0000000077be0000 - 0000000077c33000: C:\windows\system32\msvcrt.dll
(0000000077c40000 - 0000000077c80000: C:\windows\system32\GDI32.dll
(0000000077d10000 - 0000000077d9c000: C:\windows\system32\USER32.dll
(0000000077da0000 - 0000000077e3b000: C:\windows\system32\ADVAPI32.dll
(0000000077e40000 - 0000000077f4e000: C:\windows\system32\kernel32.dll
(0000000077f50000 - 0000000077ff7000: C:\windows\System32\ntdll.dll
(0000000078000000 - 0000000078086000: C:\windows\system32\RPCRT4.dll

*----> Ïß³Ì ID 0x9fc µÄ״̬ת´¢ <----*

eax=00000000 ebx=00000002 ecx=77da214e edx=009626ae esi=00962680 edi=0071eed0
eip=0044bc66 esp=0012fd7c ebp=0012ffc0 iopl=0         nv up ei pl nz na pe nc
cs=001b  ss=0023  ds=0023  es=0023  fs=0038  gs=0000             efl=00000202

*** WARNING: Unable to verify checksum for d:\www\mysql411\bin\mysqld-nt.exe
*** ERROR: Module load completed but symbols could not be loaded for d:\www\mysql411\bin\mysqld-nt.exe
º¯Êý: mysqld-nt
        0044bc1f 8a00             mov     al,[eax]
        0044bc21 0000             add     [eax],al
        0044bc23 68c8b57200       push    0x72b5c8
        0044bc28 8d54240c         lea     edx,[esp+0xc]
        0044bc2c 52               push    edx
        0044bc2d 68ac756300       push    0x6375ac
        0044bc32 68ac756300       push    0x6375ac
        0044bc37 56               push    esi
        0044bc38 e8a3010000       call    mysqld-nt+0x4bde0 (0044bde0)
        0044bc3d 83c414           add     esp,0x14
        0044bc40 85c0             test    eax,eax
        0044bc42 0f8489010000     je      mysqld-nt+0x4bdd1 (0044bdd1)
        0044bc48 8b4604           mov     eax,[esi+0x4]
        0044bc4b 50               push    eax
        0044bc4c b9a0dc7200       mov     ecx,0x72dca0
        0044bc51 e87a3d0000       call    mysqld-nt+0x4f9d0 (0044f9d0)
        0044bc56 85c0             test    eax,eax
        0044bc58 0f845d010000     je      mysqld-nt+0x4bdbb (0044bdbb)
        0044bc5e 8b5604           mov     edx,[esi+0x4]
        0044bc61 a148e27200       mov     eax,[mysqld-nt+0x32e248 (0072e248)]
´íÎó ->0044bc66 8b8844020000     mov     ecx,[eax+0x244]   ds:0023:00000244=????????
        0044bc6c 689c646400       push    0x64649c
        0044bc71 52               push    edx
        0044bc72 50               push    eax
        0044bc73 ff5114           call    dword ptr [ecx+0x14]
        0044bc76 83c40c           add     esp,0xc
        0044bc79 85c0             test    eax,eax
        0044bc7b 7408             jz      mysqld-nt+0x4bc85 (0044bc85)
        0044bc7d 8b4604           mov     eax,[esi+0x4]
        0044bc80 a328b66300       mov     [mysqld-nt+0x23b628 (0063b628)],eax
        0044bc85 c705a8e9720001000000 mov dword ptr [mysqld-nt+0x32e9a8 (0072e9a8)],0x1
        0044bc8f 8b4e04           mov     ecx,[esi+0x4]
        0044bc92 6860bb4400       push    0x44bb60
        0044bc97 51               push    ecx
        0044bc98 b9a0dc7200       mov     ecx,0x72dca0
        0044bc9d e83e360000       call    mysqld-nt+0x4f2e0 (0044f2e0)
        0044bca2 5e               pop     esi
        0044bca3 33c0             xor     eax,eax
        0044bca5 5b               pop     ebx
        0044bca6 81c400020000     add     esp,0x200
        0044bcac c3               ret

*----> ¶ÑÕ»·´Ïò¸ú×Ù <---*
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for C:\windows\system32\kernel32.dll - 
WARNING: Stack unwind information not available. Following frames may be wrong.
ChildEBP RetAddr  Args to Child              
0012ffc0 77e614c7 0071eed0 00000000 7ffdf000 mysqld-nt+0x4bc66
0012fff0 00000000 005e09ad 00000000 78746341 kernel32!GetCurrentDirectoryW+0x44

How to repeat:
cd mysql\bin
mysqld-nt --console
OK, ctrl+c to quit

mysqld-nt --install
net start mysql
crash!
[7 Dec 2003 9:59] MySQL Verification Team
Thank you for the bug report I was able to repeat. Call stack:

>	mysqld.exe!main(int argc=2, char * * argv=0x012a2970)  Line 2794 + 0x19	C++
 	mysqld.exe!mainCRTStartup()  Line 206 + 0x19	C
 	kernel32.dll!77e714c7() 	

/sql/mysqld.cpp
--2794--

	  but we started a bad tradition by calling it MySQL from the start
	  and we are now stuck with it.
	*/
	if (my_strcasecmp(system_charset_info, argv[1],"mysql"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
	  load_default_groups[3]= argv[1];
        start_mode= 1;
        Service.Init(argv[1], mysql_service);
        return 0;
[24 Jan 2004 8:45] MySQL Verification Team
This was already fixed please try the 4.1.1a release package.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.