From nobody@FreeBSD.org  Thu Jun 17 04:39:30 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 399DB16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Jun 2004 04:39:30 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3379743D45
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Jun 2004 04:39:30 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i5H4cuqL054488
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Jun 2004 04:38:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i5H4cugY054487;
	Thu, 17 Jun 2004 04:38:56 GMT
	(envelope-from nobody)
Message-Id: <200406170438.i5H4cugY054487@www.freebsd.org>
Date: Thu, 17 Jun 2004 04:38:56 GMT
From: Rich Murphey <rich@murphey.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mpg123 inifinite loop on reading end-of-file, consumes 100% cpu
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 17 04:40:21 GMT 2004
>Closed-Date:    Sat Jul 17 13:48:40 GMT 2004
>Last-Modified:  Sat Jul 17 13:48:40 GMT 2004
>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:
State-Changed-From-To: open->feedback 
State-Changed-By: vs 
State-Changed-When: Thu Jun 17 11:35:18 GMT 2004 
State-Changed-Why:  
Asked for review by upstream. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68031 

From: "Volker Stolz" <vs@freebsd.org>
To: freebsd-gnats-submit@freebsd.org, rich@murphey.org
Cc:  
Subject: Re: ports/68031: mpg123 inifinite loop on reading end-of-file, consumes 100% cpu
Date: Thu, 17 Jun 2004 13:34:59 +0200

 Could you please submit this patch to the original author and get their  
 feedback?
 
 Volker
State-Changed-From-To: feedback->closed 
State-Changed-By: krion 
State-Changed-When: Sat Jul 17 13:48:34 GMT 2004 
State-Changed-Why:  
Feedback timeout. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=68031 
>Unformatted:
