• 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: App crashes when launched from finder, but not when launched from debugger or command line
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: App crashes when launched from finder, but not when launched from debugger or command line


  • Subject: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • From: Rick Mann <email@hidden>
  • Date: Mon, 17 Nov 2008 16:04:55 -0800

Thanks, that helped. I kinda thought the \n would cause it to flush, but I meant to do this and forgot. Anyway, both this and mWindow seem valid:

this: 0x0143eb20
mWindow: 0x0147ee20

And yet it crashed.

If I launch first, and then attach the debugger, it stops on a bad access: 'this' is 0x7. Not sure why calling printf with 'this' would cause it to crash there, but I'm not at all confident that the GDB state was correct.

AFAICT, the app doesn't explicitly do anything different based on the environment.

On Nov 17, 2008, at 09:56:37, Steve Checkoway wrote:

On Mon, Nov 17, 2008 at 09:48:28AM -0800, Rick Mann wrote:
I tried printing the values of this & mWindow, but nothing ever appears
in the crashing case.

Make sure the stream is getting flushed: printf( "this: %p\n", this ); fflush( stdout );

--
Steve Checkoway


_______________________________________________ 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

-- Rick

_______________________________________________
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


References: 
 >App crashes when launched from finder, but not when launched from debugger or command line (From: Rick Mann <email@hidden>)
 >Re: App crashes when launched from finder, but not when launched from debugger or command line (From: Ken Thomases <email@hidden>)
 >Re: App crashes when launched from finder, but not when launched from debugger or command line (From: Rick Mann <email@hidden>)
 >Re: App crashes when launched from finder, but not when launched from debugger or command line (From: Steve Checkoway <email@hidden>)

  • Prev by Date: Re: Verifying Code Signing Identity
  • Next by Date: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Previous by thread: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Next by thread: Re: App crashes when launched from finder, but not when launched from debugger or command line
  • Index(es):
    • Date
    • Thread