Bug #13283 switching schemas for query crashes app
Submitted: 16 Sep 2005 20:35 Modified: 20 Sep 2005 20:01
Reporter: Axel Muench Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S2 (Serious)
Version:1.1.1beta OS:MacOS (OSX 10.4)
Assigned to: Bugs System CPU Architecture:Any

[16 Sep 2005 20:35] Axel Muench
Description:

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

Thread 0 Crashed:
0   com.mysql.MySQLToolsCommon 	0x10049644 make_new_word + 408
1   com.mysql.MySQLToolsCommon 	0x10049e20 myx_highlight + 1332
2   com.mysql.MySQLToolsCommon 	0x10023ed8 -[MSQLSyntaxColoring recolorRange:] + 300
3   com.mysql.MySQLToolsCommon 	0x1002278c -[MSyntaxColoring doRecoloring:] + 92
4   com.apple.Foundation       	0x9288d998 __NSFireDelayedPerform + 304
5   com.apple.CoreFoundation   	0x9075ed10 __CFRunLoopDoTimer + 184
6   com.apple.CoreFoundation   	0x9074b688 __CFRunLoopRun + 1680
7   com.apple.CoreFoundation   	0x9074ac3c CFRunLoopRunSpecific + 268
8   com.apple.Foundation       	0x92891ec4 -[NSRunLoop runMode:beforeDate:] + 172
9   com.apple.Foundation       	0x928d6c4c -[NSRunLoop runUntilDate:] + 80
10  com.apple.AppKit           	0x93880318 NSCoreDragTrackingProc + 1424
11  com.apple.HIServices       	0x917add00 DoTrackingMessage + 300
12  com.apple.HIServices       	0x917ae590 SendTrackingMessage + 52
13  com.apple.HIServices       	0x917ae124 DragInApplication + 656
14  com.apple.HIServices       	0x917ad9dc DragLoop + 132
15  com.apple.HIServices       	0x917acae0 CoreDragStartDragging + 200
16  com.apple.AppKit           	0x938879cc -[NSCoreDragManager _dragUntilMouseUp:accepted:] + 552
17  com.apple.AppKit           	0x93887248 -[NSCoreDragManager dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:] + 1120
18  com.apple.AppKit           	0x93886dd4 -[NSWindow(NSDrag) dragImage:at:offset:event:pasteboard:source:slideBack:] + 136
19  com.apple.AppKit           	0x93886d38 -[NSView(NSDrag) dragImage:at:offset:event:pasteboard:source:slideBack:] + 164
20  com.apple.AppKit           	0x9388a034 -[NSOutlineView dragImage:at:offset:event:pasteboard:source:slideBack:] + 180
21  com.apple.AppKit           	0x938895c4 -[NSTableView _doImageDragUsingRowsWithIndexes:event:pasteboard:source:slideBack:] + 576
22  com.apple.AppKit           	0x936e06d0 -[NSTableView _performDragFromMouseDown:] + 556
23  com.apple.AppKit           	0x936df77c -[NSTableView mouseDown:] + 412
24  com.apple.AppKit           	0x9379f4b8 -[NSOutlineView mouseDown:] + 680
25  com.apple.AppKit           	0x9367f9c8 -[NSWindow sendEvent:] + 4616
26  com.apple.AppKit           	0x93628bfc -[NSApplication sendEvent:] + 4172
27  com.apple.AppKit           	0x93620090 -[NSApplication run] + 508
28  com.apple.AppKit           	0x937108bc NSApplicationMain + 452
29  com.mysql.QueryBrowser     	0x00008b00 _start + 392 (crt.c:267)
30  com.mysql.QueryBrowser     	0x00008974 start + 48

Thread 1:
0   libSystem.B.dylib          	0x9002ca98 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib          	0x9003127c pthread_cond_wait + 508
2   com.apple.Foundation       	0x9288a0a0 -[NSConditionLock lockWhenCondition:] + 68
3   com.apple.AppKit           	0x936c07f8 -[NSUIHeartBeat _heartBeatThread:] + 324
4   com.apple.Foundation       	0x92882f34 forkThreadForFunction + 108
5   libSystem.B.dylib          	0x9002c3d4 _pthread_body + 96

Thread 2:
0   libSystem.B.dylib          	0x9002ca98 semaphore_wait_signal_trap + 8
1   libSystem.B.dylib          	0x9003127c pthread_cond_wait + 508
2   com.mysql.MySQLToolsCommon 	0x100082f8 -[MMySQLDispatcher(Private) getNextRequest] + 56
3   com.mysql.MySQLToolsCommon 	0x1000865c processRequests + 48
4   libSystem.B.dylib          	0x9002c3d4 _pthread_body + 96

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000010049644 srr1: 0x000000000200f030                        vrsave: 0x0000000000000000
    cr: 0x44028222          xer: 0x0000000020000004   lr: 0x0000000010049624  ctr: 0x0000000000000000
    r0: 0x0000000000000000   r1: 0x00000000bfffd090   r2: 0x0000000000000000   r3: 0x0000000000000006
    r4: 0x000000000506b300   r5: 0x0000000000000000   r6: 0x00000000fefefeff   r7: 0x0000000080808080
    r8: 0x0000000000000054   r9: 0x0000000010049624  r10: 0x00000000100af490  r11: 0x00000000100b16e0
   r12: 0x0000000000000001  r13: 0x0000000000000000  r14: 0x0000000000000001  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000000000  r21: 0x000000000506ad36  r22: 0x000000000505ecb0  r23: 0x000000000506ad30
   r24: 0x0000000000000000  r25: 0x0000000000000005  r26: 0x000000000505ecb0  r27: 0x000000000506b300
   r28: 0x000000000194c200  r29: 0x0000000000000005  r30: 0x0000000000000000  r31: 0x00000000100494b8

Binary Images Description:
    0x1000 -    0x27fff com.mysql.QueryBrowser ??? (1.1.1-beta)	/Applications/MySQL Query Browser.app/Contents/MacOS/MySQL Query Browser
 0x1798000 -  0x179efff com.apple.DictionaryServiceComponent 1.0.0	/System/Library/Components/DictionaryService.component/Contents/MacOS/

How to repeat:
1 - query in first schema via drag and drop select
2 - switch to other schema by double-clicking triangle next to schema name
3 - query in new schema via drag and drop select
4 - app crashes
[16 Sep 2005 20:52] Jorge del Conde
Thanks for your bug report.  I was able to reporduce this problem using the supplied how-to-repeat under OSX 10.4
[20 Sep 2005 20:01] 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