Skip to content

Instantly share code, notes, and snippets.

View cnvandev's full-sized avatar

Chris Vandevelde cnvandev

View GitHub Profile
==14275== Memcheck, a memory error detector
==14275== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==14275== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==14275== Command: muse medium_beatbox.wav training_data noise_profile.wav output.mid
==14275==
==14275== WARNING: Support on MacOS 10.8/10.9 is experimental and mostly broken.
==14275== WARNING: Expect incorrect results, assertions and crashes.
==14275== WARNING: In particular, Memcheck on 32-bit programs will fail to
==14275== WARNING: detect any errors associated with heap-allocated data.
==14275==
(lldb) bt
* thread #1: tid = 0x214f77, 0x00000001000438aa muse-debug`cftmdl + 906, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1007f0000)
* frame #0: 0x00000001000438aa muse-debug`cftmdl + 906
frame #1: 0x0000000100040810 muse-debug`cftbsub + 96
frame #2: 0x000000010003f184 muse-debug`cdft + 180
frame #3: 0x0000000100048b9d muse-debug`Aquila::OouraFft::fft(double const*) + 237
frame #4: 0x000000010004c32f muse-debug`Aquila::Mfcc::calculate(Aquila::SignalSource const&, unsigned long) + 127
frame #5: 0x00000001000206af muse-debug`measureVector(the_vector=0x00007fff5fbfd8c8, audio=0x00007fff5fbfe478, start_index=84823, end_index=101424) + 4175 at measureVector.cpp:59
frame #6: 0x0000000100018652 muse-debug`extractVectors(vectors=0x00007fff5fbfe4e0, audio=vector<double, std::__1::allocator<double> > at 0x00007fff5fbfe478, sample_rate=44100, bg_audio=vector<double, std::__1::allocator<double> > at 0x00007fff5fbfe460, bg_sample_rate=44100, notes=0x00007
(lldb) bt
* thread #1: tid = 0x1d4047, 0x00007fff8f487bc0 libsystem_malloc.dylib`malloc_error_break, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
* frame #0: 0x00007fff8f487bc0 libsystem_malloc.dylib`malloc_error_break
frame #1: 0x00007fff8f4815c7 libsystem_malloc.dylib`szone_error + 386
frame #2: 0x00007fff8f482d95 libsystem_malloc.dylib`small_free_list_remove_ptr + 158
frame #3: 0x00007fff8f47f443 libsystem_malloc.dylib`szone_free_definite_size + 2673
frame #4: 0x0000000100002d15 muse-debug`std::__1::__vector_base<double, std::__1::allocator<double> >::~__vector_base() [inlined] std::__1::__deallocate(__ptr=0x00000001039b1200) + 421 at new:164
frame #5: 0x0000000100002d0c muse-debug`std::__1::__vector_base<double, std::__1::allocator<double> >::~__vector_base() [inlined] std::__1::allocator<double>::deallocate(this=0x00000001026006f8, __p=0x00000001039b1200, (null)=6899) + 8 at memory:1636
frame #6: 0x0000000100002d04 muse-debug`std::__1::__vector_base<double, std:
(lldb) bt
* thread #1: tid = 0x1df310, 0x00007fff8f487bc0 libsystem_malloc.dylib`malloc_error_break, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
* frame #0: 0x00007fff8f487bc0 libsystem_malloc.dylib`malloc_error_break
frame #1: 0x00007fff8f4815c7 libsystem_malloc.dylib`szone_error + 386
frame #2: 0x00007fff8f482d95 libsystem_malloc.dylib`small_free_list_remove_ptr + 158
frame #3: 0x00007fff8f47f737 libsystem_malloc.dylib`szone_free_definite_size + 3429
frame #4: 0x0000000100002d05 muse-debug`std::__1::__vector_base<double, std::__1::allocator<double> >::~__vector_base() [inlined] std::__1::__deallocate(__ptr=0x0000000100819400) + 421 at new:164
frame #5: 0x0000000100002cfc muse-debug`std::__1::__vector_base<double, std::__1::allocator<double> >::~__vector_base() [inlined] std::__1::allocator<double>::deallocate(this=0x00007fff5fbfe020, __p=0x0000000100819400, (null)=6899) + 8 at memory:1636
frame #6: 0x0000000100002cf4 muse-debug`std::__1::__vector_base<double, std: