divide by zero exception in time() function
divide by zero exception in time() function
- Subject: divide by zero exception in time() function
- From: Buddy Kurz <email@hidden>
- Date: Fri, 9 Jun 2006 13:45:33 -0700
Google has not been my friend in this matter - nor has my archive of
60,000 list eMails.
My app crashes occasionally and randomly apparently due to a divide
by zero in the gettimeofday function (presumably in CoreFoundation)
Are there issues with this function being called by multiple threads?
Any other suggestions or comments? Workaround?
I have included parts of two crash logs - the first from my app, the
second if found in a blog posted in march of this year.
any help would be appreciated.
-----------------------------------------------------------------
PID: 2475
Thread: 20
Exception: EXC_ARITHMETIC (0x0003)
Codes: EXC_I386_DIV (divide by zero)
...
Thread 20 Crashed:
0 <<00000000>> 0xffff0329 __gettimeofday + 73 (cpu_capabilities.h:
177)
1 libSystem.B.dylib 0x90004edb gettimeofday + 43
2 libSystem.B.dylib 0x90004e8d time + 29
-----------------------------------------------------------------
"Actually, it looks like the problem is in CoreFoundation:"
Exception: EXC_ARITHMETIC (0×0003)
Codes: EXC_I386_DIV (divide by zero)
Thread 0 Crashed:
0 > __gettimeofday + 73 (cpu_capabilities.h:177)
1 libSystem.B.dylib 0×90004ffb gettimeofday + 43
2 com.apple.CoreFoundation 0×9082d7a6 CFAbsoluteTimeGetCurrent + 31
3 com.apple.CoreFoundation 0×90854a0e CFRunLoopTimerSetNextFireDate + 61
4 com.apple.HIToolbox 0×92f58f29 SetEventLoopTimerNextFireTime + 106
5 com.apple.iTunes 0×00205d2c 0×1000 + 2116908
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden