On Sat, May 13, 2017 at 10:07:22AM +0100, Graham Stephens wrote: > Hi all, > > I initially posted this on the sparc list, but have been asked to post here. > > When running "wavpack -m blah.wav" (for md5 calculation), I get a core > dump with a message of 'Bus Error'. > > It works ok for other switches I have tried. > > This is on OBSD v6.1 with wavpack v5.1.0, on a blade 100. > > > Christian Weisgerber added the following comment: > > "That is most likely an unaligned access error. > > The usual approach is to build a package with debugging symbols > (CFLAGS="-g" INSTALL_STRIP="") and examine the core file with gdb. > > Alas, I don't have any strict alignment machines at hand any longer. > I tried to reproduce it on aarch64, but that architecture (or at > least the CPU I have) doesn't seem to actually enforce alignment > despite the #define __STRICT_ALIGNMENT in <machine/endian.h>." > > > Sadly I wouldn't have a clue where to start with this; the last dump I > looked at was a mainframe one about 1000 years ago. ;)
Download the ports tree for OpenBSD 6.1: $ cd /usr $ cvs -qd anon...@anoncvs.ca.openbsd.org:/cvs get -rOPENBSD_6_1 -P ports Build the port with debug symbols: $ cd /usr/ports/audio/wavpack $ make clean=all $ make CFLAGS="-g" INSTALL_STRIP="" package $ make reinstall Try to get a coredump: $ wavpack -m blah.wav If the program crashes with 'Bus Error': $ gdb wavpack wavpack.core In the gdb prompt, run: > bt > quit Copy/paste the output. Don't remove the .core file, maybe the maintainer will need more info. -- Juan Francisco Cantero Hurtado http://juanfra.info