Crash 'EXC_BAD_ACCESS' when calling CreateDatabase() in C++ VSDK
Matthew Jew
mjew at icnc.com
Thu Jun 22 18:59:39 CDT 2006
On Jun 21, 2006, at 8:56 PM, Ruslan Zasukhin wrote:
> On 6/22/06 5:15 AM, "Matthew Jew" <mjew at icnc.com> wrote:
>
>> Ok, I think I figured out how to move the VSDK2 libraries into my
>> app.
>> (I was putting the copy files phase after the link phase; it should
>> be before the link phase, I guess.)
>
> NO. it should be after link.
>
> Let me describe picture again:
>
> 1) you install VSDK.
>
> VComponents have few Valentina dlls.
>
> 2) you make project which point that dlls in VComponents
>
> see VSDK examples project.
>
> 3) you build app.
>
> result you get myapp.app package
>
> Up to know all is clear, yes?
>
> -------------------------------------
> 4) for DEBUG target it works right now.
>
> you can press debug, myapp starts, loads VComponents dlls.
> perfect, you can debug.
>
>
> 5) for DEPLOYMENT you need install VComponents folder INSIDE of your
> myapp.app For this you do easy steps:
>
> * open package
>
> * copy the whole VComponents folder into myapp/Contents
>
> * open terminal
>
> * cd to myapp.app/Contents/Vcomponents
>
> * drag file change_names_icu_vcomponents.sh into terminal window
> ENTER.
>
> * DONE.
>
>
> Now you an copy myapp.app to other computer, and it works.
>
>
> 6) it is possible in the your project make new build phase "Run
> Script"
> where specify script which will do this job. In ideal this
> script should
> work only for RELEASe target but I don't know how todo this ...
> All
> our projects use script for DEBUG also (but this bring new
> issue of
> xcode glitch, that require small workaround)
>
>
> This is example of our script from Vserver xcode project:
> again -- executed AFTER link phase
>
> Also note, that I plan today or tomorrow setup our xcode engine
> projects to
> use ICU from OS X...then VComponents folder for xcode-made products
> (VSDK, V4REV, VSTudio, Vserver) say goodbuy to ICU dlls. Also this
> means
> that this script will become 2 times simpler and smaller....
>
> Also note, in the project settings we add manually once few lines of
> settings as
>
> VserverDllName libvserver_ppc_debug for DEBUG
> libvserver_fat_release for RELEASE
>
> And script use these settings.
>
> P.S. At first you need get used to manual way of VComponents setup for
> RELEASE build. On our site in news pointed third party utility todo
> this by
> drag and drop...
>
>
> ##########################################
> # vserver.dll:
>
> cp "$BUILT_PRODUCTS_DIR//$VserverDllName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
>
> # RZ: workaround of xcode glitch: it loads vserver.dll 2 times from 2
> locations. This cause crash
> # to avoid this - we REMOVE original dll in old location.
> rm "$BUILT_PRODUCTS_DIR//$VserverDllName"
>
> install_name_tool -id "@executable_path/$VserverDllName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change
> "/usr/local/lib/vcomponents/VSDK.framework/Versions/A/VSDK"
> "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicudata.dylib"
> "@executable_path/../VComponents/libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib"
> "@executable_path/../VComponents/libicuuc.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicui18n.dylib"
> "@executable_path/../VComponents/libicui18n.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuio.dylib"
> "@executable_path/../VComponents/libicuio.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change "/usr/local/lib/vcomponents/$SharedLibName"
> "@executable_path/../VComponents/$SharedLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
> install_name_tool -change "/usr/local/lib/vcomponents/$KernelLibName"
> "@executable_path/../VComponents/$KernelLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$VserverDllName"
>
>
> ##########################################
> # VComponents folder:
>
> if [ ! -d "$BUILT_PRODUCTS_DIR/VServer.app/Contents/
> VComponents" ] ; then
> mkdir "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents"
> fi
>
>
> ##########################################
> # COPY VSDK.framework 1.x:
>
> if [ ! -d
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> VSDK.framework" ] ;
> then
> cp -R "../../kernel/xcode/v1/VSDK.framework"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents"
>
> # change id VSDK
> install_name_tool -id
> "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> VSDK.framework/Version
> s/A/VSDK"
> fi
>
>
> ##########################################
> # COPY engine dlls:
>
> cp "/usr/local/lib/vcomponents/$KernelLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents"
> cp "/usr/local/lib/vcomponents/$SharedLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents"
>
>
> ##########################################
> # change id of VSHARED:
>
> install_name_tool -id "@executable_path/../VComponents/$SharedLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$SharedLibName"
>
>
> ##########################################
> # change id of VKERNEL:
>
> install_name_tool -id "@executable_path/../VComponents/$KernelLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
> install_name_tool -change "/usr/local/lib/vcomponents/$SharedLibName"
> "@executable_path/../VComponents/$SharedLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
> install_name_tool -change
> "/usr/local/lib/vcomponents/VSDK.framework/Versions/A/VSDK"
> "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicudata.dylib"
> "@executable_path/../VComponents/libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib"
> "@executable_path/../VComponents/libicuuc.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicui18n.dylib"
> "@executable_path/../VComponents/libicui18n.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuio.dylib"
> "@executable_path/../VComponents/libicuio.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/$KernelLibName"
>
>
> ##########################################
> # ICU:
>
> cp /usr/local/lib/vcomponents/libicudata.dylib
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> libicudata.dylib"
> cp /usr/local/lib/vcomponents/libicui18n.dylib
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> libicui18n.dylib"
> cp /usr/local/lib/vcomponents/libicuio.dylib
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuio.dylib"
> cp /usr/local/lib/vcomponents/libicuuc.dylib
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuuc.dylib"
>
> # change id of data library
> install_name_tool -id "@executable_path/../VComponents/
> libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> libicudata.dylib"
>
> # change id and dependencies in common library
> install_name_tool -id "@executable_path/../VComponents/libicuuc.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuuc.dylib"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicudata.dylib"
> "@executable_path/../VComponents/libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuuc.dylib"
>
> # change id and dependencies in i18n library
> install_name_tool -id "@executable_path/../VComponents/
> libicui18n.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> libicui18n.dylib"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicudata.dylib"
> "@executable_path/../VComponents/libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> libicui18n.dylib"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib"
> "@executable_path/../VComponents/libicuuc.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> libicui18n.dylib"
>
> # change id and dependencies in io library
> install_name_tool -id "@executable_path/../VComponents/libicuio.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuio.dylib"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib"
> "@executable_path/../VComponents/libicuuc.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuio.dylib"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicudata.dylib"
> "@executable_path/../VComponents/libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuio.dylib"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicui18n.dylib"
> "@executable_path/../VComponents/libicui18n.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/libicuio.dylib"
>
>
> ##########################################
> # Copy VResources folder:
>
> if [ ! -d "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> VResources"
> ] ; then
> mkdir "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/
> VResources"
> mkdir
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/VResources/
> English"
> fi
> cp -f ../../sources/VKernel/FBL/prot/Errors/kernel_errors.xml
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/VResources/
> English"
> cp -f ../../sources/VKernel/VSQL/Errors/xml/sql_errors.xml
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/VComponents/VResources/
> English"
>
>
> ##########################################
> # This Executable:
>
> install_name_tool -change "/usr/local/lib/$VserverDllName"
> "@executable_path/$VserverDllName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
>
> install_name_tool -change
> "/usr/local/lib/vcomponents/VSDK.framework/Versions/A/VSDK"
> "@executable_path/../VComponents/VSDK.framework/Versions/A/VSDK"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicudata.dylib"
> "@executable_path/../VComponents/libicudata.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuuc.dylib"
> "@executable_path/../VComponents/libicuuc.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
> install_name_tool -change "/usr/local/lib/vcomponents/
> libicui18n.dylib"
> "@executable_path/../VComponents/libicui18n.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
> install_name_tool -change "/usr/local/lib/vcomponents/libicuio.dylib"
> "@executable_path/../VComponents/libicuio.dylib"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
> install_name_tool -change "/usr/local/lib/vcomponents/$SharedLibName"
> "@executable_path/../VComponents/$SharedLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
> install_name_tool -change "/usr/local/lib/vcomponents/$KernelLibName"
> "@executable_path/../VComponents/$KernelLibName"
> "$BUILT_PRODUCTS_DIR/VServer.app/Contents/MacOS/$PRODUCT_NAME"
>
>
>
> ##########################################
> # Databases and licenses folders for debugging:
>
> if [ ! -d "$BUILT_PRODUCTS_DIR/Databases" ] ; then
> mkdir "$BUILT_PRODUCTS_DIR/Databases"
> fi
>
> if [ ! -d "$BUILT_PRODUCTS_DIR/licences" ] ; then
> cp -R "/PARADIGMA/UPLOAD/2.0/license_mac" "$BUILT_PRODUCTS_DIR"
> mv "$BUILT_PRODUCTS_DIR/license_mac/" "$BUILT_PRODUCTS_DIR/
> licences/"
> fi
>
>
>
Ruslan,
I have followed your instructions completely, and I get the app to
build and debug reliably.
Even the RELEASE version get built (I am using the script you
attached, modified to fix VServer.app specific items).
The only thing that causes the RELEASE app to crash seems to be the
same thing that Shaun Wexler pointed out:
I have more than one version of the Valentina libraries linked to my
app.
The crash.log shows:
Date/Time: 2006-06-22 18:54:27.734 -0700
OS Version: 10.4.6 (Build 8I127)
Report Version: 4
Command: RadiusAuthenticator2
Path: /Volumes/Alpha2/Dev-ProjectBuilder/Cocoa-Projects/
RadiusAuthenticator2/build/Release/RadiusAuthenticator2.app/Contents/
MacOS/RadiusAuthenticator2
Parent: WindowServer [78]
Version: RadiusAuthenticator2 version 2.0 (2.0)
PID: 3893
Thread: 0
Exception: EXC_BAD_ACCESS (0x0001)
Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000
Thread 0 Crashed:
0 libvshared_fat_release.dylib 0x0062cc88 fbl::String::String[in-
charge](char const*, long, char const*, fbl::EStringImpType) + 64
1 libvshared_fat_release.dylib 0x00613570
fbl::Location_Disk_FSSpec::get_Path() const + 96
2 libvkernel_fat_release.dylib 0x01ed5268 fbl::Valentina_Init_ICU
() + 52
3 libvkernel_fat_release.dylib 0x01ed55f0 fbl::ValentinaInit
(unsigned long, char*, char*) + 68
4 ...ompany.RadiusAuthenticator2 0x000167d4 PVInitializeDBSystem + 88
5 ...ompany.RadiusAuthenticator2 0x000049e8
DbValentinaBase::DbValentinaBase[not-in-charge]() + 52
6 ...ompany.RadiusAuthenticator2 0x00006058 DbAuthLog::DbAuthLog
[in-charge]() + 24
7 ...ompany.RadiusAuthenticator2 0x000146fc -[AuthLogDBManager
instantiateOurTypeOfDatabase] + 32
8 ...ompany.RadiusAuthenticator2 0x00007854 -
[ValentinaBaseDBManager openExistingDatabase:] + 348
9 ...ompany.RadiusAuthenticator2 0x000149c0 -[AuthLogDBManager
openHighestDBOrCreateDBInDefaultLocation] + 292
10 ...ompany.RadiusAuthenticator2 0x0000c24c -
[RadAuthServerModelObject init] + 1192
11 com.apple.AppKit 0x9370a56c -[NSCustomObject
nibInstantiate] + 260
12 com.apple.AppKit 0x936f4f74 -[NSIBObjectData
instantiateObject:] + 188
13 com.apple.AppKit 0x936f4b40 -[NSIBObjectData
nibInstantiateWithOwner:topLevelObjects:] + 144
14 com.apple.AppKit 0x936e103c loadNib + 240
15 com.apple.AppKit 0x936e0a94 +[NSBundle
(NSNibLoading) _loadNibFile:nameTable:withZone:ownerBundle:] + 716
16 com.apple.AppKit 0x93737f64 +[NSBundle
(NSNibLoading) loadNibFile:externalNameTable:withZone:] + 156
17 com.apple.AppKit 0x937c7df0 +[NSBundle
(NSNibLoading) loadNibNamed:owner:] + 344
18 com.apple.AppKit 0x937c7b90 NSApplicationMain + 344
19 ...ompany.RadiusAuthenticator2 0x00002554 _start + 340 (crt.c:272)
20 ...ompany.RadiusAuthenticator2 0x000023fc start + 60
Thread 0 crashed with PPC Thread State 64:
srr0: 0x000000000062cc88 srr1:
0x100000000200d030 vrsave: 0x0000000000000000
cr: 0x24000404 xer: 0x0000000000000000 lr:
0x000000000062cc58 ctr: 0x00000000900036b8
r0: 0x0000000000000000 r1: 0x00000000bfffef30 r2:
0x00000000006997f0 r3: 0x0000000000000000
r4: 0x00000000bfffefb8 r5: 0xffffffffffffffff r6:
0x0000000000000000 r7: 0x0000000000000000
r8: 0x0000000000000002 r9: 0x0000000000000006 r10:
0x0000000017801685 r11: 0x0000000044000402
r12: 0x00000000900036b8 r13: 0x0000000000000000 r14:
0x0000000000000000 r15: 0x0000000000000000
r16: 0x0000000000020000 r17: 0x000000000002579c r18:
0x00000000000255d4 r19: 0x0000000000020000
r20: 0x0000000000020000 r21: 0x0000000000020000 r22:
0x00000000035824d0 r23: 0x0000000000025788
r24: 0x000000000002557c r25: 0x0000000000023ef4 r26:
0x0000000000025754 r27: 0x0000000000025590
r28: 0x0000000000000000 r29: 0x00000000177b4290 r30:
0x00000000177b4294 r31: 0x000000000062cc58
Binary Images Description:
0x1000 - 0x21fff com.yourcompany.RadiusAuthenticator2
RadiusAuthenticator2 version 2.0 (2.0) /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/MacOS/RadiusAuthenticator2
0x39000 - 0x3ffff libicuio.dylib /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/VComponents/libicuio.dylib
0x44000 - 0x4afff libicuio.dylib /usr/local/lib/vcomponents/
libicuio.dylib
0x205000 - 0x314fff VSDK /Volumes/Alpha2/Dev-ProjectBuilder/
Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/VComponents/VSDK.framework/Versions/
A/VSDK
0x3cf000 - 0x48ffff libicui18n.dylib /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/VComponents/libicui18n.dylib
0x51c000 - 0x5b2fff libicuuc.dylib /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/VComponents/libicuuc.dylib
0x60b000 - 0x684fff libvshared_fat_release.dylib /usr/local/lib/
vcomponents/libvshared_fat_release.dylib
0x1008000 - 0x1831fff libicudata.dylib /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/VComponents/libicudata.dylib
0x1834000 - 0x188bfff libvclient_fat_release.dylib /usr/local/lib/
vcomponents/libvclient_fat_release.dylib
0x1ead000 - 0x2368fff libvkernel_fat_release.dylib /usr/local/lib/
vcomponents/libvkernel_fat_release.dylib
0x2873000 - 0x2982fff VSDK /usr/local/lib/vcomponents/
VSDK.framework/Versions/A/VSDK
0x2a3d000 - 0x2ad3fff libicuuc.dylib /usr/local/lib/vcomponents/
libicuuc.dylib
0x2b2c000 - 0x3355fff libicudata.dylib /usr/local/lib/vcomponents/
libicudata.dylib
0x3358000 - 0x3418fff libicui18n.dylib /usr/local/lib/vcomponents/
libicui18n.dylib
0x8fa73000 - 0x8fd27fff com.apple.QuickTime 7.1.0 /System/Library/
Frameworks/QuickTime.framework/Versions/A/QuickTime
0x8fe00000 - 0x8fe51fff dyld 44.4 /usr/lib/dyld
0x90000000 - 0x901bbfff libSystem.B.dylib /usr/lib/libSystem.B.dylib
0x90213000 - 0x90218fff libmathCommon.A.dylib /usr/lib/system/
libmathCommon.A.dylib
0x9021a000 - 0x90267fff com.apple.CoreText 1.0.1 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreText.framework/Versions/A/CoreText
0x90292000 - 0x90343fff ATS /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/
Versions/A/ATS
0x90372000 - 0x9072cfff com.apple.CoreGraphics 1.258.30 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics
0x907b9000 - 0x90892fff com.apple.CoreFoundation 6.4.6 (368.27) /
System/Library/Frameworks/CoreFoundation.framework/Versions/A/
CoreFoundation
0x908db000 - 0x908dbfff com.apple.CoreServices 10.4 (???) /System/
Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
0x908dd000 - 0x909dffff libicucore.A.dylib /usr/lib/libicucore.A.dylib
0x90a39000 - 0x90abdfff libobjc.A.dylib /usr/lib/libobjc.A.dylib
0x90ae7000 - 0x90b57fff com.apple.framework.IOKit 1.4 (???) /System/
Library/Frameworks/IOKit.framework/Versions/A/IOKit
0x90b6d000 - 0x90b7ffff libauto.dylib /usr/lib/libauto.dylib
0x90b86000 - 0x90e5dfff com.apple.CoreServices.CarbonCore 681.3
(671.2) /System/Library/Frameworks/CoreServices.framework/Versions/A/
Frameworks/CarbonCore.framework/Versions/A/CarbonCore
0x90ec3000 - 0x90f43fff com.apple.CoreServices.OSServices 4.1 /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
OSServices.framework/Versions/A/OSServices
0x90f8d000 - 0x90fcefff com.apple.CFNetwork 129.16 /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
CFNetwork.framework/Versions/A/CFNetwork
0x90fe3000 - 0x90ffbfff com.apple.WebServices 1.1.2 (1.1.0) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
WebServicesCore.framework/Versions/A/WebServicesCore
0x9100b000 - 0x9108cfff com.apple.SearchKit 1.0.5 /System/Library/
Frameworks/CoreServices.framework/Versions/A/Frameworks/
SearchKit.framework/Versions/A/SearchKit
0x910d2000 - 0x910fbfff com.apple.Metadata 10.4.4 (121.36) /System/
Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/
Metadata.framework/Versions/A/Metadata
0x9110c000 - 0x9111afff libz.1.dylib /usr/lib/libz.1.dylib
0x9111d000 - 0x912d3fff com.apple.security 4.3 (25966) /System/
Library/Frameworks/Security.framework/Versions/A/Security
0x913d0000 - 0x913d9fff com.apple.DiskArbitration 2.1 /System/Library/
Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration
0x913e0000 - 0x91407fff com.apple.SystemConfiguration 1.8.2 /System/
Library/Frameworks/SystemConfiguration.framework/Versions/A/
SystemConfiguration
0x9141a000 - 0x91425fff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib
0x9142a000 - 0x91432fff libbsm.dylib /usr/lib/libbsm.dylib
0x91436000 - 0x914b1fff com.apple.audio.CoreAudio 3.0.3 /System/
Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio
0x914ee000 - 0x914eefff com.apple.ApplicationServices 10.4 (???) /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
ApplicationServices
0x914f0000 - 0x91528fff com.apple.AE 1.5 (297) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
AE.framework/Versions/A/AE
0x91543000 - 0x91610fff com.apple.ColorSync 4.4.4 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
ColorSync.framework/Versions/A/ColorSync
0x91665000 - 0x916f6fff com.apple.print.framework.PrintCore 4.5
(177.10) /System/Library/Frameworks/ApplicationServices.framework/
Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore
0x9173d000 - 0x917f4fff com.apple.QD 3.8.20 (???) /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
QD.framework/Versions/A/QD
0x91831000 - 0x9188ffff com.apple.HIServices 1.5.1 (???) /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/HIServices.framework/Versions/A/HIServices
0x918be000 - 0x918dffff com.apple.LangAnalysis 1.6.1 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LangAnalysis.framework/Versions/A/LangAnalysis
0x918f3000 - 0x91918fff com.apple.FindByContent 1.5 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
FindByContent.framework/Versions/A/FindByContent
0x9192b000 - 0x9196dfff com.apple.LaunchServices 178 /System/Library/
Frameworks/ApplicationServices.framework/Versions/A/Frameworks/
LaunchServices.framework/Versions/A/LaunchServices
0x91989000 - 0x9199dfff com.apple.speech.synthesis.framework 3.3 /
System/Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis
0x919ab000 - 0x919eafff com.apple.ImageIO.framework 1.4.6 /System/
Library/Frameworks/ApplicationServices.framework/Versions/A/
Frameworks/ImageIO.framework/Versions/A/ImageIO
0x91a00000 - 0x91ac8fff libcrypto.0.9.7.dylib /usr/lib/libcrypto.
0.9.7.dylib
0x91b16000 - 0x91b2bfff libcups.2.dylib /usr/lib/libcups.2.dylib
0x91b30000 - 0x91b4dfff libJPEG.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJPEG.dylib
0x91b52000 - 0x91bc1fff libJP2.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libJP2.dylib
0x91bd8000 - 0x91bdcfff libGIF.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libGIF.dylib
0x91bde000 - 0x91c25fff libRaw.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRaw.dylib
0x91c2a000 - 0x91c67fff libTIFF.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libTIFF.dylib
0x91c6e000 - 0x91c87fff libPng.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libPng.dylib
0x91c8c000 - 0x91c8ffff libRadiance.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/
Versions/A/Resources/libRadiance.dylib
0x91c91000 - 0x91c91fff com.apple.Accelerate 1.2.1 (Accelerate
1.2.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Accelerate
0x91c93000 - 0x91d73fff com.apple.vImage 2.3 /System/Library/
Frameworks/Accelerate.framework/Versions/A/Frameworks/
vImage.framework/Versions/A/vImage
0x91d7b000 - 0x91d9afff com.apple.Accelerate.vecLib 3.2.1 (vecLib
3.2.1) /System/Library/Frameworks/Accelerate.framework/Versions/A/
Frameworks/vecLib.framework/Versions/A/vecLib
0x91e06000 - 0x91e74fff libvMisc.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvMisc.dylib
0x91e7f000 - 0x91f13fff libvDSP.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libvDSP.dylib
0x91f2d000 - 0x924b5fff libBLAS.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libBLAS.dylib
0x924e8000 - 0x92813fff libLAPACK.dylib /System/Library/Frameworks/
Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/
A/libLAPACK.dylib
0x92843000 - 0x928cbfff com.apple.DesktopServices 1.3.3 /System/
Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/
DesktopServicesPriv
0x9290c000 - 0x92b37fff com.apple.Foundation 6.4.5 (567.26) /System/
Library/Frameworks/Foundation.framework/Versions/C/Foundation
0x92c55000 - 0x92d33fff libxml2.2.dylib /usr/lib/libxml2.2.dylib
0x92d53000 - 0x92e41fff libiconv.2.dylib /usr/lib/libiconv.2.dylib
0x92e53000 - 0x92e71fff libGL.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGL.dylib
0x92e7c000 - 0x92ed6fff libGLU.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLU.dylib
0x92ef4000 - 0x92ef4fff com.apple.Carbon 10.4 (???) /System/Library/
Frameworks/Carbon.framework/Versions/A/Carbon
0x92ef6000 - 0x92f0afff com.apple.ImageCapture 3.0 /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/
ImageCapture.framework/Versions/A/ImageCapture
0x92f22000 - 0x92f32fff com.apple.speech.recognition.framework 3.4 /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
SpeechRecognition.framework/Versions/A/SpeechRecognition
0x92f3e000 - 0x92f53fff com.apple.securityhi 2.0 (203) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
SecurityHI.framework/Versions/A/SecurityHI
0x92f65000 - 0x92fecfff com.apple.ink.framework 101.2 (69) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
Ink.framework/Versions/A/Ink
0x93000000 - 0x9300bfff com.apple.help 1.0.3 (32) /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/
Versions/A/Help
0x93015000 - 0x93042fff com.apple.openscripting 1.2.5 (???) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
OpenScripting.framework/Versions/A/OpenScripting
0x9305c000 - 0x9306bfff com.apple.print.framework.Print 5.2 (192.4) /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
Print.framework/Versions/A/Print
0x93077000 - 0x930ddfff com.apple.htmlrendering 1.1.2 /System/Library/
Frameworks/Carbon.framework/Versions/A/Frameworks/
HTMLRendering.framework/Versions/A/HTMLRendering
0x9310e000 - 0x9315dfff com.apple.NavigationServices 3.4.4 (3.4.3) /
System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
NavigationServices.framework/Versions/A/NavigationServices
0x9318b000 - 0x931a8fff com.apple.audio.SoundManager 3.9 /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CarbonSound.framework/Versions/A/CarbonSound
0x931ba000 - 0x931c7fff com.apple.CommonPanels 1.2.2 (73) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
CommonPanels.framework/Versions/A/CommonPanels
0x931d0000 - 0x934ddfff com.apple.HIToolbox 1.4.6 (???) /System/
Library/Frameworks/Carbon.framework/Versions/A/Frameworks/
HIToolbox.framework/Versions/A/HIToolbox
0x9362c000 - 0x93638fff com.apple.opengl 1.4.7 /System/Library/
Frameworks/OpenGL.framework/Versions/A/OpenGL
0x936d1000 - 0x936d1fff com.apple.Cocoa 6.4 (???) /System/Library/
Frameworks/Cocoa.framework/Versions/A/Cocoa
0x936d3000 - 0x93d05fff com.apple.AppKit 6.4.6 (824.38) /System/
Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x94092000 - 0x94102fff com.apple.CoreData 80 /System/Library/
Frameworks/CoreData.framework/Versions/A/CoreData
0x9413b000 - 0x941fefff com.apple.audio.toolbox.AudioToolbox 1.4.1 /
System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox
0x94250000 - 0x94250fff com.apple.audio.units.AudioUnit 1.4 /System/
Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit
0x94252000 - 0x94406fff com.apple.QuartzCore 1.4.7 /System/Library/
Frameworks/QuartzCore.framework/Versions/A/QuartzCore
0x94459000 - 0x94496fff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib
0x9449e000 - 0x944eefff libGLImage.dylib /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLImage.dylib
0x9469c000 - 0x946abfff libCGATS.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib
0x946b3000 - 0x946c0fff libCSync.A.dylib /System/Library/Frameworks/
ApplicationServices.framework/Versions/A/Frameworks/
CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib
0x94726000 - 0x94797fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib
0x9480a000 - 0x9482afff libmx.A.dylib /usr/lib/libmx.A.dylib
0xc1000000 - 0xc1017fff OpenBaseNet 9.1 /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/Frameworks/OpenBaseNet.framework/
Versions/A/OpenBaseNet
0xc2000000 - 0xc202bfff OpenBaseAPI 7.0 (9.1) /Volumes/Alpha2/Dev-
ProjectBuilder/Cocoa-Projects/RadiusAuthenticator2/build/Release/
RadiusAuthenticator2.app/Contents/Frameworks/OpenBaseAPI.framework/
Versions/A/OpenBaseAPI
and the crash.log from the release machine (that does not even have
the vcomponents installed) reads:
Command: RadiusAuthenticator2
Path: /RadiusAuthenticator2/RadiusAuthenticator2.app/Contents/
MacOS/RadiusAuthenticator2
Parent: WindowServer [200]
Version: RadiusAuthenticator2 version 2.0 (2.0)
PID: 6504
Thread: Unknown
Link (dyld) error:
Library not loaded: /usr/local/lib/vcomponents/
libvclient_fat_release.dylib
Referenced from: /RadiusAuthenticator2/RadiusAuthenticator2.app/
Contents/MacOS/RadiusAuthenticator2
Reason: image not found
I have gone through both the Project build settings and the Target
build settings and removed all the garbage library/framework search
paths.
However, of course, if I remove the /usr/local/lib/vcomponents path
from the library/framework search paths, then the application cannot
be compiled/linked
successfully.
It seems that I am very close to succeeding, but I am not sure what
else to try. I have tried changing many things, but without success.
BTW, this is the big reason I was hoping there was a demonstration
Cocoa application XCode project, so show exactly how this is done.
It is clear that it can be done (since you build VStudio and Shaun
builds his applications), but I seem to be stuck.
- Matthew
More information about the Valentina
mailing list