Database Qt app on Mac OS X



  • My database application runs fine in Mac OS X- but when exiting, I always receive the error message "The program has unexpectedly finished"
    How to solve this ?
    Thanks in advance.

    This is my relevant code in cpp.file

    db = QSqlDatabase::addDatabase("QMYSQL");
    db.setHostName("localhost");
    db.setDatabaseName("trl");
    db.setUserName("antonio");
    db.setPassword("");
    db.open();

     if(db.isOpen()){
       QMessageBox::information( this, "", "connected" );
        }   
     else { 
       QMessageBox::information( this, "", "failed" );
        }
    
    query = QSqlQuery ("SELECT *FROM vistos", db);
    num = query.size(); 
    reg-> setText(QString("%L1").arg(num));    
    query.last();
    records();

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What stack trace do you get ?



  • @apffal

    Here it is

    Process: vistos [274]
    Path: /users/apffal/programs/qt/bdados/vistos/vistos.app/Contents/MacOS/vistos
    Identifier: com.yourcompany.vistos
    Version: ??? (???)
    Code Type: X86-64 (Native)
    Parent Process: launchd [202]

    Date/Time: 2015-06-21 23:23:20.739 +0100
    OS Version: Mac OS X 10.6.8 (10K549)
    Report Version: 6

    Interval Since Last Report: 2488311 sec
    Crashes Since Last Report: 44
    Per-App Interval Since Last Report: 994 sec
    Per-App Crashes Since Last Report: 17
    Anonymous UUID: 2F42BCBF-8388-4F2B-B4E5-7AF278B6CE99

    Exception Type: EXC_BAD_ACCESS (SIGSEGV)
    Exception Codes: KERN_INVALID_ADDRESS at 0x00000001153a1728
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread

    Thread 0 Crashed: Dispatch queue: com.apple.main-thread
    0 QtSql 0x0000000101024b2a QSqlQuery::~QSqlQuery() + 58
    1 libSystem.B.dylib 0x00007fff87fff374 __cxa_finalize + 203
    2 libSystem.B.dylib 0x00007fff87fff28c exit + 18
    3 com.yourcompany.vistos 0x00000001000033eb start + 59

    Thread 1: Dispatch queue: com.apple.libdispatch-manager
    0 libSystem.B.dylib 0x00007fff88005c0a kevent + 10
    1 libSystem.B.dylib 0x00007fff88007add _dispatch_mgr_invoke + 154
    2 libSystem.B.dylib 0x00007fff880077b4 _dispatch_queue_invoke + 185
    3 libSystem.B.dylib 0x00007fff880072de _dispatch_worker_thread2 + 252
    4 libSystem.B.dylib 0x00007fff88006c08 _pthread_wqthread + 353
    5 libSystem.B.dylib 0x00007fff88006aa5 start_wqthread + 13

    Thread 2:
    0 libSystem.B.dylib 0x00007fff88006a2a __workq_kernreturn + 10
    1 libSystem.B.dylib 0x00007fff88006e3c _pthread_wqthread + 917
    2 libSystem.B.dylib 0x00007fff88006aa5 start_wqthread + 13

    Thread 3:
    0 libSystem.B.dylib 0x00007fff88006a2a __workq_kernreturn + 10
    1 libSystem.B.dylib 0x00007fff88006e3c _pthread_wqthread + 917
    2 libSystem.B.dylib 0x00007fff88006aa5 start_wqthread + 13

    Thread 0 crashed with X86 Thread State (64-bit):
    rax: 0x00000001153a1720 rbx: 0x00000001011f5de0 rcx: 0x00000001018578a0 rdx: 0x0000000000000000
    rdi: 0x0000000115051ea0 rsi: 0x0000000000000000 rbp: 0x00007fff5fbffa90 rsp: 0x00007fff5fbffa80
    r8: 0x00007fff70e9eb88 r9: 0x0000000115429a80 r10: 0x00000001154242b0 r11: 0x0000000000000003
    r12: 0x0000000000000002 r13: 0x0000000101857800 r14: 0x000000010000d650 r15: 0x0000000000000000
    rip: 0x0000000101024b2a rfl: 0x0000000000010206 cr2: 0x00000001153a1728

    Binary Images:
    0x100000000 - 0x10000cff7 +com.yourcompany.vistos ??? (???) <15CED447-2E98-32A9-B0F5-E59782801511> /users/apffal/programs/qt/bdados/vistos/vistos.app/Contents/MacOS/vistos
    0x100013000 - 0x1004a5ff7 +QtWidgets 5.1.1 (compatibility 5.1.0) <06527C0C-32AF-3811-A8F1-DD8F99A299C3> /Users/apffal/Qt5.1.1/5.1.1/clang_64/lib/QtWidgets.framework/Versions/5/QtWidgets
    0x10063b000 - 0x100996fff +QtGui 5.1.1 (compatibility 5.1.0) <A732B35C-2C73-3860-BFCD-5CF00DB4F829> /Users/apffal/Qt5.1.1/5.1.1/clang_64/lib/QtGui.framework/Versions/5/QtGui
    0x100a9c000 - 0x100f43fff +QtCore 5.1.1 (compatibility 5.1.0) <A7F2C52B-34E7-3D9D-A008-12F98A522C8C> /Users/apffal/Qt5.1.1/5.1.1/clang_64/lib/QtCore.framework/Versions/5/QtCore
    0x101022000 - 0x10104cfff +QtSql 5.1.1 (compatibility 5.1.0) <EA6A09D7-064D-3482-8EA7-8E50DB654B3E> /Users/apffal/Qt5.1.1/5.1.1/clang_64/lib/QtSql.framework/Versions/5/QtSql
    0x101063000 - 0x101069ff7 com.apple.agl 3.0.12 (AGL-3.0.12) <E5986961-7A1E-C304-9BF4-431A32EF1DC2> /System/Library/Frameworks/AGL.framework/Versions/A/AGL
    0x101446000 - 0x10146fff7 +QtPrintSupport 5.1.1 (compatibility 5.1.0) <90FEEFCB-D9AD-369B-A4B6-6D1947ACBFDA> /Users/apffal/Qt5.1.1/5.1.1/clang_64/lib/QtPrintSupport.framework/Versions/5/QtPrintSupport
    0x101700000 - 0x101787fff +libqcocoa.dylib ??? (???) <00E4B96D-B5A7-34EE-BEC1-B226DF9F8EE4> /Users/apffal/Qt5.1.1/5.1.1/clang_64/plugins/platforms/libqcocoa.dylib
    0x7fff5fc00000 - 0x7fff5fc3be0f dyld 132.1 (???) <29DECB19-0193-2575-D838-CF743F0400B2> /usr/lib/dyld
    0x7fff80066000 - 0x7fff80066ff7 com.apple.ApplicationServices 38 (38) <10A0B9E9-4988-03D4-FC56-DDE231A02C63> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    0x7fff800e4000 - 0x7fff80174fff com.apple.SearchKit 1.3.0 (1.3.0) <4175DC31-1506-228A-08FD-C704AC9DF642> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit
    0x7fff80175000 - 0x7fff80252fff com.apple.vImage 4.1 (4.1) <C3F44AA9-6F71-0684-2686-D3BBC903F020> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage
    0x7fff80253000 - 0x7fff80294fff com.apple.SystemConfiguration 1.10.8 (1.10.2) <78D48D27-A9C4-62CA-2803-D0BBED82855A> /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    0x7fff80297000 - 0x7fff80301fe7 libvMisc.dylib 268.0.1 (compatibility 1.0.0) <AF0EA96D-000F-8C12-B952-CB7E00566E08> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib
    0x7fff80302000 - 0x7fff80304fff libRadiance.dylib ??? (???) <BF694EE5-6FDA-553A-CC89-F7135618E9C7> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib
    0x7fff8030a000 - 0x7fff803bffe7 com.apple.ink.framework 1.3.3 (107) <8C36373C-5473-3A6A-4972-BC29D504250F> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
    0x7fff803c0000 - 0x7fff803d6fe7 com.apple.MultitouchSupport.framework 207.11 (207.11) <8233CE71-6F8D-8B3C-A0E1-E123F6406163> /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport
    0x7fff8049c000 - 0x7fff804dafe7 libFontRegistry.dylib ??? (???) <395D7C0D-36B5-B353-0DC8-51ABC0B1C030> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib
    0x7fff804e9000 - 0x7fff8056eff7 com.apple.print.framework.PrintCore 6.3 (312.7) <CDFE82DD-D811-A091-179F-6E76069B432D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
    0x7fff80596000 - 0x7fff80661fff ColorSyncDeprecated.dylib 4.6.0 (compatibility 1.0.0) <86982FBB-B224-CBDA-A9AD-8EE97BDB8681> /System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Versions/A/Resources/ColorSyncDeprecated.dylib
    0x7fff80699000 - 0x7fff80716fef libstdc++.6.dylib 7.9.0 (compatibility 7.0.0) <35ECA411-2C08-FD7D-11B1-1B7A04921A5C> /usr/lib/libstdc++.6.dylib
    0x7fff80717000 - 0x7fff8071bff7 libCGXType.A.dylib 545.0.0 (compatibility 64.0.0) <DB710299-B4D9-3714-66F7-5D2964DE585B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGXType.A.dylib
    0x7fff8071c000 - 0x7fff80741ff7 com.apple.CoreVideo 1.6.2 (45.6) <E138C8E7-3CB6-55A9-0A2C-B73FE63EA288> /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
    0x7fff80742000 - 0x7fff807fffff com.apple.CoreServices.OSServices 359.2 (359.2) <BBB8888E-18DE-5D09-3C3A-F4C029EC7886> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices
    0x7fff80879000 - 0x7fff8088bfe7 libsasl2.2.dylib 3.15.0 (compatibility 3.0.0) <76B83C8D-8EFE-4467-0F75-275648AFED97> /usr/lib/libsasl2.2.dylib
    0x7fff8088c000 - 0x7fff8089dff7 libz.1.dylib 1.2.3 (compatibility 1.0.0) <97019C74-161A-3488-41EC-A6CA8738418C> /usr/lib/libz.1.dylib
    0x7fff8100c000 - 0x7fff81027ff7 com.apple.openscripting 1.3.1 (???) <9D50701D-54AC-405B-CC65-026FCB28258B> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting
    0x7fff81062000 - 0x7fff81147fef com.apple.DesktopServices 1.5.11 (1.5.11) <39FAA3D2-6863-B5AB-AED9-92D878EA2438> /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
    0x7fff81148000 - 0x7fff813d1ff7 com.apple.security 6.1.2 (55002) <D224882B-D57B-83AF-3781-548BCEACB327> /System/Library/Frameworks/Security.framework/Versions/A/Security
    0x7fff813d2000 - 0x7fff813d3ff7 com.apple.audio.units.AudioUnit 1.6.7 (1.6.7) <49B723D1-85F8-F86C-2331-F586C56D68AF> /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
    0x7fff813d4000 - 0x7fff813edfff com.apple.CFOpenDirectory 10.6 (10.6) <401557B1-C6D1-7E1A-0D7E-941715C37BFA> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory
    0x7fff81560000 - 0x7fff815a7ff7 com.apple.coreui 2 (114) <923E33CC-83FC-7D35-5603-FB8F348EE34B> /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
    0x7fff81624000 - 0x7fff8166cff7 libvDSP.dylib 268.0.1 (compatibility 1.0.0) <98FC4457-F405-0262-00F7-56119CA107B6> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib
    0x7fff8166d000 - 0x7fff81681ff7 com.apple.speech.synthesis.framework 3.10.35 (3.10.35) <621B7415-A0B9-07A7-F313-36BEEDD7B132> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
    0x7fff81682000 - 0x7fff817c0fff com.apple.CoreData 102.1 (251) <9DFE798D-AA52-6A9A-924A-DA73CB94D81A> /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData
    0x7fff81879000 - 0x7fff81899fff com.apple.DirectoryService.Framework 3.6 (621.16) <0ED4A74A-F8FB-366D-6588-F13EA397326F> /System/Library/Frameworks/DirectoryService.framework/Versions/A/DirectoryService
    0x7fff8189a000 - 0x7fff818c2fff com.apple.DictionaryServices 1.1.2 (1.1.2) <E9269069-93FA-2B71-F9BA-FDDD23C4A65E> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices
    0x7fff81d54000 - 0x7fff81daafe7 libTIFF.dylib ??? (???) <2DBEC120-DAA7-3789-36A2-A205BCDF2D72> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib
    0x7fff81dab000 - 0x7fff81f69fff libicucore.A.dylib 40.0.0 (compatibility 1.0.0) <97A75BFB-0DB6-6F44-36B0-97B7F7208ABB> /usr/lib/libicucore.A.dylib
    0x7fff81f6a000 - 0x7fff81fa5fff com.apple.AE 496.5 (496.5) <208DF391-4DE6-81ED-C697-14A2930D1BC6> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
    0x7fff81fc9000 - 0x7fff81feafe7 libPng.dylib ??? (???) <D8EC7740-EE32-865A-2F75-C9EDE2135510> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib
    0x7fff82a2e000 - 0x7fff82aadfe7 com.apple.audio.CoreAudio 3.2.6 (3.2.6) <79E256EB-43F1-C7AA-6436-124A4FFB02D0> /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
    0x7fff82b20000 - 0x7fff82ebdfe7 com.apple.QuartzCore 1.6.3 (227.37) <16DFF6CD-EA58-CE62-A1D7-5F6CE3D066DD> /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore
    0x7fff82f26000 - 0x7fff82f72fff libauto.dylib ??? (???) <F7221B46-DC4F-3153-CE61-7F52C8C293CF> /usr/lib/libauto.dylib
    0x7fff82f73000 - 0x7fff82f78fff libGFXShared.dylib ??? (???) <6BBC351E-40B3-F4EB-2F35-05BDE52AF87E> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib
    0x7fff8372a000 - 0x7fff8372dff7 libCoreVMClient.dylib ??? (???) <75819794-3B7A-8944-D004-7EA6DD7CE836> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib
    0x7fff8373a000 - 0x7fff8373bff7 com.apple.TrustEvaluationAgent 1.1 (1) <5952A9FA-BC2B-16EF-91A7-43902A5C07B6> /System/Library/PrivateFrameworks/TrustEvaluationAgent.framework/Versions/A/TrustEvaluationAgent
    0x7fff8373c000 - 0x7fff83852ff7 libxml2.2.dylib 10.3.0 (compatibility 10.0.0) <3814FCF9-92B9-A6AB-E76A-F7021894AA3F> /usr/lib/libxml2.2.dylib
    0x7fff83897000 - 0x7fff84291ff7 com.apple.AppKit 6.6.8 (1038.36) <4CFBE04C-8FB3-B0EA-8DDB-7E7D10E9D251> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    0x7fff84292000 - 0x7fff846d5fef libLAPACK.dylib 219.0.0 (compatibility 1.0.0) <0CC61C98-FF51-67B3-F3D8-C5E430C201A9> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib
    0x7fff846e6000 - 0x7fff846e6ff7 com.apple.CoreServices 44 (44) <DC7400FB-851E-7B8A-5BF6-6F50094302FB> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    0x7fff846e7000 - 0x7fff84781fff com.apple.ApplicationServices.ATS 275.19 (???) <2DE8987F-4563-4D8E-45C3-2F6F786E120D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS
    0x7fff8488d000 - 0x7fff848cefef com.apple.QD 3.36 (???) <5DC41E81-32C9-65B2-5528-B33E934D5BB4> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD
    0x7fff84b59000 - 0x7fff84b66fe7 libCSync.A.dylib 545.0.0 (compatibility 64.0.0) <1C35FA50-9C70-48DC-9E8D-2054F7A266B1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
    0x7fff84b67000 - 0x7fff84c3bfe7 com.apple.CFNetwork 454.12.4 (454.12.4) <C83E2BA1-1818-B3E8-5334-860AD21D1C80> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
    0x7fff84c3c000 - 0x7fff84cf2ff7 libobjc.A.dylib 227.0.0 (compatibility 1.0.0) <03140531-3B2D-1EBA-DA7F-E12CC8F63969> /usr/lib/libobjc.A.dylib
    0x7fff84dbb000 - 0x7fff84dc2fff com.apple.OpenDirectory 10.6 (10.6) <4FF6AD25-0916-B21C-9E88-2CC42D90EAC7> /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory
    0x7fff84dc3000 - 0x7fff84dc8fff libGIF.dylib ??? (???) <3BAD0DE8-8151-68B0-2244-A4541C738972> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib
    0x7fff84dc9000 - 0x7fff84dd4ff7 com.apple.speech.recognition.framework 3.11.1 (3.11.1) <3D65E89B-FFC6-4AAF-D5CC-104F967C8131> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition
    0x7fff84e2c000 - 0x7fff84e6fff7 libRIP.A.dylib 545.0.0 (compatibility 64.0.0) <5FF3D7FD-84D8-C5FA-D640-90BB82EC651D> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
    0x7fff84f49000 - 0x7fff85645ff7 com.apple.CoreGraphics 1.545.0 (???) <58D597B1-EB3B-710E-0B8C-EC114D54E11B> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
    0x7fff85757000 - 0x7fff8575dff7 com.apple.DiskArbitration 2.3 (2.3) <857F6E43-1EF4-7D53-351B-10DE0A8F992A> /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
    0x7fff867f1000 - 0x7fff86806ff7 com.apple.LangAnalysis 1.6.6 (1.6.6) <1AE1FE8F-2204-4410-C94E-0E93B003BEDA> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis
    0x7fff868e7000 - 0x7fff86b69fff com.apple.Foundation 6.6.8 (751.63) <E10E4DB4-9D5E-54A8-3FB6-2A82426066E4> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    0x7fff86b6a000 - 0x7fff86c89ff7 libcrypto.0.9.8.dylib 0.9.8 (compatibility 0.9.8) <0CE8D59B-D0C7-1DCE-3654-37F27F61BEFA> /usr/lib/libcrypto.0.9.8.dylib
    0x7fff86c8a000 - 0x7fff86dbffff com.apple.audio.toolbox.AudioToolbox 1.6.7 (1.6.7) <F4814A13-E557-59AF-30FF-E62929367933> /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
    0x7fff86dc0000 - 0x7fff86e09fef libGLU.dylib ??? (???) <B0F4CA55-445F-E901-0FCF-47B3B4BAE6E2> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
    0x7fff86e0a000 - 0x7fff86e5fff7 com.apple.framework.familycontrols 2.0.2 (2020) <8807EB96-D12D-8601-2E74-25784A0DE4FF> /System/Library/PrivateFrameworks/FamilyControls.framework/Versions/A/FamilyControls
    0x7fff86fc4000 - 0x7fff86fcaff7 com.apple.CommerceCore 1.0 (9.1) <3691E9BA-BCF4-98C7-EFEC-78DA6825004E> /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore
    0x7fff86ffb000 - 0x7fff87001ff7 IOSurface ??? (???) <8E302BB2-0704-C6AB-BD2F-C2A6C6A2E2C3> /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
    0x7fff87002000 - 0x7fff87033fff libGLImage.dylib ??? (???) <562565E1-AA65-FE96-13FF-437410C886D0> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
    0x7fff87378000 - 0x7fff87439fef com.apple.ColorSync 4.6.8 (4.6.8) <7DF1D175-6451-51A2-DBBF-40FCA78C0D2C> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync
    0x7fff8747d000 - 0x7fff8747dff7 com.apple.Carbon 150 (152) <FA427C37-CF97-6773-775D-4F752ED68581> /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon
    0x7fff87559000 - 0x7fff87718fff com.apple.ImageIO.framework 3.0.6 (3.0.6) <92882FD3-CB3F-D0BE-DDDA-43B4BEE10F58> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
    0x7fff87719000 - 0x7fff8774cff7 libTrueTypeScaler.dylib ??? (???) <B7BA8104-FA18-39A2-56E1-922EE7A660AC> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib
    0x7fff8774d000 - 0x7fff8775bff7 libkxld.dylib ??? (???) <8145A534-95CC-9F3C-B78B-AC9898F38C6F> /usr/lib/system/libkxld.dylib
    0x7fff87a57000 - 0x7fff87a91fff libcups.2.dylib 2.8.0 (compatibility 2.0.0) <4F2A4397-89BD-DEAC-4971-EE838FFA0964> /usr/lib/libcups.2.dylib
    0x7fff87acd000 - 0x7fff87b59fef SecurityFoundation ??? (???) <3F1F2727-C508-3630-E2C1-38361841FCE4> /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation
    0x7fff87b5a000 - 0x7fff87b7dfff com.apple.opencl 12.3.6 (12.3.6) <42FA5783-EB80-1168-4015-B8C68F55842F> /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL
    0x7fff87b7e000 - 0x7fff87ba5ff7 libJPEG.dylib ??? (???) <08758593-6436-B29E-1DA8-F15597835EC1> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib
    0x7fff87bbc000 - 0x7fff87ebafff com.apple.HIToolbox 1.6.5 (???) <AD1C18F6-51CB-7E39-35DD-F16B1EB978A8> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox
    0x7fff87f31000 - 0x7fff87f5cff7 libxslt.1.dylib 3.24.0 (compatibility 3.0.0) <3630A97F-55C1-3F34-CA63-3847653C9645> /usr/lib/libxslt.1.dylib
    0x7fff87f9d000 - 0x7fff87fe7ff7 com.apple.Metadata 10.6.3 (507.15) <DE238BE4-5E22-C4D5-CF5C-3D50FDEE4701> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata
    0x7fff87fe8000 - 0x7fff87febff7 com.apple.securityhi 4.0 (36638) <AEF55AF1-54D3-DB8D-27A7-E16192E0045A> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI
    0x7fff87fec000 - 0x7fff881adfef libSystem.B.dylib 125.2.11 (compatibility 1.0.0) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib
    0x7fff881ae000 - 0x7fff881aeff7 com.apple.Cocoa 6.6 (???) <68B0BE46-6E24-C96F-B341-054CF9E8F3B6> /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa
    0x7fff881af000 - 0x7fff881befff com.apple.NetFS 3.2.2 (3.2.2) <7CCBD70E-BF31-A7A7-DB98-230687773145> /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS
    0x7fff881bf000 - 0x7fff88212ff7 com.apple.HIServices 1.8.3 (???) <F6E0C7A7-C11D-0096-4DDA-2C77793AA6CD> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices
    0x7fff88aad000 - 0x7fff88aaefff liblangid.dylib ??? (???) <EA4D1607-2BD5-2EE2-2A3B-632EEE5A444D> /usr/lib/liblangid.dylib
    0x7fff88abd000 - 0x7fff88accfef com.apple.opengl 1.6.14 (1.6.14) <ECAE2D12-5BE3-46E7-6EE5-563B80B32A3E> /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL
    0x7fff88acd000 - 0x7fff88ae1fff libGL.dylib ??? (???) <2ECE3B0F-39E1-3938-BF27-7205C6D0358B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
    0x7fff88ae2000 - 0x7fff88c59fe7 com.apple.CoreFoundation 6.6.6 (550.44) <BB4E5158-E47A-39D3-2561-96CB49FA82D4> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff88c63000 - 0x7fff88d7dfff libGLProgrammability.dylib ??? (???) <D1650AED-02EF-EFB3-100E-064C7F018745> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
    0x7fff88e77000 - 0x7fff88e7afff com.apple.help 1.3.2 (41.1) <BD1B0A22-1CB8-263E-FF85-5BBFDE3660B9> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
    0x7fff8919e000 - 0x7fff894d2fef com.apple.CoreServices.CarbonCore 861.39 (861.39) <1386A24D-DD15-5903-057E-4A224FAF580B> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore
    0x7fff894d3000 - 0x7fff894d3ff7 com.apple.Accelerate.vecLib 3.6 (vecLib 3.6) <4CCE5D69-F1B3-8FD3-1483-E0271DB2CCF3> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff896d3000 - 0x7fff896d7ff7 libmathCommon.A.dylib 315.0.0 (compatibility 1.0.0) <95718673-FEEE-B6ED-B127-BCDBDB60D4E5> /usr/lib/system/libmathCommon.A.dylib
    0x7fff896d8000 - 0x7fff89791fff libsqlite3.dylib 9.6.0 (compatibility 9.0.0) <2C5ED312-E646-9ADE-73A9-6199A2A43150> /usr/lib/libsqlite3.dylib
    0x7fff89813000 - 0x7fff8a01dfe7 libBLAS.dylib 219.0.0 (compatibility 1.0.0) <FC941ECB-71D0-FAE3-DCBF-C5A619E594B8> /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
    0x7fff8a048000 - 0x7fff8a04dff7 com.apple.CommonPanels 1.2.4 (91) <4D84803B-BD06-D80E-15AE-EFBE43F93605> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels
    0x7fff8a1c0000 - 0x7fff8a20fff7 com.apple.DirectoryService.PasswordServerFramework 6.1 (6.1) <0731C40D-71EF-B417-C83B-54C3527A36EA> /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
    0x7fff8a264000 - 0x7fff8a2e2ff7 com.apple.CoreText 151.13 (???) <5C6214AD-D683-80A8-86EB-328C99B75322> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText
    0x7fff8a2ed000 - 0x7fff8a30efff libresolv.9.dylib 41.1.0 (compatibility 1.0.0) <9410EC7F-4D24-6740-AFEE-90405750FAD7> /usr/lib/libresolv.9.dylib
    0x7fff8a30f000 - 0x7fff8a30fff7 com.apple.vecLib 3.6 (vecLib 3.6) <96FB6BAD-5568-C4E0-6FA7-02791A58B584> /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib
    0x7fff8a310000 - 0x7fff8a3c0fff edu.mit.Kerberos 6.5.11 (6.5.11) <085D80F5-C9DC-E252-C21B-03295E660C91> /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos
    0x7fff8a3c1000 - 0x7fff8a3c1ff7 com.apple.Accelerate 1.6 (Accelerate 1.6) <15DF8B4A-96B2-CB4E-368D-DEC7DF6B62BB> /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
    0x7fff8a565000 - 0x7fff8a57cfff com.apple.ImageCapture 6.1 (6.1) <79AB2131-2A6C-F351-38A9-ED58B25534FD> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture
    0x7fff8a5c1000 - 0x7fff8a621fe7 com.apple.framework.IOKit 2.0 (???) <4F071EF0-8260-01E9-C641-830E582FA416> /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit
    0x7fff8a622000 - 0x7fff8a638fef libbsm.0.dylib ??? (???) <42D3023A-A1F7-4121-6417-FCC6B51B3E90> /usr/lib/libbsm.0.dylib
    0x7fff8a639000 - 0x7fff8a6d9fff com.apple.LaunchServices 362.3 (362.3) <B90B7C31-FEF8-3C26-BFB3-D8A48BD2C0DA> /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices
    0x7fff8a707000 - 0x7fff8a7c9fe7 libFontParser.dylib ??? (???) <EF06F16C-0CC9-B4CA-7BD9-0A97FA967340> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib
    0x7fff8a7d6000 - 0x7fff8a7d8fff com.apple.print.framework.Print 6.1 (237.1) <CA8564FB-B366-7413-B12E-9892DA3C6157> /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
    0x7fffffe00000 - 0x7fffffe01fff libSystem.B.dylib ??? (???) <9AB4F1D1-89DC-0E8A-DC8E-A4FE4D69DB69> /usr/lib/libSystem.B.dylib

    Model: iMac7,1, BootROM IM71.007A.B03, 2 processors, Intel Core 2 Duo, 2 GHz, 1 GB, SMC 1.20f4
    Graphics: ATI Radeon HD 2400 XT, ATI,RadeonHD2400, PCIe, 128 MB
    Memory Module: global_name
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x88), Broadcom BCM43xx 1.0 (5.10.131.42.4)
    Bluetooth: Version 2.4.5f3, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: ST3250820AS Q, 232,89 GB
    Parallel ATA Device: PIONEER DVD-RW DVR-K06A
    USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8502, 0xfd400000 / 2
    USB Device: Keyboard Hub, 0x05ac (Apple Inc.), 0x1006, 0xfa400000 / 2
    USB Device: Apple Optical USB Mouse, 0x05ac (Apple Inc.), 0x0304, 0xfa430000 / 4
    USB Device: Apple Keyboard, 0x05ac (Apple Inc.), 0x0221, 0xfa420000 / 3
    USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8242, 0x5d100000 / 2
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8206, 0x1a100000 / 2


  • Lifetime Qt Champion

    What does a run through the debugger tell you ?



  • @SGaist

    I get this

    0x101024b16 <+0x0026> (bad)
    0x101024b17 <+0x0027> je 0x101024b2d <_ZN9QSqlQueryD1Ev+61>
    0x101024b19 <+0x0029> mov 0x8(%rbx),%rdi
    0x101024b1d <+0x002d> cmp %rax,%rdi
    0x101024b20 <+0x0030> je 0x101024b2d <_ZN9QSqlQueryD1Ev+61>
    0x101024b22 <+0x0032> test %rdi,%rdi
    0x101024b25 <+0x0035> je 0x101024b2d <_ZN9QSqlQueryD1Ev+61>
    0x101024b27 <+0x0037> mov (%rdi),%rax
    0x101024b2a <+0x003a> callq *0x8(%rax)
    0x101024b2d <+0x003d> mov %rbx,%rdi
    0x101024b30 <+0x0040> callq 0x10104407c <dyld_stub__ZdlPv>
    0x101024b35 <+0x0045> add $0x8,%rsp
    0x101024b39 <+0x0049> pop %rbx
    0x101024b3a <+0x004a> pop %rbp
    0x101024b3b <+0x004b> retq
    0x101024b3c <+0x004c> nopl 0x0(%rax)
    0x101024b40 <+0x0000> push %rbp
    0x101024b41 <+0x0001> mov %rsp,%rbp
    0x101024b44 <+0x0004> push %rbx
    0x101024b45 <+0x0005> push %rax
    0x101024b46 <+0x0006> mov (%rdi),%rax
    0x101024b49 <+0x0009> lock subl $0x1,(%rax)
    0x101024b4d <+0x000d> setne -0x9(%rbp)
    0x101024b51 <+0x0011> cmpb $0x0,-0x9(%rbp)
    0x101024b55 <+0x0015> jne 0x101024b85 <_ZN9QSqlQueryD2Ev+69>
    0x101024b57 <+0x0017> mov (%rdi),%rbx
    0x101024b5a <+0x001a> test %rbx,%rbx
    0x101024b5d <+0x001d> je 0x101024b85 <_ZN9QSqlQueryD2Ev+69>
    0x101024b5f <+0x001f> callq 0x1010248d0 <_ZN13QGlobalStaticI14QSqlNullResultLZN12_GLOBAL__N_116Q_QGS_nullResult13innerFunctionEvELZNS2_5guardEEEclEv>
    0x101024b64 <+0x0024> test %rax,%rax
    0x101024b67 <+0x0027> je 0x101024b7d <_ZN9QSqlQueryD2Ev+61>
    0x101024b69 <+0x0029> mov 0x8(%rbx),%rdi
    0x101024b6d <+0x002d> cmp %rax,%rdi
    0x101024b70 <+0x0030> je 0x101024b7d <_ZN9QSqlQueryD2Ev+61>
    0x101024b72 <+0x0032> test %rdi,%rdi
    0x101024b75 <+0x0035> je 0x101024b7d <_ZN9QSqlQueryD2Ev+61>
    0x101024b77 <+0x0037> mov (%rdi),%rax
    0x101024b7a <+0x003a> callq *0x8(%rax)
    0x101024b7d <+0x003d> mov %rbx,%rdi
    0x101024b80 <+0x0040> callq 0x10104407c <dyld_stub__ZdlPv>
    0x101024b85 <+0x0045> add $0x8,%rsp
    0x101024b89 <+0x0049> pop %rbx
    0x101024b8a <+0x004a> pop %rbp
    0x101024b8b <+0x004b> retq
    0x101024b8c <+0x004c> nopl 0x0(%rax)


  • Lifetime Qt Champion

    Ok, that's a release build.

    Did you compile the MySQL plugin yourself ?



  • @apffal
    No, I did not
    Is it an Mysql error ?


  • Lifetime Qt Champion

    Can you run a debug build of your application, it should help pin-point the bug.



  • This is the debug build output, when exiting application

    0x101024b16 <+0x0026> (bad)
    0x101024b17 <+0x0027> je 0x101024b2d <_ZN9QSqlQueryD1Ev+61>
    0x101024b19 <+0x0029> mov 0x8(%rbx),%rdi
    0x101024b1d <+0x002d> cmp %rax,%rdi
    0x101024b20 <+0x0030> je 0x101024b2d <_ZN9QSqlQueryD1Ev+61>
    0x101024b22 <+0x0032> test %rdi,%rdi
    0x101024b25 <+0x0035> je 0x101024b2d <_ZN9QSqlQueryD1Ev+61>
    0x101024b27 <+0x0037> mov (%rdi),%rax
    0x101024b2a <+0x003a> callq *0x8(%rax)
    0x101024b2d <+0x003d> mov %rbx,%rdi
    0x101024b30 <+0x0040> callq 0x10104407c <dyld_stub__ZdlPv>
    0x101024b35 <+0x0045> add $0x8,%rsp
    0x101024b39 <+0x0049> pop %rbx
    0x101024b3a <+0x004a> pop %rbp
    0x101024b3b <+0x004b> retq
    0x101024b3c <+0x004c> nopl 0x0(%rax)
    0x101024b40 <+0x0000> push %rbp
    0x101024b41 <+0x0001> mov %rsp,%rbp
    0x101024b44 <+0x0004> push %rbx
    0x101024b45 <+0x0005> push %rax
    0x101024b46 <+0x0006> mov (%rdi),%rax
    0x101024b49 <+0x0009> lock subl $0x1,(%rax)
    0x101024b4d <+0x000d> setne -0x9(%rbp)
    0x101024b51 <+0x0011> cmpb $0x0,-0x9(%rbp)
    0x101024b55 <+0x0015> jne 0x101024b85 <_ZN9QSqlQueryD2Ev+69>
    0x101024b57 <+0x0017> mov (%rdi),%rbx
    0x101024b5a <+0x001a> test %rbx,%rbx
    0x101024b5d <+0x001d> je 0x101024b85 <_ZN9QSqlQueryD2Ev+69>
    0x101024b5f <+0x001f> callq 0x1010248d0 <_ZN13QGlobalStaticI14QSqlNullResultLZN12_GLOBAL__N_116Q_QGS_nullResult13innerFunctionEvELZNS2_5guardEEEclEv>
    0x101024b64 <+0x0024> test %rax,%rax
    0x101024b67 <+0x0027> je 0x101024b7d <_ZN9QSqlQueryD2Ev+61>
    0x101024b69 <+0x0029> mov 0x8(%rbx),%rdi
    0x101024b6d <+0x002d> cmp %rax,%rdi
    0x101024b70 <+0x0030> je 0x101024b7d <_ZN9QSqlQueryD2Ev+61>
    0x101024b72 <+0x0032> test %rdi,%rdi
    0x101024b75 <+0x0035> je 0x101024b7d <_ZN9QSqlQueryD2Ev+61>
    0x101024b77 <+0x0037> mov (%rdi),%rax
    0x101024b7a <+0x003a> callq *0x8(%rax)
    0x101024b7d <+0x003d> mov %rbx,%rdi
    0x101024b80 <+0x0040> callq 0x10104407c <dyld_stub__ZdlPv>
    0x101024b85 <+0x0045> add $0x8,%rsp
    0x101024b89 <+0x0049> pop %rbx
    0x101024b8a <+0x004a> pop %rbp
    0x101024b8b <+0x004b> retq
    0x101024b8c <+0x004c> nopl 0x0(%rax)


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.