Bug #3755 MySQLCC Illegal Error
Submitted: 14 May 2004 3:40 Modified: 19 Jun 2004 20:23
Reporter: John stanley Email Updates:
Status: No Feedback Impact on me:
Category:MySQLCC Severity:S3 (Non-critical)
Version:0.9.4-beta OS:Microsoft Windows (Windows 98SE)
Assigned to: Bugs System CPU Architecture:Any

[14 May 2004 3:40] John stanley
Upon Shutdown of mysqlcc, the following error occurs:

MYSQLCC caused an invalid page fault in
module KERNEL32.DLL at 0177:bff7b9a6.
EAX=00000000 CS=0177 EIP=bff7b9a6 EFLGS=00000246
EBX=00937ef0 SS=017f ESP=01c7fbc8 EBP=00873e2c
ECX=01c7fbe4 DS=017f ESI=015ca3f0 FS=19ff
EDX=00873e20 ES=017f EDI=008736e0 GS=1a16
Bytes at CS:EIP:
ff 76 04 e8 13 89 ff ff 5e c2 04 00 56 8b 74 24 
Stack dump:
00937ef0 015c55ac 015ca3f0 00937ef0 76003481 01c7fbe4 00873e20 00937ef0 7600265e 00000000 00873e20 00873e60 00873e6c 76003283 00873e60 7600e420 

I'm not sure what causes this, nor how to fix it.
Help is appreciated

How to repeat:
Start MySQLCC then Shutdown
[19 May 2004 4:38] MySQL Verification Team
Please try to run MySQLCC changing its libmysql.dll for the
one shipped with the MySQL server located at \mysql\lib\opt.

Thanks you
[19 May 2004 20:21] John stanley
I followed the recommendation to replace the file "libmySQL.dll" with the version in mysql\lib\opt.   Unfortunately, this did not eliminate the original error and also caused another illegal error upon connecting to/querying any existing database:

MYSQLCC caused an invalid page fault in
module MSVCRT.DLL at 0177:78001c9d.
EAX=023486b0 CS=0177 EIP=78001c9d EFLGS=00010246
EBX=00000500 SS=017f ESP=0261fcd8 EBP=0261fcec
ECX=00000500 DS=017f ESI=ffffffff FS=1de7
EDX=023486a0 ES=017f EDI=023486b0 GS=0000
Bytes at CS:EIP:
8b 01 ba ff fe fe 7e 03 d0 83 f0 ff 33 c2 83 c1 

I also tried other versions of libmySQL.dll (e.g. php\dlls\libmySQL.dll, mysql\lib\debug\libmySQL.dll, etc.) with the same errors (Invalid Page Faults in kernel32.dll and MSVCRT.dll).

I replaced libmySQL.dll for MySQLCC with the and do not have the MSVCRT.dll error anymore, only the error with Kernel32.dll upon shutdown.

I did notice that msvcrt.dll in %WINDIR%\System is version "6.10.8924.0", while in the mysqlcc directory is version "7.0.2600.1106 (xpsp1.020828-1920)".   This may be the cause for the invalid page fault when replacing libmysql.dll in Windows98SE.   (I haven't tested this with another OS yet to be sure.)

Note: I also noticed that the kernel32.dll error only occurs when MySQLCC is used to connect to a database.   If no database is connected/queried, the error does not occur upon shutdown.
[19 May 2004 20:23] John stanley
(On my last entry - clarification)
I replaced libmysql.dll for mysqlcc with the original supplied with MySQLCC to clear the MSVCRT.DLL error.
[14 Feb 2005 22:54] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".