jasonmc / forked-daapd

A re-write of the firefly media server (mt-daapd). It's released under GPLv2+. Please note that this git repository is a mirror of the official one at git://git.debian.org/~jblache/forked-daapd.git
http://blog.technologeek.org/2009/06/12/217
GNU General Public License v2.0
328 stars 45 forks source link

Segfault error 4 in forked-daapd, forked-daapd crashing. #71

Closed acke closed 12 years ago

acke commented 12 years ago

Im running Ubuntu 11.04

forked-daapd --version Forked Media Server: Version 0.18 Copyright (C) 2009-2011 Julien BLACHE jb@jblache.org Based on mt-daapd, Copyright (C) 2003-2007 Ron Pedde ron@pedde.com Released under the GNU General Public License version 2 or later

ffmpeg --version FFmpeg version 0.6.2-4:0.6.2-1ubuntu1.1, Copyright (c) 2000-2010 the Libav developers built on Sep 16 2011 17:00:39 with gcc 4.5.2

I have two outputdevices: Local and Airport Express.

I get these message in dmesg:

forked-daapd[8800]: segfault at b1e ip 0000000000430ee7 sp 00007f47ffffece0 error 4 in forked-daapd[400000+69000]

forked-daapd[10796]: segfault at b1e ip 0000000000430ee7 sp 00007f0677e13ce0 error 4 in forked-daapd[400000+69000]

In Forked-daapd i get (maybe they are completely unrelated):

[2011-10-08 11:40:58] ffmpeg: Header missing [2011-10-08 11:40:58] scan: Badly formatted .url file; expected format is bitrate,descr,url [2011-10-08 11:40:58] scan: Badly formatted .url file; expected format is bitrate,descr,url [2011-10-08 11:40:58] scan: Badly formatted .url file; expected format is bitrate,descr,url [2011-10-08 11:40:58] ffmpeg: Header missing [2011-10-08 11:40:58] ffmpeg: Header missing [2011-10-08 11:45:42] raop: Failed to retrieve artwork for 'Det B?sta Vaccinet' (5821); no artwork will be sent [2011-10-08 11:50:05] raop: Failed to retrieve artwork for 'Gitarren I Kn?t' (5820); no artwork will be sent

Forked-daapd is crash after playing a few minutes.

Anyone got any ideas about this error 4 thing?

elwertk commented 12 years ago

Seen segfault errors like this occasionaly in the past and they've been almost entirely related to ffmpeg. FFmpeg and friends known to be picky on some files and buggy with others. You may want to check #ffmpeg -i on the file that caused the crash.

If that doesn't reveal anything interessting I'd suggest you update to a more recent version of libav/ffmpeg (>= 0,7) and also the most recent version of forked daapd 0.19 - which brings some updates for libav support.

acke commented 12 years ago

I think this was a result of having files with unsupported character sets in the media library. I have not seen these issues after renaming the problematic files.

Thanks for your help with solving the issue!