Re: round() returning NaN
Re: round() returning NaN
- Subject: Re: round() returning NaN
- From: Ken Thomases <email@hidden>
- Date: Sat, 02 Apr 2011 18:38:44 -0500
On Apr 2, 2011, at 5:24 PM, Eyal Redler wrote:
> 1. The problem doesn't not occur in deployment build, only debug builds
Optimization can change the layout of the stack, so this suggests a stack smashing bug.
> 2. I notices that if I put a breakpoint in some particular place of the code the problem doesn't occur: it is as if the actual stopping on the breakpoint cleared the bad stuff that was causing it...
To me, this suggests a possible threading issue.
> I would appreciate any ideas or directions that you or others might have, this is really worrying and I'm out of ideas...
I recommend trying the -fstack-protector-all compiler option. If that doesn't isolate it, you can move on to Valgrind.
Regards,
Ken
_______________________________________________
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