Bug #11156 Crash on query
Submitted: 8 Jun 2005 5:53 Modified: 14 Jun 2005 5:02
Reporter: Owen Rodda Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Query Browser Severity:S1 (Critical)
Version:1.0.2-alpha OS:Mac OS X (OS X 10.3.9 (Panther))
Assigned to: CPU Architecture:Any

[8 Jun 2005 5:53] Owen Rodda
Description:
Query browser crashes on query.  Unreliable, frequency apparently proportional to number of results.  Database is on localhost.  Example crash log included below.

Host Name:      dhcp236.rh04.livedoor.intranet
Date/Time:      2005-06-08 14:24:10 +0900
OS Version:     10.3.9 (Build 7W98)
Report Version: 2

Command: MySQL Query Browser
Path:    /Applications/MySQL Query Browser.app/Contents/MacOS/MySQL Query Browser
Version: ??? (1.0.2-alpha)
PID:     10132
Thread:  0

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

Thread 0 Crashed:
0   libSystem.B.dylib          	0x90007220 strlen + 0x20
1   com.apple.Foundation       	0x90a25c04 +[NSString stringWithUTF8String:] + 0x24
2   com.mysql.MySQLToolsCommon 	0x10030884 -[MQResultSetView displayResults:] + 0xa4c (MQResultSetView.mm:750)
3   com.apple.Foundation       	0x90a7fe90 __NSFirePerformTimer + 0x108
4   com.apple.CoreFoundation   	0x901c1c80 __CFRunLoopDoObservers + 0x194
5   com.apple.CoreFoundation   	0x901c151c __CFRunLoopRun + 0x18c
6   com.apple.CoreFoundation   	0x901c5e6c CFRunLoopRunSpecific + 0x148
7   com.apple.HIToolbox        	0x92885f60 RunCurrentEventLoopInMode + 0xac
8   com.apple.HIToolbox        	0x9288c6c8 ReceiveNextEventCommon + 0x17c
9   com.apple.HIToolbox        	0x928ae6a0 BlockUntilNextEventMatchingListInMode + 0x60
10  com.apple.AppKit           	0x92e826dc _DPSNextEvent + 0x180
11  com.apple.AppKit           	0x92e9915c -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 0x74
12  com.apple.AppKit           	0x92ead4dc -[NSApplication run] + 0x21c
13  com.apple.AppKit           	0x92f69bec NSApplicationMain + 0x1d0
14  com.mysql.QueryBrowser     	0x00005ebc main + 0x3c (main.m:13)
15  com.mysql.QueryBrowser     	0x000056cc _start + 0x15c (crt.c:272)
16  com.mysql.QueryBrowser     	0x0000556c start + 0x3c

Thread 1:
0   libSystem.B.dylib          	0x900171d8 semaphore_wait_signal_trap + 0x8
1   libSystem.B.dylib          	0x9000e9dc _pthread_cond_wait + 0x270
2   com.apple.Foundation       	0x90a7c5f0 -[NSConditionLock lockWhenCondition:] + 0x44
3   com.apple.AppKit           	0x92e7a57c -[NSUIHeartBeat _heartBeatThread:] + 0x190
4   com.apple.Foundation       	0x90a6a510 forkThreadForFunction + 0x6c
5   libSystem.B.dylib          	0x90024910 _pthread_body + 0x28

Thread 2:
0   libSystem.B.dylib          	0x900171d8 semaphore_wait_signal_trap + 0x8
1   libSystem.B.dylib          	0x9000e9dc _pthread_cond_wait + 0x270
2   com.mysql.MySQLToolsCommon 	0x1000c1c0 -[MMySQLDispatcher(Private) getNextRequest] + 0x64 (MMySQLDispatcher.m:129)
3   com.mysql.MySQLToolsCommon 	0x1000c76c processRequests + 0x54 (MMySQLDispatcher.m:226)
4   libSystem.B.dylib          	0x90024910 _pthread_body + 0x28

PPC Thread State:
  srr0: 0x90007220 srr1: 0x0200f030                vrsave: 0x00000000
    cr: 0x24002484  xer: 0x00000004   lr: 0x90a25c04  ctr: 0x90007200
    r0: 0x90a25c04   r1: 0xbfffe890   r2: 0x0030c344   r3: 0xfffffffc
    r4: 0x00000000   r5: 0xfefefeff   r6: 0x80808080   r7: 0x00000006
    r8: 0x04a025dd   r9: 0x00000000  r10: 0x9089a4f0  r11: 0xa0a21108
   r12: 0x90007200  r13: 0x00000000  r14: 0x00000000  r15: 0x00000001
   r16: 0x00000000  r17: 0xbffff630  r18: 0x00000000  r19: 0xa01c1afc
   r20: 0x00312c70  r21: 0x00000002  r22: 0x00312d88  r23: 0x00312d80
   r24: 0x00000000  r25: 0x102d6adc  r26: 0x9089a494  r27: 0xa0a360e0
   r28: 0x00000000  r29: 0xa0a360e0  r30: 0xbfffe8f0  r31: 0x90a25be0

Binary Images Description:
    0x1000 -    0x28fff com.mysql.QueryBrowser ??? (1.0.2-alpha)	/Applications/MySQL Query Browser.app/Contents/MacOS/MySQL Query Browser
  0x2f1000 -   0x2f2fff com.ecamm.pluginloader Ecamm Plugin Loader v1.0 (1.0)	/Library/InputManagers/Ecamm/Ecamm Plugin Loader.bundle/Contents/MacOS/Ecamm Plugin Loader
  0x631000 -   0x632fff net.culater.SIMBL 0.2 (3)	/Library/InputManagers/SIMBL/SIMBL.bundle/Contents/MacOS/SIMBL
  0x63c000 -   0x63cfff com.kitzkikz.Sogudi Sogudi 0.4.6 (0.4.6)	/Users/owen/Library/InputManagers/Sogudi/Sogudi.bundle/Contents/MacOS/Sogudi
  0x645000 -   0x646fff com.li.hao.saftloader 1.1.0 (218)	/Library/InputManagers/Saft/SaftLoader.bundle/Contents/MacOS/SaftLoader
 0x4659000 -  0x471afff com.apple.Kotoeri 4.0.0	/System/Library/Components/Kotoeri.component/Contents/MacOS/Kotoeri
0x10000000 - 0x101d5fff com.mysql.MySQLToolsCommon ??? (1.0)	/Applications/MySQL Query Browser.app/Contents/MacOS/../Frameworks/MySQLToolsCommon.framework/Versions/1.0.0/MySQLToolsCommon
0x80830000 - 0x8090efff libxml2.2.dylib 	/usr/lib/libxml2.2.dylib
0x80a50000 - 0x80ad4fff libstdc++.6.dylib 	/usr/lib/libstdc++.6.dylib
0x80c80000 - 0x80c88fff libgcc_s.1.dylib 	/usr/lib/libgcc_s.1.dylib
0x81f50000 - 0x81f53fff libmx.A.dylib 	/usr/lib/libmx.A.dylib
0x8eea0000 - 0x8eeb6fff libJapaneseConverter.dylib 	/System/Library/CoreServices/Encodings/libJapaneseConverter.dylib
0x8fe00000 - 0x8fe4ffff dyld 	/usr/lib/dyld
0x90000000 - 0x9014ffff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x901c0000 - 0x9026dfff com.apple.CoreFoundation 6.3.7 (299.35)	/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x902b0000 - 0x90529fff com.apple.CoreServices.CarbonCore 10.3.7	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90584000 - 0x905f3fff com.apple.framework.IOKit 1.3.6 (???)	/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90610000 - 0x9069afff com.apple.CoreServices.OSServices 3.0.1	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
0x90700000 - 0x90700fff com.apple.CoreServices 10.3 (???)	/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x907c7000 - 0x907cffff libbsm.dylib 	/usr/lib/libbsm.dylib
0x907f0000 - 0x907f9fff com.apple.DiskArbitration 2.0.5	/System/Library/PrivateFrameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x90810000 - 0x90810fff com.apple.ApplicationServices 1.0 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
0x90830000 - 0x9089ffff libobjc.A.dylib 	/usr/lib/libobjc.A.dylib
0x908c5000 - 0x90915fff com.apple.HIServices 1.4.1 (0.0.1d1)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
0x90940000 - 0x909b3fff com.apple.DesktopServices 1.2.5	/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x90a20000 - 0x90b7bfff com.apple.Foundation 6.3.7 (500.59)	/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x90c32000 - 0x90c46fff libCGATS.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x90d00000 - 0x90d1bfff com.apple.SystemConfiguration 1.7.1 (???)	/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
0x90d40000 - 0x90d40fff com.apple.Carbon 10.3 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
0x90d70000 - 0x90da8fff com.apple.AE 1.4	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x90ec0000 - 0x90ec0fff com.apple.Cocoa 6.3 (???)	/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
0x910b0000 - 0x91101fff com.apple.bom 1.2.5 (63.2)	/System/Library/PrivateFrameworks/Bom.framework/Versions/A/Bom
0x912e0000 - 0x912f7fff com.apple.LangAnalysis 1.5.4	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
0x91303000 - 0x9136cfff com.apple.htmlrendering 1.1.2	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering
0x913a0000 - 0x9145ffff ColorSync 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
0x915e0000 - 0x91699fff com.apple.QD 3.4.67 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
0x916e0000 - 0x91773fff com.apple.print.framework.PrintCore 3.3	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x917e0000 - 0x917f0fff com.apple.speech.recognition.framework 3.3	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
0x91810000 - 0x9182afff com.apple.openscripting 1.2.1 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
0x91850000 - 0x91860fff com.apple.ImageCapture 2.1.5	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
0x91890000 - 0x9189cfff com.apple.help 1.0.1	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x918c0000 - 0x918cdfff com.apple.CommonPanels 1.2.1 (1.0)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
0x918f0000 - 0x9193efff com.apple.print.framework.Print 3.3	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x91967000 - 0x91972fff libCSync.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x91990000 - 0x9199bfff com.apple.securityhi 1.2 (90)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
0x91a40000 - 0x91ab3fff com.apple.NavigationServices 3.3.3	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices
0x91b10000 - 0x91b2afff libPDFRIP.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPDFRIP.A.dylib
0x91b50000 - 0x91b5ffff libPSRIP.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libPSRIP.A.dylib
0x91b80000 - 0x91b93fff libRIP.A.dylib 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x92070000 - 0x92096fff com.apple.FindByContent 1.4 (1.2)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent
0x920c0000 - 0x922a7fff com.apple.security 2.4 (177)	/System/Library/Frameworks/Security.framework/Versions/A/Security
0x92430000 - 0x92468fff com.apple.LaunchServices 10.3.5 (98.4)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
0x927b2000 - 0x927e0fff libssl.0.9.7.dylib 	/usr/lib/libssl.0.9.7.dylib
0x927f0000 - 0x92827fff com.apple.CFNetwork 1.2.1 (7)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
0x92880000 - 0x92c05fff com.apple.HIToolbox 1.3.6 (???)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
0x92e70000 - 0x9336ffff com.apple.AppKit 6.3.8 (743.39)	/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x939a0000 - 0x939b4fff libcups.2.dylib 	/usr/lib/libcups.2.dylib
0x939d0000 - 0x939d4fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
0x945b0000 - 0x945b9fff libz.1.dylib 	/usr/lib/libz.1.dylib
0x94610000 - 0x9462afff libresolv.9.dylib 	/usr/lib/libresolv.9.dylib
0x94650000 - 0x946affff com.apple.SearchKit 1.0.2	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
0x946ed000 - 0x94705fff com.apple.WebServices 1.1.1 (1.1.0)	/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore
0x94800000 - 0x9488cfff com.apple.ink.framework 101.1.4 (55.12)	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x94d3f000 - 0x94df7fff com.apple.audio.toolbox.AudioToolbox 1.3.3	/System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x954c0000 - 0x95ac6fff libBLAS.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
0x95b20000 - 0x95df0fff libLAPACK.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
0x95e40000 - 0x95eadfff libvDSP.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
0x95ec2000 - 0x95edffff com.apple.audio.SoundManager 3.9	/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound
0x95f00000 - 0x95f20fff libvMisc.dylib 	/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
0x9618e000 - 0x9618efff com.apple.audio.units.AudioUnit 1.3.3	/System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x968d0000 - 0x969b2fff libicucore.A.dylib 	/usr/lib/libicucore.A.dylib
0x96a20000 - 0x96ae2fff libcrypto.0.9.7.dylib 	/usr/lib/libcrypto.0.9.7.dylib
0x96b50000 - 0x96bdffff ATS 	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
0x96cb0000 - 0x96d9efff libiconv.2.dylib 	/usr/lib/libiconv.2.dylib
0x96e12000 - 0x96e25fff com.apple.speech.synthesis.framework 3.2	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x96e80000 - 0x96e90fff com.apple.vecLib 3.0.3 (vecLib 3.0.3)	/System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x96fd4000 - 0x972acfff com.apple.CoreGraphics 1.203.30 (???)	/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x97324000 - 0x9738bfff com.apple.audio.CoreAudio 2.1.3	/System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio

How to repeat:
Perform any non-trivial query.  Usually crashes on first query.

Did not reproduce crash selecting static values (e.g.  "SELECT 1 FROM hoge").  Did not reproduce crash with LIMIT 1 (but LIMIT 2 sometimes crashes).  All crashes experienced resulted in multiple rows and columns returned from the server.
[14 Jun 2005 5:02] Owen Rodda
Works fine in version 1.1.0-alpha.  Thanks.