Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jun 2004 04:38:56 GMT
From:      Rich Murphey <rich@murphey.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/68031: mpg123 inifinite loop on reading end-of-file, consumes 100% cpu
Message-ID:  <200406170438.i5H4cugY054487@www.freebsd.org>
Resent-Message-ID: <200406170440.i5H4eMQv049120@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         68031
>Category:       ports
>Synopsis:       mpg123 inifinite loop on reading end-of-file, consumes 100% cpu
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 17 04:40:21 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Rich Murphey
>Release:        5.2.1
>Organization:
Rich
>Environment:
FreeBSD xa.houston.rr.com 5.2.1-RC FreeBSD 5.2.1-RC #0: Mon Jun 14 18:18:35 CDT 2004     root@xa.houston.rr.com:/usr/a/altq-freebsd-5.2-release-beta2/sys/i386/compile/TEST  i386

>Description:
mpg123 is going into an infinite loop in
play_frame() when it sees an end of file
while trying to read a command.  The patch
breaks that loop upon an end of file.

>How-To-Repeat:
Run asterisk-current from asterisk.org.  It spawns mpg123 for music on hold.  Mpg123 goes into an infinite loop on startup.
>Fix:
This patch breaks the infinite loop upon an end of file.


http://www.whiteoaklabs.com/code/patch-mpg123.c
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406170438.i5H4cugY054487>