Bug #279 embedded MySQL server in simple example client can't be debugged
Submitted: 11 Apr 2003 23:58 Modified: 25 Apr 2003 9:23
Reporter: Roland Bengtsson Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Embedded Library ( libmysqld ) Severity:S2 (Serious)
Version:4.0.12 OS:Microsoft Windows (Windows 2000 SP3)
Assigned to: Miguel Solorzano CPU Architecture:Any

[11 Apr 2003 23:58] Roland Bengtsson
Description:
I downloaded the latest mysql for Windows. Then I load C:\mysql\Embedded\embedded.dsw in Visual C++ 6.0.

I change the Active configuration to debug and start to singlestep the code.
At line 54, "mysql_close(two);" the program crash with a requester "User breakpoint called from code at 0x77f91180c".

If I switch to the commandline and run the program in Release configuration it seems to run fine.

I think this is serious because if someone want to use the embedded library (like me) this is a obstacle to continue. A example should run without problems on all platforms.

/Roland

How to repeat:
[13 Apr 2003 7:49] Miguel Solorzano
Thanks for the debug report I was be able to repeat.

This issue generally happens when there are a mix of
the code generation definition (Debug Multithreaded,
Multithreaded, ect) between the application debugged
and the libraries involved.

However the application debugged doesn't crash, just
is invoked the break point (int 3) and you can to
continue clicking OK and using F11 or SHIFT+F11 in the
disassembly window.
[14 Apr 2003 1:03] Roland Bengtsson
Is it possible to fix this so the program is not stopped at the breakpoint?

/Roland
[25 Apr 2003 9:23] Michael Widenius
This is not a full, selfcontained repeatable bug.

It's also not likely a bug in MySQL but a bug in the environment how the application program is called or in the debugger