John Goerzen <jgoer...@complete.org> wrote:

Hi John,

> Jun 21 19:55:12 erwin kernel: [481843.231845] mt-daapd[3905]: segfault at 
> 8c786b4 ip b7a220d2 sp 
> b5527420 error 4 in libavcodec.so.51.58.0[b7870000+3c4000]
>
> The file in question is a flac file, which mt-daapd must transcode.  It does 
> so just fine with 
> many, many other flac files.

I think I've nailed it down.

% ls -l 01-Aria-Andreas\ Almqvist.flac
-rw-rw-r-- 1 julien julien 8782782 Jun 22 17:43 ../01-Aria-Andreas Almqvist.flac

Looking at the file, there's a lot of metadata in there, including
album art and an Apple XML plist among others. It looks like that
takes some room, let's see.

% metaflac --remove-all --dont-use-padding 01-Aria-Andreas\ Almqvist.flac
( /!\ this removes all metadata so don't do that on the original file /!\)

% ls -l 01-Aria-Andreas\ Almqvist.flac
-rw-rw-r-- 1 julien julien 8705051 Jun 22 18:07 01-Aria-Andreas Almqvist.flac

So the file is 77731 bytes smaller with all metadata stripped, which
is 75.909 kB.

And indeed:

% metaflac --list 01-Aria-Andreas\ Almqvist.flac | grep "  length:"
  length: 34
  length: 234
  length: 908
  length: 71445 <=== jpeg album art
  length: 5128

Now, there was a bug in ffmpeg with FLAC files with more than 64 kB of
metadata (ffmpeg issue 187), and it's quite possible our version of
ffmpeg in stable is affected by that (I note that your version of
libavcodec & friends is different from the one I have on my Lenny
machine, by the way).

If you have other files from the same origin, you might want to check
the metaflac output to see if any of the files are similar in this
aspect; I expect all files should be below 64k.

Anyway, that's an ffmpeg bug, and if it's the 64k bug, I think it
can be fixed with the upstream patch pretty easily.

JB.

-- 
 Julien BLACHE - Debian & GNU/Linux Developer - <jbla...@debian.org> 
 
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to