• 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 debugging problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: XCode debugging problems


  • Subject: Re: XCode debugging problems
  • From: Jim Ingham <email@hidden>
  • Date: Tue, 2 Dec 2003 07:28:33 -0800

On Dec 2, 2003, at 6:48 AM, Jose Commins wrote:

This may be a joint compiler/debugger problem, as I have similar random crashes when debugging an app that works perfectly well without the debugger (I've had to disassemble it using another app to see if it was fine).

Xcode runs some functions in the address space of your program as part of its variable formatter. These should in general "do no harm" but it is possible they might not. This may indicate some latent bug in your program, or a bug in the formatters. Try turning of the Custom Data Formatting in the Xcode Debug menu and see if they go away. If they do, then it would be really helpful if we could figure out where you were stopped in your program, and what Xcode was trying to do, when the crash occurred.


The compiler doesn't seem to be picking up some errors which it used to do: 'GetControlValue' doesn't return an error on compilation, despite having to be 'GetControl32BitValue', resulting in duff code.
Moreover, debuggers usualy insert breakpoints by replacing an instruction with a PowerPC exception - from looking at these posts it could be that it is inserting misplaced exceptions on possibly stale code, which could be an explanation for spurious crashes.

gdb only inserts one instruction, which generates a EXC_BREAKPOINT exception. If you are running under the debugger you will see this or a SIGTRAP. If you are seeing this exception where you haven't set a breakpoint, please report it as a bug. I found (and fixed) one case where we were leaving a breakpoint in place when we shouldn't (when you set two "future-breakpoints" at the same location that don't end up resolving when the app first loads). If there are other cases, I can probably fix them pretty easily, but only if I can reproduce the case...


If you are seeing some other exception, then this is not the issue.

Jim




Regards,
		Jose.

On 2 Dec 2003, at 06:01, Nick Zitzmann wrote:

On Dec 1, 2003, at 11:17 AM, Ben Guthro wrote:

I converted the project from ProjectBuilder to XCode upon opening it
for
the first time.
After a successful build, my app will run from the finder, but not with
the "Build & Debug" menu selection, nor "Debug". An error message is
never displayed - It just quite simply does not load.

I've had a similar problem - I've got an application that, for some odd
reason, when run in the debugger, does not complete initialization.
When I pause execution, it appears that it's setting up a toolbar that
has a pull-down menu in it, and the process of initializing that menu,
it tries to lock an NSConditionLock deep within AppKit that for some
reason never gets unlocked. This does not happen when it's launched
from the Finder... Maybe this is the same problem you're experiencing.


I've found that sometimes stopping and restarting debugging repeatedly
when the problem occurs makes it launch eventually, as it seems to be
completely random. <8*(

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://seiryu.home.comcast.net/
S/MIME signature available upon request

"That's a funny thing to promise. Well, you can't never let anything
happen to him [Nemo]; then, nothing would ever happen to him." - Dory,
from the movie "Finding Nemo"


--
The most important part of a microbiologist's job is not letting the little things get to them.
_______________________________________________
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.


_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
Jim Ingham email@hidden
Developer Tools - gdb
_______________________________________________
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.

  • Follow-Ups:
    • Re: XCode debugging problems and SIGBUS at certain breakpoints in 7K109
      • From: Matt Gough <email@hidden>
References: 
 >Re: XCode debugging problems (From: Jose Commins <email@hidden>)

  • Prev by Date: SIGBUS at certain breakpoints in 7K109
  • Next by Date: OT: Free tools?
  • Previous by thread: Re: XCode debugging problems
  • Next by thread: Re: XCode debugging problems and SIGBUS at certain breakpoints in 7K109
  • Index(es):
    • Date
    • Thread