Bug 4203 - alac crashes
: alac crashes
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Formats
: 6.5.0
: Macintosh MacOS X 10.4
: P2 normal (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-23 09:49 UTC by fred goodman
Modified: 2008-12-18 11:12 UTC (History)
5 users (show)

See Also:
Category: ---


Attachments
offending apple lossless file (16.03 MB, audio/x-m4a)
2006-09-23 12:03 UTC, fred goodman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fred goodman 2006-09-23 09:49:37 UTC
This is  a bug with the official 6.5 as of yesterday.    Presumably that's 6.5b3 ?

My music is in apple lossless m4a files.   On some files alac crashes (reliably), as reported by console.log,  and
nothing but the track title is sent to the squeezebox.   Other files are (reliably) played.

The files play without problem with 6.3.1.

Here are a couple of crash reports for alac:


Host Name:      Laptop-2
Date/Time:      2006-09-23 00:25:53.743 -0500
OS Version:     10.4.7 (Build 8J135)
Report Version: 4

Command: alac
Path:    /Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac
Parent:  launchd [1]

Version: ??? (???)

PID:    19649
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000018

Thread 0 Crashed:
0   alac 	0x00001ce0 alac_set_info + 32
1   alac 	0x000017b0 _start + 392
2   dyld 	0x8fe01048 _dyld_start + 60

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000000001ce0 srr1: 0x000000000000d030                        vrsave: 0x0000000000000000
    cr: 0x24000024          xer: 0x0000000000000004   lr: 0x0000000000001cc8  ctr: 0x0000000090003e48
    r0: 0x00000000000034f8   r1: 0x00000000bffff870   r2: 0x0000000000004678   r3: 0x0000000000300150
    r4: 0x0000000000000014   r5: 0x0000000000004684   r6: 0x0000000000000006   r7: 0x0000000000000009
    r8: 0x0000000000402006   r9: 0x0000000000000006  r10: 0x0000000000400002  r11: 0x0000000044000022
   r12: 0x0000000090003858  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x0000000000000000  r23: 0x0000000000000000
   r24: 0x0000000000000000  r25: 0x0000000000000000  r26: 0x00000000bffffa18  r27: 0x00000000000045d4
   r28: 0x00000000000045d4  r29: 0x00000000000045d4  r30: 0x0000000000300150  r31: 0x0000000000001cc8

Binary Images Description:
    0x1000 -     0x6fff alac 	/Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac
0x8fe00000 - 0x8fe52fff dyld 45.3	/usr/lib/dyld
0x90000000 - 0x901bbfff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x90213000 - 0x90218fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib

**********

Host Name:      Laptop-2
Date/Time:      2006-09-23 00:54:55.711 -0500
OS Version:     10.4.7 (Build 8J135)
Report Version: 4

Command: alac
Path:    /Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac
Parent:  launchd [1]

Version: ??? (???)

PID:    19787
Thread: 0

Exception:  EXC_BAD_ACCESS (0x0001)
Codes:      KERN_PROTECTION_FAILURE (0x0002) at 0x00000018

Thread 0 Crashed:
0   alac 	0x00001ce0 alac_set_info + 32
1   alac 	0x000017b0 _start + 392
2   dyld 	0x8fe01048 _dyld_start + 60

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000000001ce0 srr1: 0x000000000000d030                        vrsave: 0x0000000000000000
    cr: 0x24000024          xer: 0x0000000000000004   lr: 0x0000000000001cc8  ctr: 0x0000000090003e48
    r0: 0x00000000000034f8   r1: 0x00000000bffff870   r2: 0x0000000000004678   r3: 0x0000000000300150
    r4: 0x0000000000000014   r5: 0x0000000000004684   r6: 0x0000000000000006   r7: 0x0000000000000009
    r8: 0x0000000000402006   r9: 0x0000000000000006  r10: 0x0000000000400002  r11: 0x0000000044000022
   r12: 0x0000000090003858  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
   r16: 0x0000000000000000  r17: 0x0000000000000000  r18: 0x0000000000000000  r19: 0x0000000000000000
   r20: 0x0000000000000000  r21: 0x0000000000000000  r22: 0x0000000000000000  r23: 0x0000000000000000
   r24: 0x0000000000000000  r25: 0x0000000000000000  r26: 0x00000000bffffa18  r27: 0x00000000000045d4
   r28: 0x00000000000045d4  r29: 0x00000000000045d4  r30: 0x0000000000300150  r31: 0x0000000000001cc8

Binary Images Description:
    0x1000 -     0x6fff alac 	/Users/fgoodman/Library/PreferencePanes/SlimServer.prefPane/Contents/server/Bin/darwin/alac
0x8fe00000 - 0x8fe52fff dyld 45.3	/usr/lib/dyld
0x90000000 - 0x901bbfff libSystem.B.dylib 	/usr/lib/libSystem.B.dylib
0x90213000 - 0x90218fff libmathCommon.A.dylib 	/usr/lib/system/libmathCommon.A.dylib
Comment 1 Andy Grundman 2006-09-23 10:07:56 UTC
Can you attach a file that causes alac to crash?
Comment 2 fred goodman 2006-09-23 11:06:12 UTC
Apparently,   I cannot attach a file.   This bugzilla interface hangs when I try to create and submit an attachment.
Perhaps I should try a web browser other than safari?

Fred Goodman
Comment 3 Andy Grundman 2006-09-23 11:08:59 UTC
Probably just because it's taking a long time to upload a large file.  Try waiting longer?
Comment 4 fred goodman 2006-09-23 12:03:34 UTC
Created attachment 1579 [details]
offending apple lossless file
Comment 5 Andy Grundman 2006-09-23 12:16:23 UTC
Here's the error I get at the command line:

$ alac -f test.wav CrashALAC.m4a 
(moov) unknown chunk id: iods
Bus error
Comment 6 fred goodman 2006-09-26 11:50:24 UTC
Here is a hint, and sort of a resolution.   

Most of my music library was produced with Max, http://sbooth.org/Max/,
a ripper/encoder.  Alac crashes on at least some of the max-produced apple lossless files.  But I let itunes
recode one such file into apple lossless and ran alac again on the recoded file,  with success.

Comment 7 Chris Owens 2006-09-26 14:44:22 UTC
Well it's good to have the source of the troublesome files and a workaround.
Comment 8 fred goodman 2006-09-28 08:51:00 UTC
I found some probably relevant information in a forum about Max.

http://sbooth.org/forums/viewtopic.php?t=217

It has to do with the way track information is packaged in the m4a wrapper.

Comment 9 Chris Owens 2006-09-28 14:57:42 UTC
I've sent email to the maintainer of the alac code we use and will follow up with him about the problematic files.
Comment 10 Chris Owens 2006-09-29 09:26:16 UTC
Reduced the severity since there is a (cumbersome) workaround.
Comment 11 Chris Owens 2006-10-04 10:50:11 UTC
Dan, David Hammerton sent me the following message.  I don't know if we want to try to put this in 6.5.1 in case there are new bugs in alac from this change that might affect more of our users.  Users affected by this particular bug could always upgrade their alac.exe separately.

[...some text deleted...]

I've put up a new version of ALAC which fixes this problem. You can get it from http://craz.net/programs/itunes/alac.html

Basically, the file contains two mdat atoms - an empty one and a real one. ALAC was trying to read stuff from the empty one. THe fix isn't ideal, it just skips empty mdat atoms, but it seems to fix the problem.

Let me know if you have any more problems with it,

Regards,

David
Comment 12 fred goodman 2006-10-04 15:04:55 UTC
This fixes my problem.  Thanks.  I've tried the new alac with both iTunes created apple lossless and with
Max created apple lossless.     Both work.

Comment 13 Spies Steven 2007-01-18 12:01:06 UTC
*** Bug 4657 has been marked as a duplicate of this bug. ***
Comment 14 Andy Grundman 2007-01-18 12:41:38 UTC
I've updated alac to 0.1.3 in trunk in change 11240.  Marking fixed.
Comment 15 Spies Steven 2007-01-19 09:50:40 UTC
*** Bug 4683 has been marked as a duplicate of this bug. ***
Comment 16 Chris Owens 2008-03-07 09:03:50 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.