Bug#862753: Fwd: mpg123 crashes in Remote mode if FORMAT command issued when file loaded but not started playback

Al Schmidt alfred.g.schmidt at gmail.com
Tue May 16 16:42:57 UTC 2017


Package: mpg123
Version: 1.20.1-2+deb8u1

$ uname -a
Linux BBB 4.4.30-ti-r64 #1 SMP Fri Nov 4 21:23:33 UTC 2016 armv7l GNU/Linux

$ dpkg -s libc6 | grep ^Version
Version: 2.19-18+deb8u6

Description: the file sample rate is retrieved using the "FORMAT" command.
This is needed to calculate total and current time (in conjunction with the
sample count/total retrieved with "SAMPLE" command). If "FORMAT" command is
issued when a (valid) file has been loaded but playback not started (using
the "LOADPAUSED/LP" command) the sample rate (and channel count) are
properly reported. However, when playback of the file is started, mpg123
crashes (see log below). I have duplicated this on a USB sound "card" as
well as default hardware. It does not appear to be an alsa/audio issue
because the FORMAT command does return the correct value, and the file can
be played back correctly on the same system. I have also tried FORMAT then
"SEEK 0", "FORMAT" then "STOP" then "LOADPAUSED" and "PAUSE" but the crash
still happens. I've found no sequence of subsequent actions following a
"FORMAT" of an unplayed file that does not result in a crash upon playback.
Log: (inline descriptive comments added to actual log output is designated
by //)
Note: skipping the "FORMAT" command in the log below will prevent the crash.

$ mpg123 -R -a default:Device    // start mpg123 in "Remote command mode"
with standard McASP audio device
@R MPG123 (ThOr) v8               // response: normal startup message
LOADPAUSED ./my_file.mp3      // command: "LOADPAUSED/LP" - load file
("my_file.mp3") but do not begin playback
@I ID3v2.title:my_track               // response: ID3 information...
@I ID3v2.artist:my_artist
@I ID3v2.album:my_album
@I ID3v2.year:2017
@I ID3v2.comment:12++
@I ID3v2.genre:Country & Folk
@P 1                                           // response: file loaded &
paused, ready to begin file playback
FORMAT                                     // command: "FORMAT" - get audio
sample rate and channel count
@FORMAT 44100 2                   // response: 44100 Hz, 2-channel
PAUSE                                        // command: "PAUSE" -
pause/un-pause
@P 2                                           // response: OK, playing
file, but then...

[alsa.c:230] error: Fatal problem with alsa output, error -5.

[audio.c:614] error: Error in writing audio (Success?)!

[mpg123.c:681] error: Deep trouble! Cannot flush to my output anymore!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20170516/2b4c78e8/attachment.html>


More information about the pkg-multimedia-maintainers mailing list