site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=QVd0Y0lMqYPoQC8aG0sk6YdxSE7whw/tA5RF3pjsPHY=; b=GbVuBh7iu1stDR7zv2nW4L+1XxTRGxlMdZdoOHNzACr1tMHCx6+v8hRUlzk/oZOb5I mHpMNlNLDmZWcvd/rPcmtAAYnlhI2hBXT7XsJk7mekI7x4blz1RYZjYaSZ4nBjWIgyrp 3u/uIWrRHFBUYJSVuiu72r3P891YTg510KDrc= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=D+QrxWO4Khukn2QUlZN/9IwyZMDAcfrJ9whCoZ3lUHq/wTjUPw2SzVKheyHKLIXDGX s6d7pDGIcj32fMQYCJzoXIA2izwSI/v/nDgBW+uhyRZRGC2NHq5T2jm8tvivar185fzu DwWbej0nnpUgY3cZRfCiN2cLTf50ruVS4qcK8= 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 laurent.daudelin@gmail.com Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries_________________... Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com