music player daemon (fork)
Go to file
Michael Cree 72637d00e8 Bug#822848: mpd FTBFS on Alpha; misaligned arrays in the test suite
Source: mpd
Version: 0.19.14-2
Severity: important
Justification: fails to build form source (but built in the past)
Tags: patch
User: debian-alpha@lists.debian.org
Usertags: alpha

mpd FTBFS on Alpha with a failure in the test suite [1]:

FAIL: test/test_byte_reverse
============================

.F...

!!!FAILURES!!!
Test Results:
Run:  4   Failures: 1   Errors: 0

1) test: ByteReverseTest::TestByteReverse2 (F) line: 58 test/test_byte_reverse.cxx
assertion failed
- Expression: strcmp(result, (const char *)dest) == 0

This occurs because the test suite (in test/test_byte_reversal.cxx)
allocates static char arrays and passes the char arrays to functions
whose respective arguments were declared to be uint16_t *, etc., in
the main code.

This is in the realm of undefined behaviour on architectures with
strict memory alignment requirements.  Although the test only fails
on Alpha (because Alpha has a particular CPU load instruction that
gcc likes to use to add bugs ..., ahem,  optimise the code on the
assumption of alignment) it is potentially a latent bug for other
architectures with strict alignment requirements.

Since the code is compiled with the c++11 standard I attach a patch
that modifies the test suite to align the non-compliant strings with
the alignas() attribute.  The test suite now passes on Alpha with
that patch.

Cheers
Michael

[1] https://buildd.debian.org/status/fetch.php?pkg=mpd&arch=alpha&ver=0.19.14-2&stamp=1461542099
2016-04-28 13:29:41 +02:00
android android/build.py: use os.path.abspath() to build mpd_path 2015-01-22 18:51:53 +01:00
doc doc/mpd.conf.5: move metadata_to_use to the user manual 2016-04-22 10:48:12 +02:00
m4 decoder/faad: remove workaround for ancient libfaad2 ABI bug 2014-10-25 20:42:50 +02:00
scripts scripts: delete obsolete scripts 2013-04-17 00:37:30 +02:00
src DecoderBuffer: add missing include 2016-04-25 08:30:27 +02:00
systemd fix LimitRTTIME in systemd unit file 2015-12-15 21:17:04 +01:00
test Bug#822848: mpd FTBFS on Alpha; misaligned arrays in the test suite 2016-04-28 13:29:41 +02:00
.gitignore .gitignore: ignore /lib/ 2014-11-28 21:08:18 +01:00
AUTHORS copyright year 2014 2014-01-13 22:31:55 +01:00
autogen.sh autogen.sh: re-add $ACLOCAL_FLAGS, $AUTOMAKE_FLAGS 2014-01-27 10:35:37 +01:00
configure.ac configure.ac: prepare for 0.19.15 2016-03-30 00:30:39 +02:00
COPYING Update the text of the GPLv2, this fixes the address and a few other oddities. 2008-12-20 19:02:09 -08:00
INSTALL Merge branch 'v0.18.x' into v0.19.x 2015-01-26 20:48:19 +01:00
Makefile.am doc/{user,protocol}: add a list of supported tags 2016-04-22 10:48:12 +02:00
mpd.svg import MPD SVG icon 2014-07-14 19:04:46 +02:00
NEWS Bug#822848: mpd FTBFS on Alpha; misaligned arrays in the test suite 2016-04-28 13:29:41 +02:00
README Word wrap to 80 char lines 2008-12-20 19:27:02 -08:00
valgrind.suppressions zeroconf/Avahi: call dbus_shutdown() during shutdown 2014-06-10 23:21:09 +02:00

		       Music Player Daemon (MPD)
			http://www.musicpd.org

A daemon for playing music of various formats.  Music is played through the 
server's audio device.  The daemon stores info about all available music, 
and this info can be easily searched and retrieved.  Player control, info
retrieval, and playlist management can all be managed remotely.

For basic installation information see the INSTALL file.

MPD is released under the GNU General Public License version 2, which is
distributed in the COPYING file.

You should have received a copy of the GNU General Public License along with
this program.  If not, see <http://www.gnu.org/licenses/>.