The purpose of this post is, unfortunately, not to provide a solution; rather, I want to outline a few of the things I did thus far to help document the issue.
First of all, I have to say that I only have the problem on my Mac Pro; on my MacBook Pro, where I use an exact copy of my iTunes library (just under 40 gigs with roughly 5700 tracks), things are just fine. It is the entire iTunes folder (located in the Music folder) that is identical, not just the library and music files.
I won't describe the symptoms here; they are identical to those reported by Eric D., the original poster.
First, I ran Disk Warrior. The utility did not report anything of significance. Next, I downloaded and re-applied the latest OS X combo update, thinking that something at the OS level might have been hosed. This did not fix anything. I then completely removed iTunes from my system using the procedure described in
http://support.apple.com/kb/HT1224. Reinstalling iTunes from scratch did nothing, either: the system still froze.
While poring over the logs in an attempt to glean something useful, I saw that at one point, there had been a couple of I/O errors on my main disk drive. I did a surface scan with Drive Genius 3 (with the spare block option enabled), and the utility indeed returned the following:
Scanned 1,952,853,344 of 1,952,853,344 blocks. 0% (3) have been spared.
Notice: Block 1,313,388,798 at offset 672,455,064,576 has been spared.
Notice: Block 1,796,859,370 at offset 919,991,997,440 has been spared.
Notice: Block 1,823,686,410 at offset 933,727,441,920 has been spared.
To make sure no blocks had been removed from my iTunes files by the above, I recopied the entire iTunes folder from my MacBook Pro to my Mac Pro. I then ran Disk Warrior's File which revealed that no problem existed with any of the files on the disk. Needless to say, the problem persisted.
At this point, I made sure my Time Machine backup was up to date before booting the Mac Pro from a different internal disk and reformatting my main drive. I then rebooted from the Snow Leopard DVD and restored my main work drive from the Time Machine backup. Aside from taking a few hours, this did not do anything: the problem was still there. Incidentally, after every forced reboot following a freeze, I booted from a different drive to be able to do a volume repair. The response was always the same in that the file count is always off by 1:
Repairing volume...
Checking Journaled HFS Plus volume.
Checking extents overflow file.
Checking catalog file.
Checking multi-linked files.
Checking catalog hierarchy.
Checking extended attributes file.
Checking volume bitmap.
Checking volume information.
Invalid volume file count
(It should be 1204650 instead of 1204651)
Invalid volume directory count
(It should be 309299 instead of 309298)
Repairing volume.
Rechecking volume.
Checking Journaled HFS Plus volume.
Checking extents overflow file.
Checking catalog file.
Checking multi-linked files.
Checking catalog hierarchy.
Checking extended attributes file.
Checking volume bitmap.
Checking volume information.
The volume Macintosh HD was repaired successfully.
Thinking about this mess, I realized that I did not remember when exactly it started. Did I have the problem with iTunes 9? I thought the frequency of the freezes was increasing, but when the first one occurred I could not recall. I removed iTunes 10.1.1 again using the same procedure mentioned above (
http://support.apple.com/kb/HT1224) and installed iTunes 9 again (it's available at
http://support.apple.com/downloads/#iTunes). Because my library had bee used with a later version, it could not be used with iTunes 9. I therefore had to recreate it for version 9 while preserving my playlists. I did this using the procedure given here:
http://support.apple.com/kb/ht1451. I launched iTunes; depressingly, it froze about ten seconds into playing the first track I tried. I repaired the volume, got rid of iTunes 9, and reinstalled iTunes 10.1.1.
This morning, I created a new admin account and copied my main account's iTunes folder to it. I've been using this new account to surf for a while, and all the while iTunes has been playing. I'm using Text Edit to type this summary, hitting command-s often (you can't be too careful). I'm starting to feel cautiously optimistic about this; true, it's only been a couple of hours, but lately iTunes has frozen in much less time than that when using my main account…
One of the more annoying consequences of this business is that it can affect the devices one syncs with iTunes. For example, iTunes froze in the middle of synchronizing my iPhone, and it left the phone in a corrupted state with half the apps missing. My only recourse was to restore the iPhone from a backup. Apple really needs to investigate the issue, but I suspect that it is not a high priority for them because it only appears to impact a small subset of users. Still, let's hope someone figures out the root cause soon.
Merry Christmas!
Daniel