Open Menu
Close Menu
Apple
Shopping Bag
Apple
Mac
iPad
iPhone
Watch
TV
Music
Support
Search apple.com
Shopping Bag
Lists
Open Menu
Close Menu
Terms and Conditions
Lists hosted on this site
Email the Postmaster
Tips for posting to public mailing lists
dyld error with Guard Malloc and LLDB
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
dyld error with Guard Malloc and LLDB
Subject
:
dyld error with Guard Malloc and LLDB
From: Tony McDaniel <
email@hidden
>
Date: Wed, 22 Jun 2011 19:42:28 -0400
I noticed an odd glitch today with Xcode 4. If I have LLDB set as the debugger and enable Guard Malloc, I get an error in the console:
dyld: could not load inserted library:
but no library is listed.
Searching on Google indicated that this was a problem with libgmalloc.dylib. Setting the debugger to use GDB, everything works as expected, with no errors.
Following a suggestion on Google, I ran 'ps alxwwe | grep flowsolver' to find the environment variables in use for the process. I'm including both sets (LLDB and GDB) here:
LLDB:
501 42997 42996 0 31 0 2425532 208 - SX ?? 0:00.00 /Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug/flowsolver 13-node.ugrid DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib: DYLD_FRAMEWORK_PATH=/Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug NSUnbufferedIO=YES DYLD_LIBRARY_PATH=/Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug/Developer/Library/Xcode/PrivatePlugIns/DebuggerFoundation.ideplugin/Contents/Resources/DebuggerIntrospectionSupport.dylib PWD=/Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug
GDB:
501 43052 43044 0 31 0 2426988 584 - SX ?? 0:01.62 /Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug/flowsolver 13-node.ugrid SHELL=/bin/bash TMPDIR=/var/folders/MW/MW0csM3KFw4x7EFi7QjDXU+++TI/-Tmp-/ Apple_PubSub_Socket_Render=/tmp/launch-UF8O1w/Render USER=tony COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch-jn1NyW/Listeners __CF_USER_TEXT_ENCODING=0x1F5:0:0 PATH=/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin PWD=/Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug SHLVL=0 HOME=/Users/tony PYTHONPATH=/Developer/Library/PrivateFrameworks/LLDB.framework/Versions/A/Resources/Python:/Developer/Library/PrivateFrameworks/LLDB.framework/Versions/A LOGNAME=tony DISPLAY=/tmp/launch-lAyAY8/org.x:0 LINES=24 COLUMNS=80 NSUnbufferedIO=YES DYLD_LIBRARY_PATH=/Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug DYLD_INSERT_LIBRARIES=/usr/lib/libgmalloc.dylib DYLD_FRAMEWORK_PATH=/Users/tony/Documents/School/ENCM5910_Flow Solver/flowsolver/build/Debug
One thing I noticed: In the LLDB info, /usr/lib/libgmalloc.dylib ends in a colon, which I believe would indicate that another location should be listed afterward. Also, the entry for DYLD_LIBRARY_PATH has a / between Debug and Developer, instead of a colon.
This is a fairly recent install of Xcode 4 on a new quad core MacBook Pro. Everything is up to date, Xcode 4.0.2, MacOS X 10.6.7.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
Prev by Date:
Re: Using Xcode 4 and 3.x on same partition?
Next by Date:
Re: Applescript support in Xcode4
Previous by thread:
Re: Using Xcode 4 and 3.x on same partition?
Next by thread:
path problem with Xcode 2.4 project...
Index(es):
Date
Thread