From patchwork Sat Mar 8 03:04:57 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Huelswitt X-Patchwork-Id: 12626 Received: from mail.gmx.net ([213.165.64.20]) by www.linuxtv.org with smtp (Exim 4.63) (envelope-from ) id 1JXpPG-0007IJ-5R for vdr@linuxtv.org; Sat, 08 Mar 2008 04:07:37 +0100 Received: (qmail invoked by alias); 08 Mar 2008 03:06:56 -0000 Received: from ip-62-143-236-114.PH-1411C-BSR64K-01.ish.de (EHLO video.local.muempf.de) [62.143.236.114] by mail.gmx.net (mp002) with SMTP; 08 Mar 2008 04:06:56 +0100 X-Authenticated: #10968362 X-Provags-ID: V01U2FsdGVkX18gQGli7+QgCAX/0ymr0xkpD4KTwKv/x9GmVAUJcF HOEAZLmlmeZpSz Received: from video.local.muempf.de (localhost [127.0.0.1]) by video.local.muempf.de (8.12.6/8.12.6/SuSE Linux 0.6) with ESMTP id m2834vjn011732 for ; Sat, 8 Mar 2008 04:04:57 +0100 Received: (from news@localhost) by video.local.muempf.de (8.12.6/8.12.6/Submit) id m2834v0f011731 for vdr@linuxtv.org; Sat, 8 Mar 2008 04:04:57 +0100 To: vdr@linuxtv.org Path: not-for-mail From: s.huelswitt@gmx.de (Stefan Huelswitt) Newsgroups: local.linux.vdr Date: Sat, 8 Mar 2008 03:04:57 +0000 (UTC) Organization: Home, sweet home Lines: 39 Sender: nathan@gmx.de Message-ID: References: <20080229105631.GA2848@halim.local> <20080302084024.GA8092@halim.local> NNTP-Posting-Host: video.local.muempf.de Mime-Version: 1.0 X-Trace: video.local.muempf.de 1204945497 10063 192.168.1.2 (8 Mar 2008 03:04:57 GMT) X-Complaints-To: s.huelswitt@gmx.de NNTP-Posting-Date: Sat, 8 Mar 2008 03:04:57 +0000 (UTC) X-Newsreader: knews 1.0b.1 X-Y-GMX-Trusted: 0 X-LSpam-Score: 0.0 (/) Subject: Re: [vdr] floatingpoint exception in mp3 plugin X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Mar 2008 03:07:37 -0000 Status: O X-Status: X-Keywords: X-UID: 16055 On 02 Mar 2008 Halim Sahin wrote: Hi, > Program terminated with signal 8, Arithmetic exception. > #0 0xb7e6b8ce in __udivdi3 () from /lib/libgcc_s.so.1 > (gdb) bt > #0 0xb7e6b8ce in __udivdi3 () from /lib/libgcc_s.so.1 > #1 0xb71d5099 in cSndInfo::DoScan (this=0x88290fc, KeepOpen=true) > at decoder-snd.c:848 Appearently a division by zero. This patch should fix it temporarily: But I would like to find the cause of the problem. The problem seems to be that libsndfile returns a length of 0 frames. Could you please identify which file actualy causes the crash? I don't think that it's related to the non-audio files. Most probably one of the wav files. Regards. diff -r 710f847b02af decoder-snd.c --- a/decoder-snd.c Thu Jan 31 22:31:09 2008 +0100 +++ b/decoder-snd.c Sat Mar 08 03:59:57 2008 +0100 @@ -845,7 +845,7 @@ bool cSndInfo::DoScan(bool KeepOpen) Channels=file->sfi.channels; ChMode=Channels>1 ? 3:0; Total=Frames/SampleFreq; - Bitrate=file->Filesize*8/Total; //XXX SampleFreq*Channels*file->sfi.pcmbitwidth; + Bitrate=Total ? file->Filesize*8/Total : 0; //XXX SampleFreq*Channels*file->sfi.pcmbitwidth; DecoderID=DEC_SND; InfoDone();