The Answer is Zero

March 12, 2006

One of the things that can cause errors with Intel chips that doesn’t happen with PowerPC chips is a divide by zero error. Well, today (he says, excitedly) I had my first one . Not in one of my own applications – that would be too easy – but in iTunes.

Also, rather than the usual Crash Reporter dialog, the error appeared in Terminal, ready to debug with gdb:

zero-sm.jpg

Actually, it looks like the problem is in CoreFoundation:

Exception: EXC_ARITHMETIC (0x0003)
Codes: EXC_I386_DIV (divide by zero)

Thread 0 Crashed:
0 > __gettimeofday + 73 (cpu_capabilities.h:177)
1 libSystem.B.dylib 0x90004ffb gettimeofday + 43
2 com.apple.CoreFoundation 0x9082d7a6 CFAbsoluteTimeGetCurrent + 31
3 com.apple.CoreFoundation 0x90854a0e CFRunLoopTimerSetNextFireDate + 61
4 com.apple.HIToolbox 0x92f58f29 SetEventLoopTimerNextFireTime + 106
5 com.apple.iTunes 0x00205d2c 0x1000 + 2116908
6 com.apple.HIToolbox 0x92f0a472 TimerVector + 31
7 com.apple.CoreFoundation 0x90822e8d CFRunLoopRunSpecific + 3341
8 com.apple.CoreFoundation 0x90822179 CFRunLoopRunInMode + 61
9 com.apple.HIToolbox 0x92ed28e0 RunCurrentEventLoopInMode + 285
10 com.apple.HIToolbox 0x92fc6f6d GetNextEventMatchingMask + 419
11 com.apple.HIToolbox 0x92fc6c59 WNEInternal + 123
12 com.apple.HIToolbox 0x92fc6bc7 WaitNextEvent + 57
13 com.apple.iTunes 0x00177f10 0x1000 + 1535760
14 com.apple.iTunes 0x00206103 0x1000 + 2117891
15 com.apple.iTunes 0x00206cf5 0x1000 + 2120949
16 com.apple.iTunes 0x00031089 0x1000 + 196745
17 com.apple.iTunes 0x002074eb 0x1000 + 2122987
18 com.apple.iTunes 0x00002d2e 0x1000 + 7470
19 com.apple.iTunes 0x00002c49 0x1000 + 7241

Ironically, the track playing at the time iTunes crashed was called “Immature”. 😀

Advertisements

4 Responses to “The Answer is Zero”

  1. Claire Says:

    Geek! 😛

  2. Steve Says:

    Well, yeah. I’d write about my vigourous sex life instead, but I wouldn’t want to embarrass anyone.

  3. Jim Says:

    I’ve noticed a lot of iLife apps are crashing in that area at the moment. Mostly dvd player and iTunes, but others too..

    Just make sure you submit the error report for apple to track them all down.

  4. Steve Says:

    I did at the time, Jim, and they’re meant to be fixing it.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: