Bug #15079 "create table" crashes Query Browser
Submitted: 20 Nov 2005 10:21 Modified: 9 Jan 2006 23:40
Reporter: Christian Mittendorf Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.1.17 OS:MacOS (Mac OS X)
Assigned to: Alfredo Kojima CPU Architecture:Any

[20 Nov 2005 10:21] Christian Mittendorf
Description:
Query Browser crashes when trying to create a new table making a column primary key.

How to repeat:
Select "create table" control clicking on a schema. In the Table Editor use "+" to add a column, set name and type. Then click "primary key" and the app crashes with this message:

Suggested fix:
Somewhere here ;-)

Date/Time:      2005-11-20 11:18:35.471 +0100
OS Version:     10.4.3 (Build 8F46)
Report Version: 3

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

Version: ??? (1.1.17)

PID:    18676
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000010

Thread 0 Crashed:
0   com.mysql.MySQLToolsCommon 	0x1000aae8 addColumnToIndex + 24
1   <<00000000>> 	0x3ff00000 0 + 1072693248
2   com.mysql.MySQLToolsCommon 	0x1000e1e0 -[MTableEditor handleColumnValueChange:] + 788
3   com.apple.AppKit           	0x93722a20 -[NSApplication sendAction:to:from:] + 108
4   com.apple.AppKit           	0x93830cd0 -[NSMatrix sendAction:to:] + 124
5   com.apple.AppKit           	0x93722834 -[NSCell _sendActionFrom:] + 156
6   com.apple.AppKit           	0x9373c84c -[NSCell trackMouse:inRect:ofView:untilMouseUp:] + 1020
7   com.apple.AppKit           	0x9373c434 -[NSButtonCell trackMouse:inRect:ofView:untilMouseUp:] + 564
8   com.apple.AppKit           	0x938b66b8 -[NSMatrix _mouseDownSimpleTrackingMode:] + 752
9   com.apple.AppKit           	0x9382f274 -[NSMatrix mouseDown:] + 296
10  com.apple.AppKit           	0x936dd660 -[NSWindow sendEvent:] + 4616
11  com.apple.AppKit           	0x936866f4 -[NSApplication sendEvent:] + 4172
12  com.apple.AppKit           	0x9367db30 -[NSApplication run] + 508
13  com.apple.AppKit           	0x9376e618 NSApplicationMain + 452
14  com.mysql.QueryBrowser     	0x00008b00 _start + 392 (crt.c:267)
15  com.mysql.QueryBrowser     	0x00008974 start + 48
[20 Nov 2005 10:24] Christian Mittendorf
Duplicate to 15001
[20 Nov 2005 11:53] Valeriy Kravchuk
Thank you for a bug report. Bug report #15001 was marked as a duplicate of this one, because this contains more information for the analysis.
[21 Nov 2005 17:53] Jorge del Conde
Thanks for your bug report.  I was able to reproduce this bug under 10.4.2, and indeed, QB crashes each time one tries to make a column pk.
[30 Nov 2005 11:05] Bill Burcham
Selecting the "Auto Increment" check box for the new column (without checking the "Primary Key" check box) also causes the application to crash.  Here's some details:

Date/Time:      2005-11-30 05:00:00.608 -0600
OS Version:     10.4.3 (Build 8F46)
Report Version: 3

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

Version: ??? (1.1.17)

PID:    2850
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000010

Thread 0 Crashed:
0   com.mysql.MySQLToolsCommon 	0x1000ab88 removeColumnFromIndex + 64
1   com.mysql.MySQLToolsCommon 	0x1000e220 -[MTableEditor handleColumnValueChange:] + 852
[2 Dec 2005 11:16] Harald Wagener
The same happens on 10.4.3 as well.
[8 Dec 2005 8:02] Valeriy Kravchuk
Bug #15563 is marked as duplicate of this one.
[9 Jan 2006 23:40] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html