• 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: Random crashes in release but not in debug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Random crashes in release but not in debug


  • Subject: Re: Random crashes in release but not in debug
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 31 Mar 2010 12:13:15 -0700

On Mar 31, 2010, at 11:51, Ken Thomases wrote:

> On Mar 31, 2010, at 1:35 PM, Laurent Daudelin wrote:
>
>> In any case, what would cause an application built with the debug configuration to not exhibit this bug at all while the same application built with the release configuration will crash randomly?
>
> Changes in the layout of code or the stack.  In particular, if you have bugs involving uninitialized variables or stack smashers, the behavior may change if such layout changes.
>
> If you haven't already, run the static analyzer (Build and Analyze) on your code.  Also, turn on as many compiler warnings as are useful and fix them.  Note that some warnings require that optimizations be turned on to be effective, because they rely on data-flow analysis and the like that's only performed during optimization.
>
> Good luck,
> Ken
>

Thanks, Ken, I will run the analyzer and see what comes out. I thought about it but due to the nature of my app relying on unpredictable NSURLConnection and dispatching NSNotification, I was not sure if it would be useful, but I'll run it later tonight.

-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 				http://nemesys.dyndns.org
Logiciels Nemesys Software              				email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Random crashes in release but not in debug (From: Laurent Daudelin <email@hidden>)
 >Re: Random crashes in release but not in debug (From: Ken Thomases <email@hidden>)

  • Prev by Date: Re: NSTask dilema...
  • Next by Date: Re: NSTask dilema...
  • Previous by thread: Re: Random crashes in release but not in debug
  • Next by thread: Re: Random crashes in release but not in debug
  • Index(es):
    • Date
    • Thread