MALOS and ALSA/microphone not working with Pocketsphinx

Hi all,

New here and just started trying to get my Matrix Creator to work. I’m able to use the HAL and created my own LED C++ program which is cool. I was trying to get Pocketsphinx to work but have been having a bit of trouble. I’ve had my Raspberry Pi 2 for a while and just updated it to Jessie for things to work. After much debug, I have determined that MALOS is not starting up as a service and I have the following logs:

Here is the service info:

$:~/projects/matrix-creator-malos$ sudo service matrix-creator-malos status
● matrix-creator-malos.service - Matrix Abstraction Layer for OS
Loaded: loaded (/lib/systemd/system/matrix-creator-malos.service; enabled)
Active: failed (Result: signal) since Tue 2017-07-04 04:55:45 UTC; 5min ago
Process: 533 ExecStart=/usr/bin/malos (code=killed, signal=ABRT)
Main PID: 533 (code=killed, signal=ABRT)

Jul 04 04:55:42 memory systemd[1]: Started Matrix Abstraction Layer for OS.
Jul 04 04:55:44 memory malos[533]: **************
Jul 04 04:55:44 memory malos[533]: MALOS starting
Jul 04 04:55:44 memory malos[533]: **************
Jul 04 04:55:45 memory malos[533]: You can query specific driver info using port 20012.
Jul 04 04:55:45 memory malos[533]: pure virtual method called
Jul 04 04:55:45 memory malos[533]: terminate called without an active exception
Jul 04 04:55:45 memory systemd[1]: matrix-creator-malos.service: main process exited, code=killed, status=6/ABRT
Jul 04 04:55:45 memory systemd[1]: Unit matrix-creator-malos.service entered failed state.

Here is the gdb:

$:~/projects/matrix-creator-pocketsphinx/build/demos$ gdb malos core
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright © 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and “show warranty” for details.
This GDB was configured as “arm-linux-gnueabihf”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from malos…(no debugging symbols found)…done.
[New LWP 9976]
[New LWP 9967]
[New LWP 9973]
[New LWP 9968]
[New LWP 9974]
[New LWP 9969]
[New LWP 9970]
[New LWP 9971]
[New LWP 9972]
[New LWP 9975]
[Thread debugging using libthread_db enabled]
Using host libthread_db library “/lib/arm-linux-gnueabihf/”.
Core was generated by `malos’.
Program terminated with signal SIGABRT, Aborted.
#0 __libc_do_syscall () at …/ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
44 …/ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S: No such file or directory.
(gdb) bt
#0 __libc_do_syscall () at …/ports/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S:44
#1 0x7684dee6 in __GI_raise (sig=sig@entry=6) at …/nptl/sysdeps/unix/sysv/linux/raise.c:56
#2 0x7684ebee in __GI_abort () at abort.c:89
#3 0x769ffcb8 in __gnu_cxx::__verbose_terminate_handler() () from /usr/lib/arm-linux-gnueabihf/
#4 0x769fe6e4 in ?? () from /usr/lib/arm-linux-gnueabihf/
Backtrace stopped: previous frame identical to this frame (corrupt stack?)
(gdb) quit

Any help would be much appreciated. I struggled at first with installing stuff using apt-get because I was on Wheezy but now that I’m up to Jessie, I think I should be ok but not 100% sure. I have done ‘sudo apt-get update’ and ‘sudo apt-get upgrade’ many times with reboots and they are both up-to-date now.

One thing of note though is that when I use the HAL demo mic_energy, that seems to work perfectly. It picks up my voice and lights up the LEDs.

Some additional information:

$:~/projects/matrix-creator-malos/src/js_test$ apt-cache show matrix-creator-malos
Package: matrix-creator-malos
Version: 0.2.0
Architecture: armhf
Maintainer: Admobilize
Installed-Size: 464
Depends: libc6 (>= 2.4), libfftw3-single3, libgcc1 (>= 1:4.4.0), libprotobuf12, libstdc++6 (>= 4.9), libzmq3 (>= 3.2.3+dfsg), libmatrix-malos-dev, libmatrix-creator-hal-dev
Filename: ./matrix-creator-malos_0.2.0_armhf.deb
Size: 96120
MD5sum: 2766b518065924e6bdb320091cd770e4
SHA1: 5ab30a82834d0e4f83f2b3a350a5063ff46cff49
SHA256: 4b443afb50b2937b1e60840eead0ae9b72943ac61aa5ae5543370b234b1d5fe8
Section: embedded
Priority: optional
Description: Allows queries to MATRIX Creator hardware via ZMQ.
Matrix Creator ( is a board that can be added
to a Raspberry Pi v2 or v3. This board has many sensors. This program
allows other programs to access the board hardware via ZMQ sockets.
Description-md5: 81858a60ae50a580b33529d209b664b1

Wow, no response at all?