Max Kellermann 
							
						 
					 
					
						
						
							
						
						a6bf4746c6 
					 
					
						
						
							
							test/test_byte_reverse: use gcc_alignas() for gcc<4.8 compatibility  
						
						
						
						
					 
					
						2016-04-30 13:41:24 +02:00 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						4c61662644 
					 
					
						
						
							
							test/read_mixer: add missing stdlib.h include  
						
						
						
						
					 
					
						2015-01-26 20:39:49 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						b19e5720cc 
					 
					
						
						
							
							test/run_input: make variables more local  
						
						
						
						
					 
					
						2014-11-25 07:51:33 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						2e47cb12c4 
					 
					
						
						
							
							test/FakeDecoderAPI: dump bit rate  
						
						
						
						
					 
					
						2014-11-10 09:00:38 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						eab32f2e5d 
					 
					
						
						
							
							util/UriUtil: add uri_get_suffix() overload that ignores query string  
						
						
						
						
					 
					
						2014-11-01 12:45:47 +01:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						188b94cb3e 
					 
					
						
						
							
							test/test_archive: don't use GLib  
						
						
						
						
					 
					
						2014-10-25 00:08:04 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						6cf1acfb48 
					 
					
						
						
							
							test/DumpDatabase, ...: no g_thread_init() calls when GLib is disabled  
						
						
						
						
					 
					
						2014-10-24 18:30:30 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						3d2558bde6 
					 
					
						
						
							
							StoragePlugin: pass EventLoop to constructor  
						
						
						
						
					 
					
						2014-10-09 07:45:25 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						1aac0b10c9 
					 
					
						
						
							
							test/run_input, ...: add struct ScopeIOThread  
						
						... 
						
						
						
						Auto-stop the IO thread in all error handlers. 
						
						
					 
					
						2014-10-07 20:02:13 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						b5119d7958 
					 
					
						
						
							
							test/run_storage: new debug program  
						
						
						
						
					 
					
						2014-10-07 06:21:34 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						8547611479 
					 
					
						
						
							
							Merge tag 'v0.18.16'  
						
						
						
						
					 
					
						2014-09-26 11:06:11 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						87268c2297 
					 
					
						
						
							
							test/test_protocol: add missing stdlib.h include  
						
						... 
						
						
						
						EXIT_SUCCESS and EXIT_FAILURE are defined in stdlib.h, not unistd.h.
D'oh! 
						
						
					 
					
						2014-09-24 23:03:28 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						9270485723 
					 
					
						
						
							
							Merge branch 'v0.18.x'  
						
						
						
						
					 
					
						2014-09-24 21:49:20 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						e93975cb46 
					 
					
						
						
							
							test/test_protocol: add missing unistd.h include  
						
						
						
						
					 
					
						2014-09-24 21:43:11 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						a464dc681a 
					 
					
						
						
							
							Merge tag 'v0.18.14'  
						
						
						
						
					 
					
						2014-09-11 19:26:58 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						57068e526c 
					 
					
						
						
							
							test/run_decoder: dump MixRamp data  
						
						
						
						
					 
					
						2014-09-09 19:17:22 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						4907f610d6 
					 
					
						
						
							
							test/test_protocol: unit test for protocol/ArgParser.cxx  
						
						
						
						
					 
					
						2014-09-04 17:10:30 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						e5a28bfd8d 
					 
					
						
						
							
							output/alsa, pcm: rename "DSD over USB" to "DoP"  
						
						... 
						
						
						
						The standard has been renamed since the early draft that was
implemented in MPD. 
						
						
					 
					
						2014-08-31 16:12:26 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						e10c287c93 
					 
					
						
						
							
							PlayerControl: make settings "const"  
						
						
						
						
					 
					
						2014-08-30 00:28:02 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						3158955198 
					 
					
						
						
							
							TagHandler: pass SongTime to duration()  
						
						
						
						
					 
					
						2014-08-29 22:52:04 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						d9d97bd17b 
					 
					
						
						
							
							DecoderAPI: pass SignedSongTime to decoder_initialized()  
						
						
						
						
					 
					
						2014-08-29 21:40:15 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						7c25d83f1c 
					 
					
						
						
							
							Tag: use SignedSongTime for the song duration  
						
						
						
						
					 
					
						2014-08-29 13:20:58 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						6ad933982f 
					 
					
						
						
							
							DetachedSong: use std::chrono::duration for start_ms and end_ms  
						
						
						
						
					 
					
						2014-08-28 13:03:18 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						0c2d767f6f 
					 
					
						
						
							
							DecoderAPI: use std::chrono::duration for decoder_seek*()  
						
						... 
						
						
						
						For type safety and code readability. 
						
						
					 
					
						2014-08-26 22:27:04 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						8561c9c5a6 
					 
					
						
						
							
							DecoderAPI: add decoder_seek_where_frame()  
						
						
						
						
					 
					
						2014-08-26 11:27:41 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						316c72a4ae 
					 
					
						
						
							
							DecoderAPI: add decoder_seek_where_ms()  
						
						... 
						
						
						
						Move to fixed-point integers instead of floating point. 
						
						
					 
					
						2014-08-26 11:02:02 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						bb472206de 
					 
					
						
						
							
							InputStream: move typedef offset_type to Offset.hxx  
						
						... 
						
						
						
						Reduce header dependencies. 
						
						
					 
					
						2014-08-19 22:29:52 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						a049f972ec 
					 
					
						
						
							
							test/test_rewind: add missing stdlib.h include  
						
						... 
						
						
						
						For EXIT_SUCCESS. 
						
						
					 
					
						2014-08-13 12:55:29 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						0e756e4377 
					 
					
						
						
							
							PcmExport: use class ConstBuffer  
						
						
						
						
					 
					
						2014-08-12 22:19:53 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						ee7282ce0d 
					 
					
						
						
							
							test/test_pcm: add PcmExport unit test  
						
						
						
						
					 
					
						2014-08-12 22:05:38 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						7244dc4511 
					 
					
						
						
							
							Filter: FilterPCM() returns ConstBuffer  
						
						... 
						
						
						
						API simplification.  We can now avoid abusing a "size_t*" as
additional return value. 
						
						
					 
					
						2014-08-12 16:40:51 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						56f61a6d59 
					 
					
						
						
							
							PcmConvert: Convert() returns ConstBuffer  
						
						
						
						
					 
					
						2014-08-12 16:36:07 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						a67a881715 
					 
					
						
						
							
							input/GunzipInputStream: new class  
						
						
						
						
					 
					
						2014-08-08 20:11:29 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						aafff8fd5c 
					 
					
						
						
							
							fs/output, fs/TextFile: move to fs/io/  
						
						
						
						
					 
					
						2014-08-07 19:38:25 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						69ae879c58 
					 
					
						
						
							
							input/TextInputStream: return char*  
						
						... 
						
						
						
						Revert to the old API before commit e9e55b08 
						
						
					 
					
						2014-08-07 00:06:02 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						ea26da0be7 
					 
					
						
						
							
							util/FifoBuffer: rename to StaticFifoBuffer  
						
						
						
						
					 
					
						2014-08-06 17:29:05 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						c9a71a7176 
					 
					
						
						
							
							fs/GzipOutputStream: new class wrapping zlib  
						
						
						
						
					 
					
						2014-08-06 16:35:10 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						9fb351a139 
					 
					
						
						
							
							*Save, *State: use the OutputStream API instead of FILE*  
						
						
						
						
					 
					
						2014-07-30 22:17:01 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						41a7203c28 
					 
					
						
						
							
							Tag: add class const_iterator and methods begin(), end()  
						
						... 
						
						
						
						Enables using range-based "for". 
						
						
					 
					
						2014-07-12 17:22:39 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						fa947e02ca 
					 
					
						
						
							
							test/FakeDecoderAPI: dump MixRamp data  
						
						
						
						
					 
					
						2014-07-11 08:54:29 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						0759421d11 
					 
					
						
						
							
							DecoderAPI: add function decoder_read_full()  
						
						... 
						
						
						
						Move code from the "mad" plugin. 
						
						
					 
					
						2014-07-09 19:03:58 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						bf7417981f 
					 
					
						
						
							
							DecoderAPI: add function decoder_skip()  
						
						... 
						
						
						
						Move code from the "mad" plugin. 
						
						
					 
					
						2014-07-09 19:03:31 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						dba41e2e4a 
					 
					
						
						
							
							test: merge duplicate code to FakeDecoderAPI.cxx  
						
						
						
						
					 
					
						2014-07-09 19:01:38 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						07b93dcf80 
					 
					
						
						
							
							InputStream: make Seek() always absolute  
						
						... 
						
						
						
						Remove the "whence" parameter that is not actually necessary, and only
complicates the InputStream implementations. 
						
						
					 
					
						2014-05-22 13:52:00 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						4eeea640f4 
					 
					
						
						
							
							DecoderAPI: add function decoder_open_uri()  
						
						... 
						
						
						
						Move and refactor code from the Wavpack decoder plugin. 
						
						
					 
					
						2014-05-22 12:35:20 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						cc6f1020d0 
					 
					
						
						
							
							test/run_decoder: merge code into FakeDecoderAPI.cxx  
						
						... 
						
						
						
						Eliminate duplicate code. 
						
						
					 
					
						2014-05-22 12:35:20 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						316ddc2382 
					 
					
						
						
							
							test/run_decoder: auto-initialize struct Decoder  
						
						
						
						
					 
					
						2014-05-22 12:35:20 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						426e0105a6 
					 
					
						
						
							
							test/run_decoder: move the "uri" attribute out of struct Decoder  
						
						
						
						
					 
					
						2014-05-22 11:17:11 +02:00 
						 
				 
			
				
					
						
							
							
								Max Kellermann 
							
						 
					 
					
						
						
							
						
						18f39aa012 
					 
					
						
						
							
							test/run_decoder: move the DecoderPlugin pointer out of struct Decoder  
						
						
						
						
					 
					
						2014-05-22 11:14:01 +02:00