• 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
Re: Why does Xcode's GDB Stop in "dyld_func_lookup_pointer"?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why does Xcode's GDB Stop in "dyld_func_lookup_pointer"?


  • Subject: Re: Why does Xcode's GDB Stop in "dyld_func_lookup_pointer"?
  • From: Philip Mötteli <email@hidden>
  • Date: Mon, 1 Dec 2003 16:26:47 +0100

Hello


I have the next case: This time the debugger quits immediately, so I can't even enter to make 'show env'.



Am 21.11.2003 um 19:20 schrieb Jim Ingham:
I can't see anything immediately wrong here. I noted below what some of these do. See "man dyld" for more details. The best way to proceed is to run command-line gdb, but set each of these variables one by one in gdb before you load your executable, like:

$ gdb
...
(gdb) set env DYLD_LIBRARY_PATH /tmp
(gdb) file <Path to executable>
(gdb) run

etc, and see which one causes gdb to fall over. Xcode runs gdb pretty much the same way you would from the console, or DDD would. So it pretty much has to be something that is set in the environment that is causing the problem...

That's what I did. Unfortunately, nothing made it crash so far. I added one by one, all of the variables until I ended up like this:


(gdb) show env
MANPATH=/sw/share/man:/Users/moetteli/Unix/man:/usr/local/man:/usr/ share/man:/usr/X11R6/man
TERM_PROGRAM=Apple_Terminal
TERM=xterm-color
SHELL=/bin/zsh
PERL5LIB=/sw/lib/perl5
TERM_PROGRAM_VERSION=100
NSISOLatin1StringEncoding=
ANT_HOME=/sw/lib/ant
SGML_CATALOG_FILES=/sw/etc/sgml/catalog
USER=moetteli
SSH_AUTH_SOCK=/tmp/500/nl.uu.phil.SSHAgent.socket
__CF_USER_TEXT_ENCODING=0x1F4:0:19
PATH=/sw/bin:/sw/sbin:/Users/moetteli/Unix/bin:/usr/local/bin:/usr/ucb: /bin:/usr/bin:/etc:/usr/etc:/usr/sbin:/sbin:/usr/X/bin:/usr/sybase/bin: /Users/moetteli/Apps:/LocalApps:/NextApps:/NextAdmin:/NextDeveloper/ Demos:/usr/sybase/bin:/Users/moetteli/Unix/bin:/usr/local/postgres95/ bin:.:/usr/X11R6/bin
XML_CATALOG_FILES=/sw/etc/xml/catalog
PWD=/tmp
JAVA_HOME=/Library/Java/Home
SHLVL=0
HOME=/Users/moetteli
LOGNAME=moetteli
INFOPATH=/sw/share/info:/sw/info:/usr/share/info
DISPLAY=:0.0
SECURITYSESSIONID=20fd60
GNUSTEP_STRING_ENCODING=NSISOLatin1StringEncoding
DYLD_IMAGE_SUFFIX=_debug
DYLD_FRAMEWORK_PATH=/tmp
DYLD_LIBRARY_PATH=/tmp
DYLD_PRINT_LIBRARIES=1
NSUnbufferedIO=YES
DYLD_INSERT_LIBRARIES=/Developer/Applications/Xcode.app/Contents/ PlugIns/GDBMIDebugging.pbplugin/Contents/Resources/ PBGDBIntrospectionSupport.A.dylib
DYLD_NEW_LOCAL_SHARED_REGIONS=YES
DYLD_NO_FIX_PREBINDING=YES



It had the more and more things logged, but no crash, though from Xcode the same program crashes.
In Xcode, I alos tried to remove 'zero linking' and prebinding  to no effect.



Thanks Phil _______________________________________________ xcode-users mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: XCode or CodeWarrior 9
  • Next by Date: Re: XCode or CodeWarrior 9
  • Previous by thread: Re: XCode or CodeWarrior 9
  • Next by thread: Re: How to merge .jar files in xcode?
  • Index(es):
    • Date
    • Thread