How Random Babbling Becomes Corporate Policy (t3knomanser) wrote in macosxdev,

XCode Error - "Cannot access memory at address 0x4"

I've gone back through the archives for a bit, but haven't seen anything like this. Google is a disappointment as well.

I'm on Leopard with XCode 3, and when I try and debug an application, GDB chokes on it. It doesn't matter what application. Even if I just try and debug the default Cocoa Application template without a line of my own code in it, it borks.



This GDB was configured as "i386-apple-darwin".tty /dev/ttys002
Program loaded.
sharedlibrary apply-load-rules all
run
[Switching to process 44410 local thread 0x2f0f]
Running…
[Switching to process 44410 thread 0x2203]
[Switching to process 44410 local thread 0x2f0f]
[Switching to process 44410 thread 0x4403]
Program received signal: “EXC_BAD_ACCESS”.
[Switching to process 44410 thread 0x4403]
Xcode: Introspection dylib not loaded because thread 1 has function: __dyld__ZN4dyld18notifyBatchPartialE17dyld_image_statesbPFPKcS0_jPK15dyld_image_infoE on stack
Cannot access memory at address 0x4
Cannot access memory at address 0x4
kill
quit

The Debugger has exited with status 0.


Leopard on a first gen Intel MBP. Tiger and XCode 2 were installed on it at one point, and I did do an upgrade install.

I'm n00b with XCode development (I programmed a game once on Tiger, but haven't touched it in too long to remember much), so hopefully this isn't a pebkac. Has anyone seen anything like this before?

EDIT: Looks like this is a pebkac. I didn't use the uninstall script to uninstall XCode 2, so some of its binaries are sitting in /usr/bin, and I installed XCode 3, which doesn't have that cute little uninstall script.

So now, I have to figure out how to uninstall X2 without the X2 uninstall script.
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 2 comments

Help Me!

Anonymous

September 3 2008, 00:44:07 UTC 6 years ago

I am having the same problem. I cannot for the life of me figure out what is going on. I had Xcode 2.5 installed too, but I thought having both 2.5 and 3.1 installed at the same time was supported. I removed both and reinstalled Xcode 3.1, but I still have the problem.

Re: Help Me!

t3knomanser

September 3 2008, 01:00:43 UTC 6 years ago

Did you uninstall 2.5 properly? Every file related to it has to go. Use the script, or if the script isn't there anymore, get it off your old OS CD or a friend's.