[Stk] Seg fault in "duplex"

Gary Worsham gary.worsham at gmail.com
Mon Sep 5 09:05:04 PDT 2016


I'm running stk under 64-bit Ubuntu 14.04 on an AMD CPU.  Audio interface
is Focusrite Scarlett 2i2.

I've started making some mods to the duplex.cpp to try to work my way up to
clean audio.  My previous post/thread notes several variations of behavior
when I use duplex and audioprobe.

This seg fault happens on the first call to inout in duplex.cpp:

Running ... press <enter> to quit (buffer frames = 512).
[Switching to Thread 0x7fffeffc5700 (LWP 31167)]

Breakpoint 1, inout (outputBuffer=0x63cee0, inputBuffer=0x63eef0,
nBufferFrames=512, streamTime=0, status=0,
    data=0x7fffffffdda0) at duplex.cpp:53
53    {
(gdb) n
56      if ( status ) std::cout << "Stream over/underflow detected." <<
std::endl;
(gdb) n
59      memcpy( outputBuffer, inputBuffer, *bytes );
(gdb) n

Program received signal SIGSEGV, Segmentation fault.
__memcpy_sse2_unaligned () at
../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S:36
36    ../sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: No such file or
directory.
====================

I'm looking into things like explicit alignment for the buffer.  Any clues
as to what is going on here welcomed!

Thx,

GSW
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/stk/attachments/20160905/cdd12c34/attachment.html>


More information about the Stk mailing list