Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 1

Qt-interest Archive, January 2008
Qt4.3.3 crashs with -system-sqlite


Message 1 in thread

Hi,

I am the MacPorts (www.macports.org) maintainer of Qt4 for Mac OS X.

We are having some problems with sqlite support when using the system- 
sqlite (sqlite 3.5.4), i.e., calls to sqlite3_set_auxdata fail  
(confirmed, for example, for sqliteman and the books demo of Qt4).

You can get details on the build process and the parameters used from  
the Portfile (configure.args) at
  http://trac.macports.org/projects/macports/browser/trunk/dports/aqua/qt4-mac/Portfile


Starting the books demo gives the following backtrace:

Process:         books [83179]
Path:            /Applications/MacPorts/Qt/demos/books/books.app/ 
Contents/MacOS/books
Identifier:      books
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [85]

Date/Time:       2008-01-04 17:45:11.787 +0100
OS Version:      Mac OS X 10.5.1 (9B18)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000003d
Crashed Thread:  0

Thread 0 Crashed:
0   libsqlite3.0.dylib            	0x95f0a56e sqlite3_set_auxdata + 6062
1   libsqlite3.0.dylib            	0x95f380b2  
sqlite3RegisterBuiltinFunctions + 178
2   libsqlite3.0.dylib            	0x010d2f41 openDatabase + 961
3   libsqlite3.0.dylib            	0x010d3033 sqlite3_open16 + 131
4   libqsqlite.dylib              	0x010a6124  
QSQLiteDriver::open(QString const&, QString const&, QString const&,  
QString const&, int, QString const&) + 84
5   libQtSql.4.dylib              	0x000445e1 QSqlDatabase::open() + 65
6   books                         	0x00007b3f initDb() + 271
7   books                         	0x00008b5f BookWindow::BookWindow()  
+ 425
8   books                         	0x00007683 main + 63
9   books                         	0x00006592 start + 54

Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x95ef8760  ebx: 0x95f0a4c4  ecx: 0x95f7a711  edx: 0x00000003
edi: 0x00000000  esi: 0x0000002d  ebp: 0xbffff318  esp: 0xbffff2c0
  ss: 0x0000001f  efl: 0x00010246  eip: 0x95f0a56e   cs: 0x00000017
  ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
cr2: 0x0000003d

Binary Images:
   0x1000 -     0xbff4 +books ??? (???) /Applications/MacPorts/Qt/ 
demos/books/books.app/Contents/MacOS/books
  0x3e000 -    0x66fed +libQtSql.4.dylib ??? (???) /opt/local/lib/ 
libQtSql.4.dylib
  0x7c000 -    0x9bff3 +libpng12.0.dylib ??? (???) /opt/local/lib/ 
libpng12.0.dylib
  0xa2000 -    0xb2ffd +libz.1.dylib ??? (???) /opt/local/lib/libz. 
1.dylib
0x1bc000 -   0x30fffd +libQtCore.4.dylib ??? (???) /opt/local/lib/ 
libQtCore.4.dylib
0x81b000 -   0xe1eff7 +libQtGui.4.dylib ??? (???) /opt/local/lib/ 
libQtGui.4.dylib
0x10a0000 -  0x10a8ffb +libqsqlite.dylib ??? (???) /opt/local/lib/qt4- 
plugins/sqldrivers/libqsqlite.dylib
0x10b0000 -  0x1107ff7 +libsqlite3.0.dylib ??? (???) /opt/local/lib/ 
libsqlite3.0.dylib
0x8fe00000 - 0x8fe2d883  dyld 95.3 (???)  
<81592e798780564b5d46b988f7ee1a6a> /usr/lib/dyld
0x90008000 - 0x90014ff5  libGL.dylib ??? (???) /System/Library/ 
Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x913ef000 - 0x9147bff7  com.apple.LaunchServices 286 (286)  
<72b15e7a01e42d510f0339e90113d5d6> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/ 
Versions/A/LaunchServices
0x9147c000 - 0x914d9ffb  libstdc++.6.dylib ??? (???)  
<04b812dcec670daa8b7d2852ab14be60> /usr/lib/libstdc++.6.dylib
0x91743000 - 0x9176afff  libcups.2.dylib ??? (???)  
<5521498e8902ddd0b15cfaa7db384e29> /usr/lib/libcups.2.dylib
0x9176b000 - 0x918c5fe3  libSystem.B.dylib ??? (???)  
<8ecc83dc0399be3946f7a46e88cf4bbb> /usr/lib/libSystem.B.dylib
0x918c6000 - 0x919feff7  libicucore.A.dylib ??? (???)  
<afcea652ff2ec36885b2c81c57d06d4c> /usr/lib/libicucore.A.dylib
0x91a6f000 - 0x91a76ff7  libCGATS.A.dylib ??? (???)  
<9b29a5500efe01cc3adea67bbc42568e> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x91a77000 - 0x91af1ff8  com.apple.print.framework.PrintCore 5.5 (245)  
<9441d178f4b430cf92b67bf346646693> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
PrintCore.framework/Versions/A/PrintCore
0x91af2000 - 0x91b34fef  com.apple.NavigationServices 3.5.1 (161)  
<cc6bd78eabf1e2e7166914e9f12f5850> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/ 
Versions/A/NavigationServices
0x91b35000 - 0x91bb1feb  com.apple.audio.CoreAudio 3.1.0 (3.1)  
<70bb7c657061631491029a61babe0b26> /System/Library/Frameworks/ 
CoreAudio.framework/Versions/A/CoreAudio
0x91bb2000 - 0x91c62fff  edu.mit.Kerberos 6.0.11 (6.0.11)  
<33c25789baedcd70a7e24881775dd9ad> /System/Library/Frameworks/ 
Kerberos.framework/Versions/A/Kerberos
0x91c63000 - 0x91c63ff8  com.apple.ApplicationServices 34 (34)  
<8f910fa65f01d401ad8d04cc933cf887> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/ApplicationServices
0x91c71000 - 0x91d95fe3  com.apple.audio.toolbox.AudioToolbox 1.5  
(1.5) /System/Library/Frameworks/AudioToolbox.framework/Versions/A/ 
AudioToolbox
0x91df5000 - 0x9206efe7  com.apple.Foundation 6.5.1 (677.1)  
<85ac18c7cd454378db6122bea0c00965> /System/Library/Frameworks/ 
Foundation.framework/Versions/C/Foundation
0x920c2000 - 0x920c3fef  libmathCommon.A.dylib ??? (???) /usr/lib/ 
system/libmathCommon.A.dylib
0x921fc000 - 0x921fcffb  com.apple.installserver.framework 1.0 (8) / 
System/Library/PrivateFrameworks/InstallServer.framework/Versions/A/ 
InstallServer
0x92230000 - 0x92240ffc  com.apple.LangAnalysis 1.6.4 (1.6.4)  
<cbeb17ab39f28351fe2ab5b82bf465bc> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
LangAnalysis.framework/Versions/A/LangAnalysis
0x92241000 - 0x92246fff  com.apple.CommonPanels 1.2.4 (85)  
<ea0665f57cd267609466ed8b2b20e893> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/ 
A/CommonPanels
0x92247000 - 0x92252fe7  libCSync.A.dylib ??? (???)  
<df82fc093e498a9eb5490761cb292218> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x92258000 - 0x92287fe3  com.apple.AE 402 (402)  
<994ba8e884aefe7bf1fc5987df099e7b> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE
0x92288000 - 0x9228efff  com.apple.print.framework.Print 218 (220)  
<c35172175abbe554ddadd9b6401351fa> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print
0x9228f000 - 0x92306fe3  com.apple.CFNetwork 220 (221)  
<972a41911805859205b057a6f5b91e8d> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/ 
Versions/A/CFNetwork
0x923c3000 - 0x923cdfeb  com.apple.audio.SoundManager 3.9.2 (3.9.2)  
<0f2ba6e891d3761212cf5a5e6134d683> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/ 
A/CarbonSound
0x923ce000 - 0x923d5ffe  libbsm.dylib ??? (???)  
<d25c63378a5029648ffd4b4669be31bf> /usr/lib/libbsm.dylib
0x92481000 - 0x924dbff7  com.apple.CoreText 2.0.0 (???)  
<7fa39cd5bc847615ec02e7c7a37c0508> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/ 
Versions/A/CoreText
0x924dc000 - 0x9258effb  libcrypto.0.9.7.dylib ??? (???)  
<330b0e48e67faffc8c22dfc069ca7a47> /usr/lib/libcrypto.0.9.7.dylib
0x9258f000 - 0x925e8fff  libGLU.dylib ??? (???) /System/Library/ 
Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x925e9000 - 0x92613fef  libauto.dylib ??? (???)  
<d468bc4a8a69343f1748c293db1b57fb> /usr/lib/libauto.dylib
0x92614000 - 0x92618fff  libGIF.dylib ??? (???)  
<d4234e6f5e5f530bdafb969157f1f17b> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/Resources/libGIF.dylib
0x9263d000 - 0x92721ffb  com.apple.CoreData 100 (185)  
<a4e63784275e25e62f57e75e0af0b94d> /System/Library/Frameworks/ 
CoreData.framework/Versions/A/CoreData
0x928a2000 - 0x92c38ff7  com.apple.QuartzCore 1.5.1 (1.5.1)  
<deb61cbeb3f734a1b2f4669f6268b9de> /System/Library/Frameworks/ 
QuartzCore.framework/Versions/A/QuartzCore
0x92c39000 - 0x92d00ff2  com.apple.vImage 3.0 (3.0) /System/Library/ 
Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/ 
Versions/A/vImage
0x92d01000 - 0x934fbfef  com.apple.AppKit 6.5 (949)  
<f8d0f6d0bb5ac092f48f42ca684bdb54> /System/Library/Frameworks/ 
AppKit.framework/Versions/C/AppKit
0x934fc000 - 0x9358eff3  com.apple.ApplicationServices.ATS 3.0 (???)  
<fb5f572243dbc370a0ea5efc8e81ae11> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/ 
Versions/A/ATS
0x935b4000 - 0x93610ff7  com.apple.htmlrendering 68 (1.1.3)  
<fe87a9dede38db00e6c8949942c6bd4f> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/ 
Versions/A/HTMLRendering
0x93611000 - 0x93a21fef  libBLAS.dylib ??? (???) /System/Library/ 
Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
Versions/A/libBLAS.dylib
0x93a22000 - 0x93a22ffa  com.apple.CoreServices 32 (32)  
<2fcc8f3bd5bbfc000b476cad8e6a3dd2> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/CoreServices
0x93b2b000 - 0x93b33fff  com.apple.DiskArbitration 2.2 (2.2)  
<1551b2af557fdf6f368f93e093933852> /System/Library/Frameworks/ 
DiskArbitration.framework/Versions/A/DiskArbitration
0x93cbf000 - 0x93d49fff  com.apple.framework.IOKit 1.5.1 (???)  
<5176a7383151a19c962334009fef2c6d> /System/Library/Frameworks/ 
IOKit.framework/Versions/A/IOKit
0x93d4a000 - 0x93d4cff5  libRadiance.dylib ??? (???)  
<20eadb285da83df96c795c2c5fa20590> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/Resources/libRadiance.dylib
0x93d67000 - 0x93e46fff  libobjc.A.dylib ??? (???)  
<5eda47fec2d0e7853b3506aa1fd2dafa> /usr/lib/libobjc.A.dylib
0x93f33000 - 0x93f33ffd  com.apple.Accelerate.vecLib 3.4 (vecLib 3.4) / 
System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/ 
vecLib.framework/Versions/A/vecLib
0x93f34000 - 0x93f6afff  com.apple.SystemConfiguration 1.9.0 (1.9.0)  
<7919d9588c3b0d556646e555b7193f1f> /System/Library/Frameworks/ 
SystemConfiguration.framework/Versions/A/SystemConfiguration
0x93f6b000 - 0x93fbbff7  com.apple.HIServices 1.6.0 (???)  
<d74aa73e4cfd30a08fb169198a8d2539> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
HIServices.framework/Versions/A/HIServices
0x93fbd000 - 0x93fbdffd  com.apple.Accelerate 1.4 (Accelerate 1.4) / 
System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate
0x93fbe000 - 0x93fbeffd  com.apple.vecLib 3.4 (vecLib 3.4) /System/ 
Library/Frameworks/vecLib.framework/Versions/A/vecLib
0x93fbf000 - 0x94188fef  com.apple.security 5.0.1 (32736)  
<8c9eda0fcc1d8a571543025ac900715f> /System/Library/Frameworks/ 
Security.framework/Versions/A/Security
0x94189000 - 0x941a4ffb  libPng.dylib ??? (???)  
<b6abcac36ec7654ff3e1cfa786b0117b> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/Resources/libPng.dylib
0x94361000 - 0x9436fffd  libz.1.dylib ??? (???)  
<5ddd8539ae2ebfd8e7cc1c57525385c7> /usr/lib/libz.1.dylib
0x94370000 - 0x94379fff  com.apple.speech.recognition.framework 3.7.24  
(3.7.24) <d3180f9edbd9a5e6f283d6156aa3c602> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/ 
Versions/A/SpeechRecognition
0x9437a000 - 0x94846ffe  libGLProgrammability.dylib ??? (???)  
<e8bc0af671427cf2b6279a035805a086> /System/Library/Frameworks/ 
OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib
0x94885000 - 0x94979ff4  libiconv.2.dylib ??? (???)  
<c508c60fafca17824c0017b2e4369802> /usr/lib/libiconv.2.dylib
0x94992000 - 0x94993ffc  libffi.dylib ??? (???)  
<a3b573eb950ca583290f7b2b4c486d09> /usr/lib/libffi.dylib
0x94994000 - 0x9502bfef  com.apple.CoreGraphics 1.351.0 (???)  
<7a6f399039eed6dbe845c169f7d21a70> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
CoreGraphics.framework/Versions/A/CoreGraphics
0x9502c000 - 0x95044fff  com.apple.openscripting 1.2.6 (???)  
<b8e553df643f2aec68fa968b3b459b2b> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/ 
Versions/A/OpenScripting
0x95045000 - 0x95047fff  com.apple.securityhi 3.0 (30817)  
<2b2854123fed609d1820d2779e2e0963> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/ 
SecurityHI
0x95048000 - 0x9504bfff  com.apple.help 1.1 (36)  
<b507b08e484cb89033e9cf23062d77de> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help
0x9504c000 - 0x95325fe7  com.apple.CoreServices.CarbonCore 783 (783)  
<8370e664eeb25edc98d5c1f5405b06ae> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/ 
Versions/A/CarbonCore
0x95326000 - 0x9562cfff  com.apple.HIToolbox 1.5.0 (???)  
<1b872a7151ee3f80c9c736a3e46d00d9> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/ 
HIToolbox
0x9562d000 - 0x959ebfea  libLAPACK.dylib ??? (???) /System/Library/ 
Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
Versions/A/libLAPACK.dylib
0x959ec000 - 0x95acdff7  libxml2.2.dylib ??? (???)  
<450ec38b57fb46013847cce851001a2f> /usr/lib/libxml2.2.dylib
0x95af7000 - 0x95c3cff7  com.apple.ImageIO.framework 2.0.0 (2.0.0)  
<154d4d8cda2bd99518cbabc9f2d69833> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/ImageIO
0x95c3d000 - 0x95c53fff  com.apple.DictionaryServices 1.0.0 (1.0.0)  
<ad0aa0252e3323d182e17f50defe56fc> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/ 
DictionaryServices.framework/Versions/A/DictionaryServices
0x95c8e000 - 0x95ccdfef  libTIFF.dylib ??? (???)  
<6d0f80e9d4d81f3f64c876aca005bd53> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/Resources/libTIFF.dylib
0x95cce000 - 0x95cdefff  com.apple.speech.synthesis.framework 3.6.59  
(3.6.59) <4ffef145fad3d4d787e0c33eab26b336> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x95cdf000 - 0x95d8efff  com.apple.DesktopServices 1.4.3 (1.4.3)  
<66d5ed56111c43d234e235d365d02469> /System/Library/PrivateFrameworks/ 
DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv
0x95d8f000 - 0x95d8ffff  com.apple.Carbon 136 (136)  
<98a5e3bc0c4fa44bbb09713bb88707fe> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Carbon
0x95d90000 - 0x95d90ffc  com.apple.audio.units.AudioUnit 1.5 (1.5) / 
System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x95d97000 - 0x95e4dfe3  com.apple.CoreServices.OSServices 210.2  
(210.2) <4ed69f07fc0f211ab32d1ee96e281fc2> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/OSServices.framework/ 
Versions/A/OSServices
0x95e4e000 - 0x95e55fe9  libgcc_s.1.dylib ??? (???)  
<f53c808e87d1184c0f9df63aef53ce0b> /usr/lib/libgcc_s.1.dylib
0x95e56000 - 0x95e74fff  libresolv.9.dylib ??? (???)  
<54e6a08c2f108bdf5916fb483d51961b> /usr/lib/libresolv.9.dylib
0x95ef7000 - 0x95f7eff7  libsqlite3.0.dylib ??? (???)  
<273efcb717e89c21207c851d7d33fda4> /usr/lib/libsqlite3.0.dylib
0x95f7f000 - 0x95f95fe7  com.apple.CoreVideo 1.5.0 (1.5.0)  
<c7569b68e54114da815e9c55299fe3a4> /System/Library/Frameworks/ 
CoreVideo.framework/Versions/A/CoreVideo
0x962a8000 - 0x9634ffff  com.apple.QD 3.11.50 (???)  
<e2f71720ae1dad06a8883ac80775b21a> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/QD.framework/ 
Versions/A/QD
0x96362000 - 0x96376ff3  com.apple.ImageCapture 4.0 (5.0.0) /System/ 
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ 
ImageCapture.framework/Versions/A/ImageCapture
0x96377000 - 0x963bcfef  com.apple.Metadata 10.5.0 (398)  
<4fd74fba0062c2e08ec4b1c10b40ff63> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/Metadata.framework/ 
Versions/A/Metadata
0x963bd000 - 0x9643cff5  com.apple.SearchKit 1.2.0 (1.2.0)  
<277b460da86bc222785159fe77e2e2ed> /System/Library/Frameworks/ 
CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/ 
Versions/A/SearchKit
0x9645a000 - 0x96525fff  com.apple.ColorSync 4.5.0 (4.5.0) /System/ 
Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ 
ColorSync.framework/Versions/A/ColorSync
0x96574000 - 0x965b5fe7  libRIP.A.dylib ??? (???)  
<bdc6d70bf4ed3dace321b4ff76a353b3> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ 
CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib
0x9681c000 - 0x96856ff7  com.apple.coreui 0.1 (60) /System/Library/ 
PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI
0x96857000 - 0x968cbfef  libvMisc.dylib ??? (???) /System/Library/ 
Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/ 
Versions/A/libvMisc.dylib
0x96939000 - 0x96958ffa  libJPEG.dylib ??? (???)  
<0cfb80109d624beb9ceb3c43b6c5ec10> /System/Library/Frameworks/ 
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/ 
Versions/A/Resources/libJPEG.dylib
0x96959000 - 0x96986feb  libvDSP.dylib ??? (???)  
<a26683d121ee0f96df9a9d0bfca36049> /System/Library/Frameworks/ 
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/ 
libvDSP.dylib
0x969bb000 - 0x96a4efff  com.apple.ink.framework 101.3 (86)  
<bf3fa8927b4b8baae92381a976fd2079> /System/Library/Frameworks/ 
Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink
0x96a5f000 - 0x96a9cff7  libGLImage.dylib ??? (???)  
<202d73e6a4688fc06ff11b71910c2ce7> /System/Library/Frameworks/ 
OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x96a9d000 - 0x96aaafe7  com.apple.opengl 1.5.5 (1.5.5)  
<aa08b52d2a84b44dc6ee5d544a53fe8a> /System/Library/Frameworks/ 
OpenGL.framework/Versions/A/OpenGL
0x96aac000 - 0x96bdefe7  com.apple.CoreFoundation 6.5 (476)  
<8bfebc0dbad6fc33bea0fa00a1b9ec37> /System/Library/Frameworks/ 
CoreFoundation.framework/Versions/A/CoreFoundation
0x96d4a000 - 0x96d6efff  libxslt.1.dylib ??? (???)  
<4933ddc7f6618743197aadc85b33b5ab> /usr/lib/libxslt.1.dylib
0xfffe8000 - 0xfffebfff  libobjc.A.dylib ??? (???) /usr/lib/ 
libobjc.A.dylib
0xffff0000 - 0xffff1780  libSystem.B.dylib ??? (???) /usr/lib/ 
libSystem.B.dylib


Please cc me on replies - thanks!

Greetings,
Jochen
-- 
 [ signature omitted ] 

Message 2 in thread

Hi,

> I am the MacPorts (www.macports.org) maintainer of Qt4 for Mac OS X.

I understand this MacPort is a binary package for MacOS made from a vanilla 
Qt/Mac source package. Is that correct?

By the way, you shouldn't have to force:
	-largefile
	-stl

You definitely shouldn't need:
	-no-nis
	-no-cups
These are Qt/X11 only.

> We are having some problems with sqlite support when using the 
> system-sqlite (sqlite 3.5.4), i.e., calls to sqlite3_set_auxdata fail 
> (confirmed, for example, for sqliteman and the books demo of Qt4).
> [...]
> Starting the books demo gives the following backtrace:
> [...]
> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000003d
> Crashed Thread:  0
> 
> Thread 0 Crashed:
> 0   libsqlite3.0.dylib                0x95f0a56e sqlite3_set_auxdata + 6062
> 1   libsqlite3.0.dylib                0x95f380b2 
> sqlite3RegisterBuiltinFunctions + 178
> 2   libsqlite3.0.dylib                0x010d2f41 openDatabase + 961
> 3   libsqlite3.0.dylib                0x010d3033 sqlite3_open16 + 131
> 4   libqsqlite.dylib                  0x010a6124 
> [...]

This could as well be an issue with SQLite. It would be interesting to see how 
the system SQLite library itself has been built.

What are the arguments passed to sqlite3_open16? It would be worth writing a 
non-Qt program and passing the same arguments to sqlite3_open16. Does it also 
crash?

--
 [ signature omitted ] 

Message 3 in thread

Dear MacPort users,

this is an Email to qt-interest due to problems of sqlite support in  
Qt4 using macPorts' sqlite3 port. See the end for macPorts-specific  
questions, please.

On 05.01.2008, at 10:46, Dimitri wrote:

>> I am the MacPorts (www.macports.org) maintainer of Qt4 for Mac OS X.
>
> I understand this MacPort is a binary package for MacOS made from a  
> vanilla Qt/Mac source package. Is that correct?

Yes.
However, we do (yet) not distribute binary packages but "recipes" to  
build them on the destination machine.
When executed the qt4-mac Portfile (recipe) downloads the source from  
TrollTech and builds it..

> By the way, you shouldn't have to force:
> 	-largefile
> 	-stl
>
> You definitely shouldn't need:
> 	-no-nis
> 	-no-cups
> These are Qt/X11 only.

Okay, but thet should not hurd, I guess.

>> We are having some problems with sqlite support when using the  
>> system-sqlite (sqlite 3.5.4), i.e., calls to sqlite3_set_auxdata  
>> fail (confirmed, for example, for sqliteman and the books demo of  
>> Qt4).
>> [...]
>> Starting the books demo gives the following backtrace:
>> [...]
>> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
>> Exception Codes: KERN_PROTECTION_FAILURE at 0x000000000000003d
>> Crashed Thread:  0
>> Thread 0 Crashed:
>> 0   libsqlite3.0.dylib                0x95f0a56e  
>> sqlite3_set_auxdata + 6062
>> 1   libsqlite3.0.dylib                0x95f380b2  
>> sqlite3RegisterBuiltinFunctions + 178
>> 2   libsqlite3.0.dylib                0x010d2f41 openDatabase + 961
>> 3   libsqlite3.0.dylib                0x010d3033 sqlite3_open16 + 131
>> 4   libqsqlite.dylib                  0x010a6124 [...]
>
> This could as well be an issue with SQLite. It would be interesting  
> to see how the system SQLite library itself has been built.

It's build using this Portfile
   http://trac.macports.org/projects/macports/browser/trunk/dports/databases/sqlite3/Portfile

> What are the arguments passed to sqlite3_open16? It would be worth  
> writing a non-Qt program and passing the same arguments to  
> sqlite3_open16. Does it also crash?

For the books example this should be the call from within Qt's

bool QSQLiteDriver::open(const QString & db, const QString &, const  
QString &, const QString &, int, const QString &conOpts)

which is this:

     if (sqlite3_open16(db.constData(), &d->access) == SQLITE_OK) {


We get there from books.app

    QSqlError initDb()

which contains

     QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");

...


MacPorts question: Are people successfully using MacPorts' sqlite3  
port? Are you using the functions in question?
   sqlite3_open16
   sqlite3_set_auxdata

Are there any known issues with these functions on Mac OS X or in  
MacPorts?

Greetings,
Jochen
-- 
 [ signature omitted ] 

Message 4 in thread

Hi,

>> This could as well be an issue with SQLite. It would be interesting to 
>> see how the system SQLite library itself has been built.
> 
> It's build using this Portfile
>   
> http://trac.macports.org/projects/macports/browser/trunk/dports/databases/sqlite3/Portfile 

I don't see anything suspicious, but then I'm not familiar with MacPorts.

>> What are the arguments passed to sqlite3_open16? It would be worth 
>> writing a non-Qt program and passing the same arguments to 
>> sqlite3_open16. Does it also crash?
> 
> For the books example this should be the call from within Qt's
> [...]

I don't mean the type of the arguments, but the value of the arguments.

It would be worth checking the value of the arguments passed to 
sqlite3_open16(), using a debugger for example, and trying to reproduce the 
crash when passing the exact same arguments to sqlite3_open16() from a simple 
non-Qt C++ program.

--
 [ signature omitted ]