Bug 96145

Summary: /audio/mpg123 core dumps if an empty file is played
Product: Ports & Packages Reporter: Harald Muehlboeck <home>
Component: Individual Port(s)Assignee: Roman Bogorodskiy <novel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Harald Muehlboeck 2006-04-21 16:50:14 UTC
mpg123 installed from Ports crashes when trying to decode an empty file or playlist.

harald@bluedaemon:[~]% touch crash.mp3 && mpg123 -b 1024 crash.mp3
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59r (1999/Jun/15). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!

Playing MPEG stream from crash.mp3 ...

[0:00] Decoding of crash.mp3 finished.
zsh: segmentation fault (core dumped)  mpg123 -b 1024 crash.mp3

Fix: 

This seems to be fixed in the version of mpg123-gpl maintained by
<http://sourceforge.net/projects/mpg123>
so the port should be updatet to mpg123-gpl.
How-To-Repeat: $ touch crash.mp3 && mpg123 -b 1024 crash.mp3
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-04-21 16:52:11 UTC
Responsible Changed
From-To: freebsd-ports-bugs->novel

Over to maintainer
Comment 2 Roman Bogorodskiy freebsd_committer freebsd_triage 2006-04-21 21:21:47 UTC
Hi,

	I can reproduce this bug and I have a fix for it. Put the attached file
in mpg123 port's files/ dir and rebuild it.
	As for mpg123-gpl, I'll take a look soon.  

Thanks,

Roman Bogorodskiy
Comment 3 Roman Bogorodskiy freebsd_committer freebsd_triage 2006-04-27 09:38:56 UTC
State Changed
From-To: open->closed

The problem has been fixed.