Bug #22464 Unfriendly crash when disabling connections over TCP/IP (skip-networking)
Submitted: 19 Sep 2006 6:27 Modified: 31 Oct 2006 10:56
Reporter: Cezary Okupski Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S3 (Non-critical)
Version:1.2.3beta OS:MacOS (Mac OS X)
Assigned to: CPU Architecture:Any
Tags: crash, disable networking, skip-networking, table editor

[19 Sep 2006 6:27] Cezary Okupski
Description:
Query Browser crashes when you toggle "Disable networking" option while it is working and connected to a database.

Server:
MySQL 5.0.22-max on "localhost"; Power Macintosh (PowerPC G4) 1500.0 MHz, 512 MB RAM

Basic crash information:
2006-09-19 01:03:44 +0200
EXC_BAD_ACCESS (0x0001)
KERN_PROTECTION_FAILURE (0x0002) at 0x00000000

Thread 0 Crashed:
0    -[MTableEditor showTable:catalog:schema:] + 2928 (icplusplus.c:28)
1    -[MSchemaEditHelper editTable:] + 712 (icplusplus.c:28)
2    -[MSchemaEditHelper editSelection:] + 264 (icplusplus.c:28)
3    -[NSApplication sendAction:to:from] + 108
4    -[NSMenu performActionForItemAtIndex:] + 392
5    -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 104
6    _NSPopUpCarbonMenu2 + 2480
7    _NSPopUpCarbonMenu1 + 44
8    -[NSCarbonMenuImpl _popUpContextMenu:withEvent:forView:withFont:] + 168
9    -[NSMenu _popUpContextMenu:withEvent:forView:withFont:] + 216

After clicking "Report…"
Date/Time:      2006-09-19 01:03:44.696 +0200
OS Version:     10.4.7 (Build 8J135)
Report Version: 4

Command: MySQL Query Browser
Path:    /Applications/MySQL Tools/MySQL Query Browser.app/Contents/MacOS/MySQL Query Browser
Parent:  WindowServer [57]

Version: ??? (1.2.3beta)

How to repeat:
Connect to a database XXX with e. g. MySQL Administrator (I guess you could perform following steps with any other configuration tool or by hand)
Go to "Options" and ensure that "Disable networking" (for mysqld) is unchecked; uncheck if necessary, save, and restart server
(I believe the previous step is equivalent to ensuring that my.cnf does not contain skip-networking)
Connect to the XXX with MySQL Query Browser
While MySQL Query Browser is open change settings in MySQL Administrator - check "Disable networking" (for mysqld), save, and restart server
(or add skip-networking to my.cnf)
Try executing on any table in XXX "Edit Table"
[22 Oct 2006 10:34] Valeriy Kravchuk
Thank you for a problem report. Please, try to repeat with a newer version, 1.2.4 rc, and inform about the results.
[31 Oct 2006 10:56] Cezary Okupski
It seems to be fixed in 1.2.4rc.