Bug #18441 MessageBox function used in server code on windows
Submitted: 22 Mar 2006 22:11 Modified: 1 Aug 2008 11:15
Reporter: Magnus Blåudd Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0 OS:Windows (windows)
Assigned to: Vladislav Vaintroub CPU Architecture:Any

[22 Mar 2006 22:11] Magnus Blåudd
Description:
The windows function 'MessageBox' is used in several places of the MySQL server code to pop up messages when some kind of error occurs.

How to repeat:
Manual code inspection.

Suggested fix:
Remove the MessageBox and write the error message to the logs or stderr instead.
[7 Jan 2007 2:52] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/17703

ChangeSet@1.2366, 2007-01-07 03:52:29+01:00, kent@mysql.com +3 -0
  mysqld.cc, sql_parse.cc, mysql_priv.h:
    On Windows, only open dialog window if '--console' is given (bug#18441)
[15 Jan 2007 17:54] Kent Boortz
Patch rejected from review
[5 Mar 2007 10:33] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/21106

ChangeSet@1.2457, 2007-03-05 11:02:40+01:00, msvensson@pilot.blaudden +1 -0
  Bug#18441 MessageBox function used in server code on windows(part ) 
   - Handle error to create a named pipe in just the same way as
     failure to create the server socket. Log the error and 
     abort startup.
[14 May 2007 15:19] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/26619

ChangeSet@1.2479, 2007-05-14 17:19:21+02:00, msvensson@pilot.blaudden +3 -0
  Bug#18441 MessageBox function used in server code on windows
   - Send error messages to log file insteasd of popping up a message
   - Rework signal handler code to either shutdown using the shutdown
     thread or call 'handle_segfault' to print out crash info and then
     crash the mysqld.
[21 Feb 2008 10:29] Vladislav Vaintroub
Solved with related Bug#33484
[1 Aug 2008 11:15] Magnus Blåudd
Fixed by http://bugs.mysql.com/bug.php?id=31745