• 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: XCode / Debugger error message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode / Debugger error message


  • Subject: Re: XCode / Debugger error message
  • From: "William H. Schultz" <email@hidden>
  • Date: Mon, 18 Feb 2008 11:33:42 -0800

I've had this error message for years, and I had just learned to live with it. However, we hired a new programmer, and she's not as lazy as me, and she's been trying to figure it out herself. Well, I spent a day on this and SOLVED the problem.

The first thing to not is that the hexadecimal number at the bottom of your error is *critical* in determining precisely why you're getting the message. When the message shows up, copy the address. Click ok. At the gdb command prompt that is already open, type "info symbol 0x4647a8" where that hexadecimal number is the address in your error message. This will give you the symbol that failed.

In my case, it was a static string inside of wxWidgets. I did a bit of digging, and no amount of tweaking the string enabled me to make this error go away. I did notice, however, that the string was directly related to wxWidgets' implementation of dlopen. Prior to 10.3, there was no dlopen available on Mac OS X, so they implemented their own version. My assumption at this point was that the wxWidgets dlopen was interfering with the OS X version of dlopen. I tweaked the code a little to get wxWidgets to use the built-in dlopen, and the error went away--I can now use custom data formatters. :D Yay!!!

I should note that I was able to duplicate the error by simply linking the wxWidgets libraries to a clean project. Getting rid of the wxWidgets implementation of dlopen again made the error go away.

So, the problem could be that the file is a legitimately unrecognizable object file, but it could also be that Xcode/gdb is crazy confused because there's an extra dlopen symbol in the address space.


I hope this helps!


------------------------------- Hank Schultz Cedrus Corporation http://www.cedrus.com/


On Dec 23, 2007, at 1:10 PM, Hartwig Wiesmann wrote:


Am 23.12.2007 um 21:10 schrieb Michael Watson:


1. What does this have to do with "Debugging Cocoa application unit tests on Leopard," the thread to which you replied?


The subject line is new, but Mail.app appears to think it's part of another thread. Honestly, it looks like a problem with Mail.app, not Hartwig's post to the list.



That's right. I really wanted to open a new thread.

2. What version of Xcode are you using? I assume it's 3.0.


Why are you assuming this? Xcode 2.5 is fully supported and (for all intents and purposes) new.



I use XCode 3.0.

3. I assume the file is corrupt. You might confirm it with

cd /Developer/Applications/Xcode.app/Contents/PlugIns/ GDBMIDebugging.xcplugin
file Contents/Resources/PBGDBIntrospectionSupport.A.dylib
otool -f Contents/Resources/PBGDBIntrospectionSupport.A.dylib
otool -T Contents/Resources/PBGDBIntrospectionSupport.A.dylib



No errors.

... and seeing if you get errors. But even if those didn't report any errors, I'd still believe the file is corrupt.

Put /Developer into the trash, reinstall Xcode, and see if the problem clears up. Also, boot into single-user mode and do a fsck - y / .


Running the uninstall script might be a better idea than dragging / Developer to the trash.




I will try.

--
m-s



Hartwig


_______________________________________________ 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

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
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: find static lib
  • Next by Date: Valentina C++/xCode and Cocoa/Objective C FREE today only
  • Previous by thread: Re: find static lib
  • Next by thread: Valentina C++/xCode and Cocoa/Objective C FREE today only
  • Index(es):
    • Date
    • Thread