Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Memory problem for x64

Date2016-04-02 08:19
FromMichael Gogins
Subject[Csnd-dev] Memory problem for x64
I just ran the x64 version of drmemory on csoundvstmain.exe and it
produced the trace, below, as the program crashed.

Error #3 towards the end is the critical error. The same error occurs
in gdb. I think the first two errors can be ignored.

I don't fully understand this trace. Any ideas?

Regards,
Mike


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

$ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
csound-mingw64/csoundvstmain.exe
~~Dr.M~~ Dr. Memory version 1.10.0
~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
~~Dr.M~~
~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
with operator delete
~~Dr.M~~ # 0 replace_operator_delete_nothrow
[d:\drmemory_package\common\alloc_replace.c:2974]
~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
(0x000000006fce4281 )
~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
(0x000000006fce4046 )
~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
[D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
[D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
~~Dr.M~~ # 5 csound64.dll!csoundInitModule
[D:/msys64/home/restore/csound/Top/csmodule.c:549]
~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
[D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
~~Dr.M~~ # 7 csound64.dll!mcalloc
[D:/msys64/home/restore/csound/Engine/memalloc.c:127]
~~Dr.M~~ # 8 csound64.dll!csoundInitModules
[D:/msys64/home/restore/csound/Top/csmodule.c:597]
~~Dr.M~~ # 9 csound64.dll!csoundReset
[D:/msys64/home/restore/csound/Top/csound.c:3172]
~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
(0x000007fd872826b4 )
~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
(0x000007fd8728cedd )
~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
[D:/msys64/home/restore/csound/include/csound.hpp:839]
~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
[D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
~~Dr.M~~ #14 main
[D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
~~Dr.M~~ Note: @0:00:05.185 in thread 1572
~~Dr.M~~ Note: memory was allocated here:
~~Dr.M~~ Note: # 0 replace_malloc
       [d:\drmemory_package\common\alloc_replace.c:2576]
~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
       [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
      +0x0      (0x000000006fd050ec )
~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
~~Dr.M~~ Note: # 4
stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
[D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
       [D:/msys64/home/restore/csound/Top/csound.c:2904]
~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
~~Dr.M~~ Note: #11 csound64.dll!csoundReset
       [D:/msys64/home/restore/csound/Top/csound.c:3172]
~~Dr.M~~
~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
with operator delete
~~Dr.M~~ # 0 replace_operator_delete_nothrow
 [d:\drmemory_package\common\alloc_replace.c:2974]
~~Dr.M~~ # 1 libstdc++-6.dll!?
+0x0      (0x000000006fce4281 )
~~Dr.M~~ # 2 libstdc++-6.dll!?
+0x0      (0x000000006fd050ec )
~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
 [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
 [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
~~Dr.M~~ # 5 csound64.dll!csoundInitModule
 [D:/msys64/home/restore/csound/Top/csmodule.c:549]
~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
 [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
~~Dr.M~~ # 7 csound64.dll!mcalloc
 [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
~~Dr.M~~ # 8 csound64.dll!csoundInitModules
 [D:/msys64/home/restore/csound/Top/csmodule.c:597]
~~Dr.M~~ # 9 csound64.dll!csoundReset
 [D:/msys64/home/restore/csound/Top/csound.c:3172]
~~Dr.M~~ #10 msvcrt.dll!memmove_s
+0x38f    (0x000007fd872826b4 )
~~Dr.M~~ #11 msvcrt.dll!atol
+0x2c     (0x000007fd8728cedd )
~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
 [D:/msys64/home/restore/csound/include/csound.hpp:839]
~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
 [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
~~Dr.M~~ #14 main
 [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
~~Dr.M~~ Note: @0:00:05.185 in thread 1572
~~Dr.M~~ Note: memory was allocated here:
~~Dr.M~~ Note: # 0 replace_malloc
       [d:\drmemory_package\common\alloc_replace.c:2576]
~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
      +0x0      (0x000000006fce4281 )
~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
      +0x0      (0x000000006fd050ec )
~~Dr.M~~ Note: # 3
stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
[D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
       [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
       [D:/msys64/home/restore/csound/Top/csound.c:3172]
~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
      +0x38f    (0x000007fd872826b4 )
~~Dr.M~~ Note: #11 msvcrt.dll!atol
      +0x2c     (0x000007fd8728cedd )
~~Dr.M~~
~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
0x0000000000000008-0x000000000000000c 4 byte(s)
~~Dr.M~~ # 0 CsoundVST.dll!fl_height
[D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
[D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
[D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
[D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
[D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
[D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
[D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
[D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
~~Dr.M~~ # 8 main
[D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
~~Dr.M~~ Note: @0:00:05.267 in thread 1572
~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
virtual_keyboard real time MIDI plugin for Csound
0dBFS level = 32768.0
Csound version 6.07 (double samples) Apr  2 2016
libsndfile-1.0.26-exp
CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
Csound tidy up: Segmentation violation
~~Dr.M~~
~~Dr.M~~ Error #4: LEAK 8 direct bytes
0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
~~Dr.M~~ # 0 replace_malloc
[d:\drmemory_package\common\alloc_replace.c:2576]
~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
(0x000007fd872aa700 )
~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
(0x000007fd872f4890 )
~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
(0x000007fd872f465e )
~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
[D:/msys64/home/restore/csound/include/csound.hpp:483]
~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
[D:/msys64/home/restore/csound/Top/threads.c:195]
~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
[D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
[D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
~~Dr.M~~ # 8 main
[D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
~~Dr.M~~
~~Dr.M~~ ERRORS FOUND:
~~Dr.M~~       1 unique,     1 total unaddressable access(es)
~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
~~Dr.M~~       0 unique,     0 total GDI usage error(s)
~~Dr.M~~       0 unique,     0 total handle leak(s)
~~Dr.M~~       0 unique,     0 total warning(s)
~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
~~Dr.M~~ ERRORS IGNORED:
~~Dr.M~~      22 potential error(s) (suspected false positives)
~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
~~Dr.M~~       6 potential leak(s) (suspected false positives)
~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
still-reachable allocation(s)
~~Dr.M~~          (re-run with "-show_reachable" for details)
~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.

Date2016-04-02 09:07
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Memory problem for x64
That trace seems to point to the same place that was crashing on OSX, as I mentioned on Thursday here. It was the commit where a call to check the environment variable was added (in stkOpcodes.cpp). I ifdefed it out for OSX.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Apr 2016, at 08:19, Michael Gogins  wrote:
> 
> I just ran the x64 version of drmemory on csoundvstmain.exe and it
> produced the trace, below, as the program crashed.
> 
> Error #3 towards the end is the critical error. The same error occurs
> in gdb. I think the first two errors can be ignored.
> 
> I don't fully understand this trace. Any ideas?
> 
> Regards,
> Mike
> 
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
> csound-mingw64/csoundvstmain.exe
> ~~Dr.M~~ Dr. Memory version 1.10.0
> ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
> ~~Dr.M~~
> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
> with operator delete
> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
> [d:\drmemory_package\common\alloc_replace.c:2974]
> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
> (0x000000006fce4281 )
> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
> (0x000000006fce4046 )
> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ # 7 csound64.dll!mcalloc
> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ # 9 csound64.dll!csoundReset
> [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
> (0x000007fd872826b4 )
> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
> (0x000007fd8728cedd )
> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/include/csound.hpp:839]
> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ #14 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
> ~~Dr.M~~ Note: memory was allocated here:
> ~~Dr.M~~ Note: # 0 replace_malloc
>       [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>      +0x0      (0x000000006fd050ec )
> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
> ~~Dr.M~~ Note: # 4
> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>       [D:/msys64/home/restore/csound/Top/csound.c:2904]
> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>       [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~
> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
> with operator delete
> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
> [d:\drmemory_package\common\alloc_replace.c:2974]
> ~~Dr.M~~ # 1 libstdc++-6.dll!?
> +0x0      (0x000000006fce4281 )
> ~~Dr.M~~ # 2 libstdc++-6.dll!?
> +0x0      (0x000000006fd050ec )
> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ # 7 csound64.dll!mcalloc
> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ # 9 csound64.dll!csoundReset
> [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
> +0x38f    (0x000007fd872826b4 )
> ~~Dr.M~~ #11 msvcrt.dll!atol
> +0x2c     (0x000007fd8728cedd )
> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/include/csound.hpp:839]
> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ #14 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
> ~~Dr.M~~ Note: memory was allocated here:
> ~~Dr.M~~ Note: # 0 replace_malloc
>       [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>      +0x0      (0x000000006fce4281 )
> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>      +0x0      (0x000000006fd050ec )
> ~~Dr.M~~ Note: # 3
> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>       [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>       [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>      +0x38f    (0x000007fd872826b4 )
> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>      +0x2c     (0x000007fd8728cedd )
> ~~Dr.M~~
> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
> 0x0000000000000008-0x000000000000000c 4 byte(s)
> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ # 8 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.07 (double samples) Apr  2 2016
> libsndfile-1.0.26-exp
> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
> Csound tidy up: Segmentation violation
> ~~Dr.M~~
> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
> ~~Dr.M~~ # 0 replace_malloc
> [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
> (0x000007fd872aa700 )
> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
> (0x000007fd872f4890 )
> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
> (0x000007fd872f465e )
> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
> [D:/msys64/home/restore/csound/include/csound.hpp:483]
> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
> [D:/msys64/home/restore/csound/Top/threads.c:195]
> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ # 8 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~
> ~~Dr.M~~ ERRORS FOUND:
> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
> ~~Dr.M~~       0 unique,     0 total handle leak(s)
> ~~Dr.M~~       0 unique,     0 total warning(s)
> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
> ~~Dr.M~~ ERRORS IGNORED:
> ~~Dr.M~~      22 potential error(s) (suspected false positives)
> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
> still-reachable allocation(s)
> ~~Dr.M~~          (re-run with "-show_reachable" for details)
> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.

Date2016-04-02 09:16
FromMichael Gogins
SubjectRe: [Csnd-dev] Memory problem for x64

Without the check the Stk opcodes crash,  with the check they run.

Best,
Mike

On Apr 2, 2016 11:09 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
That trace seems to point to the same place that was crashing on OSX, as I mentioned on Thursday here. It was the commit where a call to check the environment variable was added (in stkOpcodes.cpp). I ifdefed it out for OSX.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Apr 2016, at 08:19, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> I just ran the x64 version of drmemory on csoundvstmain.exe and it
> produced the trace, below, as the program crashed.
>
> Error #3 towards the end is the critical error. The same error occurs
> in gdb. I think the first two errors can be ignored.
>
> I don't fully understand this trace. Any ideas?
>
> Regards,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
> csound-mingw64/csoundvstmain.exe
> ~~Dr.M~~ Dr. Memory version 1.10.0
> ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
> ~~Dr.M~~
> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
> with operator delete
> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
> [d:\drmemory_package\common\alloc_replace.c:2974]
> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
> (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
> (0x000000006fce4046 <libstdc++-6.dll+0xa4046>)
> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ # 7 csound64.dll!mcalloc
> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ # 9 csound64.dll!csoundReset
> [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
> (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
> (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/include/csound.hpp:839]
> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ #14 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
> ~~Dr.M~~ Note: memory was allocated here:
> ~~Dr.M~~ Note: # 0 replace_malloc
>       [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>      +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
> ~~Dr.M~~ Note: # 4
> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>       [D:/msys64/home/restore/csound/Top/csound.c:2904]
> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>       [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~
> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
> with operator delete
> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
> [d:\drmemory_package\common\alloc_replace.c:2974]
> ~~Dr.M~~ # 1 libstdc++-6.dll!?
> +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
> ~~Dr.M~~ # 2 libstdc++-6.dll!?
> +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ # 7 csound64.dll!mcalloc
> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ # 9 csound64.dll!csoundReset
> [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
> +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
> ~~Dr.M~~ #11 msvcrt.dll!atol
> +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/include/csound.hpp:839]
> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ #14 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
> ~~Dr.M~~ Note: memory was allocated here:
> ~~Dr.M~~ Note: # 0 replace_malloc
>       [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>      +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>      +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
> ~~Dr.M~~ Note: # 3
> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>       [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>       [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>      +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>      +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
> ~~Dr.M~~
> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
> 0x0000000000000008-0x000000000000000c 4 byte(s)
> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ # 8 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.07 (double samples) Apr  2 2016
> libsndfile-1.0.26-exp
> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
> Csound tidy up: Segmentation violation
> ~~Dr.M~~
> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
> ~~Dr.M~~ # 0 replace_malloc
> [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
> (0x000007fd872aa700 <msvcrt.dll+0x2a700>)
> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
> (0x000007fd872f4890 <msvcrt.dll+0x74890>)
> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
> (0x000007fd872f465e <msvcrt.dll+0x7465e>)
> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
> [D:/msys64/home/restore/csound/include/csound.hpp:483]
> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
> [D:/msys64/home/restore/csound/Top/threads.c:195]
> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ # 8 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~
> ~~Dr.M~~ ERRORS FOUND:
> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
> ~~Dr.M~~       0 unique,     0 total handle leak(s)
> ~~Dr.M~~       0 unique,     0 total warning(s)
> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
> ~~Dr.M~~ ERRORS IGNORED:
> ~~Dr.M~~      22 potential error(s) (suspected false positives)
> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
> still-reachable allocation(s)
> ~~Dr.M~~          (re-run with "-show_reachable" for details)
> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\results.txt

Date2016-04-02 09:17
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Memory problem for x64
Which check is that?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Apr 2016, at 09:16, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

Without the check the Stk opcodes crash,  with the check they run.

Best,
Mike

On Apr 2, 2016 11:09 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
That trace seems to point to the same place that was crashing on OSX, as I mentioned on Thursday here. It was the commit where a call to check the environment variable was added (in stkOpcodes.cpp). I ifdefed it out for OSX.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Apr 2016, at 08:19, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> I just ran the x64 version of drmemory on csoundvstmain.exe and it
> produced the trace, below, as the program crashed.
>
> Error #3 towards the end is the critical error. The same error occurs
> in gdb. I think the first two errors can be ignored.
>
> I don't fully understand this trace. Any ideas?
>
> Regards,
> Mike
>
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
> csound-mingw64/csoundvstmain.exe
> ~~Dr.M~~ Dr. Memory version 1.10.0
> ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
> ~~Dr.M~~
> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
> with operator delete
> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
> [d:\drmemory_package\common\alloc_replace.c:2974]
> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
> (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
> (0x000000006fce4046 <libstdc++-6.dll+0xa4046>)
> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ # 7 csound64.dll!mcalloc
> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ # 9 csound64.dll!csoundReset
> [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
> (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
> (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/include/csound.hpp:839]
> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ #14 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
> ~~Dr.M~~ Note: memory was allocated here:
> ~~Dr.M~~ Note: # 0 replace_malloc
>       [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>      +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
> ~~Dr.M~~ Note: # 4
> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>       [D:/msys64/home/restore/csound/Top/csound.c:2904]
> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>       [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~
> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
> with operator delete
> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
> [d:\drmemory_package\common\alloc_replace.c:2974]
> ~~Dr.M~~ # 1 libstdc++-6.dll!?
> +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
> ~~Dr.M~~ # 2 libstdc++-6.dll!?
> +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ # 7 csound64.dll!mcalloc
> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ # 9 csound64.dll!csoundReset
> [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
> +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
> ~~Dr.M~~ #11 msvcrt.dll!atol
> +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/include/csound.hpp:839]
> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ #14 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
> ~~Dr.M~~ Note: memory was allocated here:
> ~~Dr.M~~ Note: # 0 replace_malloc
>       [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>      +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>      +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
> ~~Dr.M~~ Note: # 3
> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>       [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>       [D:/msys64/home/restore/csound/Top/csound.c:3172]
> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>      +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>      +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
> ~~Dr.M~~
> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
> 0x0000000000000008-0x000000000000000c 4 byte(s)
> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ # 8 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
> virtual_keyboard real time MIDI plugin for Csound
> 0dBFS level = 32768.0
> Csound version 6.07 (double samples) Apr  2 2016
> libsndfile-1.0.26-exp
> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
> Csound tidy up: Segmentation violation
> ~~Dr.M~~
> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
> ~~Dr.M~~ # 0 replace_malloc
> [d:\drmemory_package\common\alloc_replace.c:2576]
> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
> (0x000007fd872aa700 <msvcrt.dll+0x2a700>)
> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
> (0x000007fd872f4890 <msvcrt.dll+0x74890>)
> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
> (0x000007fd872f465e <msvcrt.dll+0x7465e>)
> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
> [D:/msys64/home/restore/csound/include/csound.hpp:483]
> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
> [D:/msys64/home/restore/csound/Top/threads.c:195]
> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
> ~~Dr.M~~ # 8 main
> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
> ~~Dr.M~~
> ~~Dr.M~~ ERRORS FOUND:
> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
> ~~Dr.M~~       0 unique,     0 total handle leak(s)
> ~~Dr.M~~       0 unique,     0 total warning(s)
> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
> ~~Dr.M~~ ERRORS IGNORED:
> ~~Dr.M~~      22 potential error(s) (suspected false positives)
> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
> still-reachable allocation(s)
> ~~Dr.M~~          (re-run with "-show_reachable" for details)
> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.
> Memory\DrMemory-csoundvstmain.exe.7808.000\results.txt

Date2016-04-02 10:20
FromMichael Gogins
SubjectRe: [Csnd-dev] Memory problem for x64
What I meant is that without this code:

  #if !defined(MACOSX)
          if (std::strlen(path) == 0) {
              path = std::getenv("RAWWAVE_PATH");
          }
  #endif

The STK opcodes crash.

If I delete stkops.dll from my environment, csoundvstmain still
crashes with error #3 from the drmemory trace. This proves that the
csoundvstmain crash is completely unrelated to the RAWWAVE path issue.

Best,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Apr 2, 2016 at 11:17 AM, Victor Lazzarini
 wrote:
> Which check is that?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 2 Apr 2016, at 09:16, Michael Gogins  wrote:
>
> Without the check the Stk opcodes crash,  with the check they run.
>
> Best,
> Mike
>
> On Apr 2, 2016 11:09 AM, "Victor Lazzarini" 
> wrote:
>>
>> That trace seems to point to the same place that was crashing on OSX, as I
>> mentioned on Thursday here. It was the commit where a call to check the
>> environment variable was added (in stkOpcodes.cpp). I ifdefed it out for
>> OSX.
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> > On 2 Apr 2016, at 08:19, Michael Gogins 
>> > wrote:
>> >
>> > I just ran the x64 version of drmemory on csoundvstmain.exe and it
>> > produced the trace, below, as the program crashed.
>> >
>> > Error #3 towards the end is the critical error. The same error occurs
>> > in gdb. I think the first two errors can be ignored.
>> >
>> > I don't fully understand this trace. Any ideas?
>> >
>> > Regards,
>> > Mike
>> >
>> >
>> > -----------------------------------------------------
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> > $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
>> > csound-mingw64/csoundvstmain.exe
>> > ~~Dr.M~~ Dr. Memory version 1.10.0
>> > ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
>> > ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
>> > ~~Dr.M~~
>> > ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
>> > with operator delete
>> > ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>> > [d:\drmemory_package\common\alloc_replace.c:2974]
>> > ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
>> > (0x000000006fce4281 )
>> > ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
>> > (0x000000006fce4046 )
>> > ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
>> > [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
>> > ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>> > [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>> > ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>> > [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> > ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>> > [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> > ~~Dr.M~~ # 7 csound64.dll!mcalloc
>> > [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> > ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>> > [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> > ~~Dr.M~~ # 9 csound64.dll!csoundReset
>> > [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> > ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
>> > (0x000007fd872826b4 )
>> > ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
>> > (0x000007fd8728cedd )
>> > ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>> > [D:/msys64/home/restore/csound/include/csound.hpp:839]
>> > ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> > ~~Dr.M~~ #14 main
>> >
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> > ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>> > ~~Dr.M~~ Note: memory was allocated here:
>> > ~~Dr.M~~ Note: # 0 replace_malloc
>> >       [d:\drmemory_package\common\alloc_replace.c:2576]
>> > ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>> >       [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
>> > ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>> >      +0x0      (0x000000006fd050ec )
>> > ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>> >       [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
>> > ~~Dr.M~~ Note: # 4
>> > stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>> > [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>> > ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>> >
>> > [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
>> > ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>> >       [D:/msys64/home/restore/csound/Top/csound.c:2904]
>> > ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>> >       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> > ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>> >
>> > [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> > ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>> >       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> > ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>> >       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> > ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>> >       [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> > ~~Dr.M~~
>> > ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
>> > with operator delete
>> > ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>> > [d:\drmemory_package\common\alloc_replace.c:2974]
>> > ~~Dr.M~~ # 1 libstdc++-6.dll!?
>> > +0x0      (0x000000006fce4281 )
>> > ~~Dr.M~~ # 2 libstdc++-6.dll!?
>> > +0x0      (0x000000006fd050ec )
>> > ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>> > [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
>> > ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>> > [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>> > ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>> > [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> > ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>> > [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> > ~~Dr.M~~ # 7 csound64.dll!mcalloc
>> > [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> > ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>> > [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> > ~~Dr.M~~ # 9 csound64.dll!csoundReset
>> > [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> > ~~Dr.M~~ #10 msvcrt.dll!memmove_s
>> > +0x38f    (0x000007fd872826b4 )
>> > ~~Dr.M~~ #11 msvcrt.dll!atol
>> > +0x2c     (0x000007fd8728cedd )
>> > ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>> > [D:/msys64/home/restore/csound/include/csound.hpp:839]
>> > ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> > ~~Dr.M~~ #14 main
>> >
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> > ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>> > ~~Dr.M~~ Note: memory was allocated here:
>> > ~~Dr.M~~ Note: # 0 replace_malloc
>> >       [d:\drmemory_package\common\alloc_replace.c:2576]
>> > ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>> >      +0x0      (0x000000006fce4281 )
>> > ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>> >      +0x0      (0x000000006fd050ec )
>> > ~~Dr.M~~ Note: # 3
>> > stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>> > [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>> > ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>> >       [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
>> > ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>> >       [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> > ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>> >
>> > [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> > ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>> >       [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> > ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>> >       [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> > ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>> >       [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> > ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>> >      +0x38f    (0x000007fd872826b4 )
>> > ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>> >      +0x2c     (0x000007fd8728cedd )
>> > ~~Dr.M~~
>> > ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
>> > 0x0000000000000008-0x000000000000000c 4 byte(s)
>> > ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
>> > [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>> > ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
>> >
>> > [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> > ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
>> >
>> > [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> > ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
>> >
>> > [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> > ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
>> >
>> > [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> > ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
>> >
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
>> > ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
>> > ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> > ~~Dr.M~~ # 8 main
>> >
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> > ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
>> > ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
>> > virtual_keyboard real time MIDI plugin for Csound
>> > 0dBFS level = 32768.0
>> > Csound version 6.07 (double samples) Apr  2 2016
>> > libsndfile-1.0.26-exp
>> > CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
>> > Csound tidy up: Segmentation violation
>> > ~~Dr.M~~
>> > ~~Dr.M~~ Error #4: LEAK 8 direct bytes
>> > 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
>> > ~~Dr.M~~ # 0 replace_malloc
>> > [d:\drmemory_package\common\alloc_replace.c:2576]
>> > ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
>> > (0x000007fd872aa700 )
>> > ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
>> > (0x000007fd872f4890 )
>> > ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
>> > (0x000007fd872f465e )
>> > ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
>> > [D:/msys64/home/restore/csound/include/csound.hpp:483]
>> > ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
>> > [D:/msys64/home/restore/csound/Top/threads.c:195]
>> > ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
>> > ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> > ~~Dr.M~~ # 8 main
>> >
>> > [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> > ~~Dr.M~~
>> > ~~Dr.M~~ ERRORS FOUND:
>> > ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
>> > ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
>> > ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
>> > ~~Dr.M~~       0 unique,     0 total handle leak(s)
>> > ~~Dr.M~~       0 unique,     0 total warning(s)
>> > ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
>> > ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
>> > ~~Dr.M~~ ERRORS IGNORED:
>> > ~~Dr.M~~      22 potential error(s) (suspected false positives)
>> > ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>> > Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>> > ~~Dr.M~~       6 potential leak(s) (suspected false positives)
>> > ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>> > Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>> > ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
>> > still-reachable allocation(s)
>> > ~~Dr.M~~          (re-run with "-show_reachable" for details)
>> > ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.

Date2016-04-02 10:48
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Memory problem for x64
Error #3 appears to be in  CsoundVST  FLTK code rather than in the Csound lib. Is that right?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Apr 2016, at 10:20, Michael Gogins  wrote:
> 
> What I meant is that without this code:
> 
>  #if !defined(MACOSX)
>          if (std::strlen(path) == 0) {
>              path = std::getenv("RAWWAVE_PATH");
>          }
>  #endif
> 
> The STK opcodes crash.
> 
> If I delete stkops.dll from my environment, csoundvstmain still
> crashes with error #3 from the drmemory trace. This proves that the
> csoundvstmain crash is completely unrelated to the RAWWAVE path issue.
> 
> Best,
> Mike
> 
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
> 
> 
> On Sat, Apr 2, 2016 at 11:17 AM, Victor Lazzarini
>  wrote:
>> Which check is that?
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>> On 2 Apr 2016, at 09:16, Michael Gogins  wrote:
>> 
>> Without the check the Stk opcodes crash,  with the check they run.
>> 
>> Best,
>> Mike
>> 
>> On Apr 2, 2016 11:09 AM, "Victor Lazzarini" 
>> wrote:
>>> 
>>> That trace seems to point to the same place that was crashing on OSX, as I
>>> mentioned on Thursday here. It was the commit where a call to check the
>>> environment variable was added (in stkOpcodes.cpp). I ifdefed it out for
>>> OSX.
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>>> On 2 Apr 2016, at 08:19, Michael Gogins 
>>>> wrote:
>>>> 
>>>> I just ran the x64 version of drmemory on csoundvstmain.exe and it
>>>> produced the trace, below, as the program crashed.
>>>> 
>>>> Error #3 towards the end is the critical error. The same error occurs
>>>> in gdb. I think the first two errors can be ignored.
>>>> 
>>>> I don't fully understand this trace. Any ideas?
>>>> 
>>>> Regards,
>>>> Mike
>>>> 
>>>> 
>>>> -----------------------------------------------------
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://michaelgogins.tumblr.com
>>>> Michael dot Gogins at gmail dot com
>>>> 
>>>> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
>>>> csound-mingw64/csoundvstmain.exe
>>>> ~~Dr.M~~ Dr. Memory version 1.10.0
>>>> ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
>>>> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
>>>> with operator delete
>>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
>>>> (0x000000006fce4281 )
>>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
>>>> (0x000000006fce4046 )
>>>> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
>>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
>>>> (0x000007fd872826b4 )
>>>> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
>>>> (0x000007fd8728cedd )
>>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ #14 main
>>>> 
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>>>> ~~Dr.M~~ Note: memory was allocated here:
>>>> ~~Dr.M~~ Note: # 0 replace_malloc
>>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
>>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fd050ec )
>>>> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>>>>      [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
>>>> ~~Dr.M~~ Note: # 4
>>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>>>> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>>>> 
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
>>>> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:2904]
>>>> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>>>> 
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
>>>> with operator delete
>>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?
>>>> +0x0      (0x000000006fce4281 )
>>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?
>>>> +0x0      (0x000000006fd050ec )
>>>> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
>>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
>>>> +0x38f    (0x000007fd872826b4 )
>>>> ~~Dr.M~~ #11 msvcrt.dll!atol
>>>> +0x2c     (0x000007fd8728cedd )
>>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ #14 main
>>>> 
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>>>> ~~Dr.M~~ Note: memory was allocated here:
>>>> ~~Dr.M~~ Note: # 0 replace_malloc
>>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fce4281 )
>>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fd050ec )
>>>> ~~Dr.M~~ Note: # 3
>>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>>>> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>>>>      [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
>>>> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> 
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>>>>     +0x38f    (0x000007fd872826b4 )
>>>> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>>>>     +0x2c     (0x000007fd8728cedd )
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
>>>> 0x0000000000000008-0x000000000000000c 4 byte(s)
>>>> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
>>>> 
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
>>>> 
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
>>>> 
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
>>>> 
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
>>>> 
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
>>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
>>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ # 8 main
>>>> 
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
>>>> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
>>>> virtual_keyboard real time MIDI plugin for Csound
>>>> 0dBFS level = 32768.0
>>>> Csound version 6.07 (double samples) Apr  2 2016
>>>> libsndfile-1.0.26-exp
>>>> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
>>>> Csound tidy up: Segmentation violation
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
>>>> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
>>>> ~~Dr.M~~ # 0 replace_malloc
>>>> [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
>>>> (0x000007fd872aa700 )
>>>> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
>>>> (0x000007fd872f4890 )
>>>> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
>>>> (0x000007fd872f465e )
>>>> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:483]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
>>>> [D:/msys64/home/restore/csound/Top/threads.c:195]
>>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
>>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ # 8 main
>>>> 
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ ERRORS FOUND:
>>>> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
>>>> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
>>>> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
>>>> ~~Dr.M~~       0 unique,     0 total handle leak(s)
>>>> ~~Dr.M~~       0 unique,     0 total warning(s)
>>>> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
>>>> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
>>>> ~~Dr.M~~ ERRORS IGNORED:
>>>> ~~Dr.M~~      22 potential error(s) (suspected false positives)
>>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>>>> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
>>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>>>> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
>>>> still-reachable allocation(s)
>>>> ~~Dr.M~~          (re-run with "-show_reachable" for details)
>>>> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.

Date2016-04-02 10:55
FromMichael Gogins
SubjectRe: [Csnd-dev] Memory problem for x64

Yes, and it always worked on x86.

Mike

On Apr 2, 2016 12:48 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Error #3 appears to be in  CsoundVST  FLTK code rather than in the Csound lib. Is that right?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Apr 2016, at 10:20, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> What I meant is that without this code:
>
>  #if !defined(MACOSX)
>          if (std::strlen(path) == 0) {
>              path = std::getenv("RAWWAVE_PATH");
>          }
>  #endif
>
> The STK opcodes crash.
>
> If I delete stkops.dll from my environment, csoundvstmain still
> crashes with error #3 from the drmemory trace. This proves that the
> csoundvstmain crash is completely unrelated to the RAWWAVE path issue.
>
> Best,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sat, Apr 2, 2016 at 11:17 AM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie> wrote:
>> Which check is that?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 2 Apr 2016, at 09:16, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>>
>> Without the check the Stk opcodes crash,  with the check they run.
>>
>> Best,
>> Mike
>>
>> On Apr 2, 2016 11:09 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> That trace seems to point to the same place that was crashing on OSX, as I
>>> mentioned on Thursday here. It was the commit where a call to check the
>>> environment variable was added (in stkOpcodes.cpp). I ifdefed it out for
>>> OSX.
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 2 Apr 2016, at 08:19, Michael Gogins <michael.gogins@GMAIL.COM>
>>>> wrote:
>>>>
>>>> I just ran the x64 version of drmemory on csoundvstmain.exe and it
>>>> produced the trace, below, as the program crashed.
>>>>
>>>> Error #3 towards the end is the critical error. The same error occurs
>>>> in gdb. I think the first two errors can be ignored.
>>>>
>>>> I don't fully understand this trace. Any ideas?
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>>
>>>> -----------------------------------------------------
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://michaelgogins.tumblr.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
>>>> csound-mingw64/csoundvstmain.exe
>>>> ~~Dr.M~~ Dr. Memory version 1.10.0
>>>> ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
>>>> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
>>>> with operator delete
>>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
>>>> (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
>>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
>>>> (0x000000006fce4046 <libstdc++-6.dll+0xa4046>)
>>>> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
>>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
>>>> (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
>>>> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
>>>> (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
>>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ #14 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>>>> ~~Dr.M~~ Note: memory was allocated here:
>>>> ~~Dr.M~~ Note: # 0 replace_malloc
>>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
>>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
>>>> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>>>>      [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
>>>> ~~Dr.M~~ Note: # 4
>>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>>>> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>>>>
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
>>>> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:2904]
>>>> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>>>>
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
>>>> with operator delete
>>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?
>>>> +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
>>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?
>>>> +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
>>>> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
>>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
>>>> +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
>>>> ~~Dr.M~~ #11 msvcrt.dll!atol
>>>> +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
>>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ #14 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>>>> ~~Dr.M~~ Note: memory was allocated here:
>>>> ~~Dr.M~~ Note: # 0 replace_malloc
>>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
>>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
>>>> ~~Dr.M~~ Note: # 3
>>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>>>> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>>>>      [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
>>>> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>>
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>>>>     +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
>>>> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>>>>     +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
>>>> 0x0000000000000008-0x000000000000000c 4 byte(s)
>>>> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
>>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
>>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ # 8 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
>>>> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
>>>> virtual_keyboard real time MIDI plugin for Csound
>>>> 0dBFS level = 32768.0
>>>> Csound version 6.07 (double samples) Apr  2 2016
>>>> libsndfile-1.0.26-exp
>>>> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
>>>> Csound tidy up: Segmentation violation
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
>>>> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
>>>> ~~Dr.M~~ # 0 replace_malloc
>>>> [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
>>>> (0x000007fd872aa700 <msvcrt.dll+0x2a700>)
>>>> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
>>>> (0x000007fd872f4890 <msvcrt.dll+0x74890>)
>>>> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
>>>> (0x000007fd872f465e <msvcrt.dll+0x7465e>)
>>>> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:483]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
>>>> [D:/msys64/home/restore/csound/Top/threads.c:195]
>>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
>>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ # 8 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ ERRORS FOUND:
>>>> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
>>>> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
>>>> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
>>>> ~~Dr.M~~       0 unique,     0 total handle leak(s)
>>>> ~~Dr.M~~       0 unique,     0 total warning(s)
>>>> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
>>>> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
>>>> ~~Dr.M~~ ERRORS IGNORED:
>>>> ~~Dr.M~~      22 potential error(s) (suspected false positives)
>>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>>>> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
>>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>>>> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
>>>> still-reachable allocation(s)
>>>> ~~Dr.M~~          (re-run with "-show_reachable" for details)
>>>> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\results.txt

Date2016-04-02 11:27
FromVictor Lazzarini
SubjectRe: [Csnd-dev] Memory problem for x64
Are you assuming pointers or long ints to be 32bits anywhere?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 2 Apr 2016, at 10:55, Michael Gogins <michael.gogins@GMAIL.COM> wrote:

Yes, and it always worked on x86.

Mike

On Apr 2, 2016 12:48 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
Error #3 appears to be in  CsoundVST  FLTK code rather than in the Csound lib. Is that right?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 2 Apr 2016, at 10:20, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>
> What I meant is that without this code:
>
>  #if !defined(MACOSX)
>          if (std::strlen(path) == 0) {
>              path = std::getenv("RAWWAVE_PATH");
>          }
>  #endif
>
> The STK opcodes crash.
>
> If I delete stkops.dll from my environment, csoundvstmain still
> crashes with error #3 from the drmemory trace. This proves that the
> csoundvstmain crash is completely unrelated to the RAWWAVE path issue.
>
> Best,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com
>
>
> On Sat, Apr 2, 2016 at 11:17 AM, Victor Lazzarini
> <Victor.Lazzarini@nuim.ie> wrote:
>> Which check is that?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 2 Apr 2016, at 09:16, Michael Gogins <michael.gogins@GMAIL.COM> wrote:
>>
>> Without the check the Stk opcodes crash,  with the check they run.
>>
>> Best,
>> Mike
>>
>> On Apr 2, 2016 11:09 AM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie>
>> wrote:
>>>
>>> That trace seems to point to the same place that was crashing on OSX, as I
>>> mentioned on Thursday here. It was the commit where a call to check the
>>> environment variable was added (in stkOpcodes.cpp). I ifdefed it out for
>>> OSX.
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 2 Apr 2016, at 08:19, Michael Gogins <michael.gogins@GMAIL.COM>
>>>> wrote:
>>>>
>>>> I just ran the x64 version of drmemory on csoundvstmain.exe and it
>>>> produced the trace, below, as the program crashed.
>>>>
>>>> Error #3 towards the end is the critical error. The same error occurs
>>>> in gdb. I think the first two errors can be ignored.
>>>>
>>>> I don't fully understand this trace. Any ideas?
>>>>
>>>> Regards,
>>>> Mike
>>>>
>>>>
>>>> -----------------------------------------------------
>>>> Michael Gogins
>>>> Irreducible Productions
>>>> http://michaelgogins.tumblr.com
>>>> Michael dot Gogins at gmail dot com
>>>>
>>>> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
>>>> csound-mingw64/csoundvstmain.exe
>>>> ~~Dr.M~~ Dr. Memory version 1.10.0
>>>> ~~Dr.M~~ (Uninitialized read checking is not yet supported for 64-bit)
>>>> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc, freed
>>>> with operator delete
>>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
>>>> (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
>>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
>>>> (0x000000006fce4046 <libstdc++-6.dll+0xa4046>)
>>>> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
>>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
>>>> (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
>>>> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
>>>> (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
>>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ #14 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>>>> ~~Dr.M~~ Note: memory was allocated here:
>>>> ~~Dr.M~~ Note: # 0 replace_malloc
>>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
>>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
>>>> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>>>>      [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
>>>> ~~Dr.M~~ Note: # 4
>>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>>>> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>>>>
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
>>>> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:2904]
>>>> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>>>>
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc, freed
>>>> with operator delete
>>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?
>>>> +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
>>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?
>>>> +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
>>>> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
>>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
>>>> +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
>>>> ~~Dr.M~~ #11 msvcrt.dll!atol
>>>> +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
>>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ #14 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>>>> ~~Dr.M~~ Note: memory was allocated here:
>>>> ~~Dr.M~~ Note: # 0 replace_malloc
>>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fce4281 <libstdc++-6.dll+0xa4281>)
>>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>>>>     +0x0      (0x000000006fd050ec <libstdc++-6.dll+0xc50ec>)
>>>> ~~Dr.M~~ Note: # 3
>>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>>>> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>>>>      [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
>>>> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>>>> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>>>>
>>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>>>> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>>>> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>>>> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>>>> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>>>>     +0x38f    (0x000007fd872826b4 <msvcrt.dll+0x26b4>)
>>>> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>>>>     +0x2c     (0x000007fd8728cedd <msvcrt.dll+0xcedd>)
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
>>>> 0x0000000000000008-0x000000000000000c 4 byte(s)
>>>> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
>>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>>>> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
>>>>
>>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>>>> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
>>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
>>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ # 8 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
>>>> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
>>>> virtual_keyboard real time MIDI plugin for Csound
>>>> 0dBFS level = 32768.0
>>>> Csound version 6.07 (double samples) Apr  2 2016
>>>> libsndfile-1.0.26-exp
>>>> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
>>>> Csound tidy up: Segmentation violation
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
>>>> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
>>>> ~~Dr.M~~ # 0 replace_malloc
>>>> [d:\drmemory_package\common\alloc_replace.c:2576]
>>>> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
>>>> (0x000007fd872aa700 <msvcrt.dll+0x2a700>)
>>>> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
>>>> (0x000007fd872f4890 <msvcrt.dll+0x74890>)
>>>> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
>>>> (0x000007fd872f465e <msvcrt.dll+0x7465e>)
>>>> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
>>>> [D:/msys64/home/restore/csound/include/csound.hpp:483]
>>>> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
>>>> [D:/msys64/home/restore/csound/Top/threads.c:195]
>>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
>>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>>>> ~~Dr.M~~ # 8 main
>>>>
>>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>>>> ~~Dr.M~~
>>>> ~~Dr.M~~ ERRORS FOUND:
>>>> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
>>>> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
>>>> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
>>>> ~~Dr.M~~       0 unique,     0 total handle leak(s)
>>>> ~~Dr.M~~       0 unique,     0 total warning(s)
>>>> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
>>>> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible leak(s)
>>>> ~~Dr.M~~ ERRORS IGNORED:
>>>> ~~Dr.M~~      22 potential error(s) (suspected false positives)
>>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>>>> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
>>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>>>> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
>>>> still-reachable allocation(s)
>>>> ~~Dr.M~~          (re-run with "-show_reachable" for details)
>>>> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.
>>>> Memory\DrMemory-csoundvstmain.exe.7808.000\results.txt

Date2016-04-02 11:45
FromMichael Gogins
SubjectRe: [Csnd-dev] Memory problem for x64
I am not. Perhaps the FLTK code is, although people report using FLTK
for Windows x64.

Regards,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sat, Apr 2, 2016 at 1:27 PM, Victor Lazzarini
 wrote:
> Are you assuming pointers or long ints to be 32bits anywhere?
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
> On 2 Apr 2016, at 10:55, Michael Gogins  wrote:
>
> Yes, and it always worked on x86.
>
> Mike
>
> On Apr 2, 2016 12:48 PM, "Victor Lazzarini" 
> wrote:
>>
>> Error #3 appears to be in  CsoundVST  FLTK code rather than in the Csound
>> lib. Is that right?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> > On 2 Apr 2016, at 10:20, Michael Gogins 
>> > wrote:
>> >
>> > What I meant is that without this code:
>> >
>> >  #if !defined(MACOSX)
>> >          if (std::strlen(path) == 0) {
>> >              path = std::getenv("RAWWAVE_PATH");
>> >          }
>> >  #endif
>> >
>> > The STK opcodes crash.
>> >
>> > If I delete stkops.dll from my environment, csoundvstmain still
>> > crashes with error #3 from the drmemory trace. This proves that the
>> > csoundvstmain crash is completely unrelated to the RAWWAVE path issue.
>> >
>> > Best,
>> > Mike
>> >
>> > -----------------------------------------------------
>> > Michael Gogins
>> > Irreducible Productions
>> > http://michaelgogins.tumblr.com
>> > Michael dot Gogins at gmail dot com
>> >
>> >
>> > On Sat, Apr 2, 2016 at 11:17 AM, Victor Lazzarini
>> >  wrote:
>> >> Which check is that?
>> >>
>> >> Victor Lazzarini
>> >> Dean of Arts, Celtic Studies, and Philosophy
>> >> Maynooth University
>> >> Ireland
>> >>
>> >> On 2 Apr 2016, at 09:16, Michael Gogins 
>> >> wrote:
>> >>
>> >> Without the check the Stk opcodes crash,  with the check they run.
>> >>
>> >> Best,
>> >> Mike
>> >>
>> >> On Apr 2, 2016 11:09 AM, "Victor Lazzarini" 
>> >> wrote:
>> >>>
>> >>> That trace seems to point to the same place that was crashing on OSX,
>> >>> as I
>> >>> mentioned on Thursday here. It was the commit where a call to check
>> >>> the
>> >>> environment variable was added (in stkOpcodes.cpp). I ifdefed it out
>> >>> for
>> >>> OSX.
>> >>>
>> >>> Victor Lazzarini
>> >>> Dean of Arts, Celtic Studies, and Philosophy
>> >>> Maynooth University
>> >>> Ireland
>> >>>
>> >>>> On 2 Apr 2016, at 08:19, Michael Gogins 
>> >>>> wrote:
>> >>>>
>> >>>> I just ran the x64 version of drmemory on csoundvstmain.exe and it
>> >>>> produced the trace, below, as the program crashed.
>> >>>>
>> >>>> Error #3 towards the end is the critical error. The same error occurs
>> >>>> in gdb. I think the first two errors can be ignored.
>> >>>>
>> >>>> I don't fully understand this trace. Any ideas?
>> >>>>
>> >>>> Regards,
>> >>>> Mike
>> >>>>
>> >>>>
>> >>>> -----------------------------------------------------
>> >>>> Michael Gogins
>> >>>> Irreducible Productions
>> >>>> http://michaelgogins.tumblr.com
>> >>>> Michael dot Gogins at gmail dot com
>> >>>>
>> >>>> $ "C:\Program Files (x86)\Dr. Memory\bin64\drmemory.exe" --
>> >>>> csound-mingw64/csoundvstmain.exe
>> >>>> ~~Dr.M~~ Dr. Memory version 1.10.0
>> >>>> ~~Dr.M~~ (Uninitialized read checking is not yet supported for
>> >>>> 64-bit)
>> >>>> ~~Dr.M~~ Running "csound-mingw64/csoundvstmain.exe"
>> >>>> ~~Dr.M~~
>> >>>> ~~Dr.M~~ Error #1: INVALID HEAP ARGUMENT: allocated with malloc,
>> >>>> freed
>> >>>> with operator delete
>> >>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>> >>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>> >>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?                            +0x0
>> >>>> (0x000000006fce4281 )
>> >>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?                            +0x0
>> >>>> (0x000000006fce4046 )
>> >>>> ~~Dr.M~~ # 3 stkops.dll!stk::Stk::setRawwavePath
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/stl_tree.h:663]
>> >>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>> >>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>> >>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> >>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>> >>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> >>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>> >>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> >>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>> >>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> >>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>> >>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> >>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s                         +0x38f
>> >>>> (0x000007fd872826b4 )
>> >>>> ~~Dr.M~~ #11 msvcrt.dll!atol                              +0x2c
>> >>>> (0x000007fd8728cedd )
>> >>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>> >>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>> >>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> >>>> ~~Dr.M~~ #14 main
>> >>>>
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> >>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>> >>>> ~~Dr.M~~ Note: memory was allocated here:
>> >>>> ~~Dr.M~~ Note: # 0 replace_malloc
>> >>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>> >>>> ~~Dr.M~~ Note: # 1 csound64.dll!mmalloc
>> >>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:89]
>> >>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>> >>>>     +0x0      (0x000000006fd050ec )
>> >>>> ~~Dr.M~~ Note: # 3 csound64.dll!cs_cons
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:33]
>> >>>> ~~Dr.M~~ Note: # 4
>> >>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>> >>>> ~~Dr.M~~ Note: # 5 csound64.dll!cs_hash_table_get
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:122]
>> >>>> ~~Dr.M~~ Note: # 6 csound64.dll!csoundAppendOpcodes
>> >>>>      [D:/msys64/home/restore/csound/Top/csound.c:2904]
>> >>>> ~~Dr.M~~ Note: # 7 csound64.dll!csoundInitModule
>> >>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> >>>> ~~Dr.M~~ Note: # 8 csound64.dll!cs_hash_table_put_no_key_copy
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> >>>> ~~Dr.M~~ Note: # 9 csound64.dll!mcalloc
>> >>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> >>>> ~~Dr.M~~ Note: #10 csound64.dll!csoundInitModules
>> >>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> >>>> ~~Dr.M~~ Note: #11 csound64.dll!csoundReset
>> >>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> >>>> ~~Dr.M~~
>> >>>> ~~Dr.M~~ Error #2: INVALID HEAP ARGUMENT: allocated with malloc,
>> >>>> freed
>> >>>> with operator delete
>> >>>> ~~Dr.M~~ # 0 replace_operator_delete_nothrow
>> >>>> [d:\drmemory_package\common\alloc_replace.c:2974]
>> >>>> ~~Dr.M~~ # 1 libstdc++-6.dll!?
>> >>>> +0x0      (0x000000006fce4281 )
>> >>>> ~~Dr.M~~ # 2 libstdc++-6.dll!?
>> >>>> +0x0      (0x000000006fd050ec )
>> >>>> ~~Dr.M~~ # 3 stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/char_traits.h:290]
>> >>>> ~~Dr.M~~ # 4 stkops.dll!csoundModuleInit
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>> >>>> ~~Dr.M~~ # 5 csound64.dll!csoundInitModule
>> >>>> [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> >>>> ~~Dr.M~~ # 6 csound64.dll!cs_hash_table_put_no_key_copy
>> >>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> >>>> ~~Dr.M~~ # 7 csound64.dll!mcalloc
>> >>>> [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> >>>> ~~Dr.M~~ # 8 csound64.dll!csoundInitModules
>> >>>> [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> >>>> ~~Dr.M~~ # 9 csound64.dll!csoundReset
>> >>>> [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> >>>> ~~Dr.M~~ #10 msvcrt.dll!memmove_s
>> >>>> +0x38f    (0x000007fd872826b4 )
>> >>>> ~~Dr.M~~ #11 msvcrt.dll!atol
>> >>>> +0x2c     (0x000007fd8728cedd )
>> >>>> ~~Dr.M~~ #12 CsoundVST.dll!CsoundVST::CsoundVST
>> >>>> [D:/msys64/home/restore/csound/include/csound.hpp:839]
>> >>>> ~~Dr.M~~ #13 CsoundVST.dll!RunCsoundVST
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> >>>> ~~Dr.M~~ #14 main
>> >>>>
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> >>>> ~~Dr.M~~ Note: @0:00:05.185 in thread 1572
>> >>>> ~~Dr.M~~ Note: memory was allocated here:
>> >>>> ~~Dr.M~~ Note: # 0 replace_malloc
>> >>>>      [d:\drmemory_package\common\alloc_replace.c:2576]
>> >>>> ~~Dr.M~~ Note: # 1 libstdc++-6.dll!?
>> >>>>     +0x0      (0x000000006fce4281 )
>> >>>> ~~Dr.M~~ Note: # 2 libstdc++-6.dll!?
>> >>>>     +0x0      (0x000000006fd050ec )
>> >>>> ~~Dr.M~~ Note: # 3
>> >>>> stkops.dll!std::__cxx11::basic_string<>::_M_construct<>
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.tcc:223]
>> >>>> ~~Dr.M~~ Note: # 4 stkops.dll!csoundModuleInit
>> >>>>      [D:/msys64/mingw64/include/c++/5.3.0/bits/basic_string.h:195]
>> >>>> ~~Dr.M~~ Note: # 5 csound64.dll!csoundInitModule
>> >>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:549]
>> >>>> ~~Dr.M~~ Note: # 6 csound64.dll!cs_hash_table_put_no_key_copy
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/Engine/csound_data_structures.c:165]
>> >>>> ~~Dr.M~~ Note: # 7 csound64.dll!mcalloc
>> >>>>      [D:/msys64/home/restore/csound/Engine/memalloc.c:127]
>> >>>> ~~Dr.M~~ Note: # 8 csound64.dll!csoundInitModules
>> >>>>      [D:/msys64/home/restore/csound/Top/csmodule.c:597]
>> >>>> ~~Dr.M~~ Note: # 9 csound64.dll!csoundReset
>> >>>>      [D:/msys64/home/restore/csound/Top/csound.c:3172]
>> >>>> ~~Dr.M~~ Note: #10 msvcrt.dll!memmove_s
>> >>>>     +0x38f    (0x000007fd872826b4 )
>> >>>> ~~Dr.M~~ Note: #11 msvcrt.dll!atol
>> >>>>     +0x2c     (0x000007fd8728cedd )
>> >>>> ~~Dr.M~~
>> >>>> ~~Dr.M~~ Error #3: UNADDRESSABLE ACCESS: reading
>> >>>> 0x0000000000000008-0x000000000000000c 4 byte(s)
>> >>>> ~~Dr.M~~ # 0 CsoundVST.dll!fl_height
>> >>>> [D:/msys64/mingw64/include/c++/5.3.0/ext/new_allocator.h:110]
>> >>>> ~~Dr.M~~ # 1 CsoundVST.dll!Fl_Text_Display::resize
>> >>>>
>> >>>>
>> >>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> >>>> ~~Dr.M~~ # 2 CsoundVST.dll!Fl_Text_Display::buffer_modified_cb
>> >>>>
>> >>>>
>> >>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> >>>> ~~Dr.M~~ # 3 CsoundVST.dll!Fl_Text_Display::buffer
>> >>>>
>> >>>>
>> >>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> >>>> ~~Dr.M~~ # 4 CsoundVST.dll!Fl_Text_Buffer::Fl_Text_Buffer
>> >>>>
>> >>>>
>> >>>> [D:/msys64/mingw64/include/vstsdk2.4/public.sdk/source/vst2.x/audioeffectx.h:79]
>> >>>> ~~Dr.M~~ # 5 CsoundVST.dll!CsoundVstFltk::CsoundVstFltk
>> >>>>
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVstFltk.cpp:191]
>> >>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:204]
>> >>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> >>>> ~~Dr.M~~ # 8 main
>> >>>>
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> >>>> ~~Dr.M~~ Note: @0:00:05.267 in thread 1572
>> >>>> ~~Dr.M~~ Note: instruction: mov    0x08(%rcx) -> %esi
>> >>>> virtual_keyboard real time MIDI plugin for Csound
>> >>>> 0dBFS level = 32768.0
>> >>>> Csound version 6.07 (double samples) Apr  2 2016
>> >>>> libsndfile-1.0.26-exp
>> >>>> CSOUNDVST_PRINT_OPCODES: 0x0000000000000000
>> >>>> Csound tidy up: Segmentation violation
>> >>>> ~~Dr.M~~
>> >>>> ~~Dr.M~~ Error #4: LEAK 8 direct bytes
>> >>>> 0x0000000002d8d7f0-0x0000000002d8d7f8 + 0 indirect bytes
>> >>>> ~~Dr.M~~ # 0 replace_malloc
>> >>>> [d:\drmemory_package\common\alloc_replace.c:2576]
>> >>>> ~~Dr.M~~ # 1 msvcrt.dll!strnicmp                   +0x4b
>> >>>> (0x000007fd872aa700 )
>> >>>> ~~Dr.M~~ # 2 msvcrt.dll!vfprintf_s_l               +0x173
>> >>>> (0x000007fd872f4890 )
>> >>>> ~~Dr.M~~ # 3 msvcrt.dll!vfprintf                   +0x1d
>> >>>> (0x000007fd872f465e )
>> >>>> ~~Dr.M~~ # 4 CsoundVST.dll!Csound::Message
>> >>>> [D:/msys64/home/restore/csound/include/csound.hpp:483]
>> >>>> ~~Dr.M~~ # 5 csound64.dll!csoundGetCurrentThreadId
>> >>>> [D:/msys64/home/restore/csound/Top/threads.c:195]
>> >>>> ~~Dr.M~~ # 6 CsoundVST.dll!CsoundVST::CsoundVST
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:197]
>> >>>> ~~Dr.M~~ # 7 CsoundVST.dll!RunCsoundVST
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/CsoundVST.cpp:840]
>> >>>> ~~Dr.M~~ # 8 main
>> >>>>
>> >>>>
>> >>>> [D:/msys64/home/restore/csound/frontends/CsoundVST/csoundvst_main.cpp:40]
>> >>>> ~~Dr.M~~
>> >>>> ~~Dr.M~~ ERRORS FOUND:
>> >>>> ~~Dr.M~~       1 unique,     1 total unaddressable access(es)
>> >>>> ~~Dr.M~~       2 unique,     2 total invalid heap argument(s)
>> >>>> ~~Dr.M~~       0 unique,     0 total GDI usage error(s)
>> >>>> ~~Dr.M~~       0 unique,     0 total handle leak(s)
>> >>>> ~~Dr.M~~       0 unique,     0 total warning(s)
>> >>>> ~~Dr.M~~       1 unique,     1 total,      8 byte(s) of leak(s)
>> >>>> ~~Dr.M~~       0 unique,     0 total,      0 byte(s) of possible
>> >>>> leak(s)
>> >>>> ~~Dr.M~~ ERRORS IGNORED:
>> >>>> ~~Dr.M~~      22 potential error(s) (suspected false positives)
>> >>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>> >>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>> >>>> ~~Dr.M~~       6 potential leak(s) (suspected false positives)
>> >>>> ~~Dr.M~~          (details: C:\Users\restore\AppData\Roaming\Dr.
>> >>>> Memory\DrMemory-csoundvstmain.exe.7808.000\potential_errors.txt)
>> >>>> ~~Dr.M~~    1657 unique,  8654 total, 1211609 byte(s) of
>> >>>> still-reachable allocation(s)
>> >>>> ~~Dr.M~~          (re-run with "-show_reachable" for details)
>> >>>> ~~Dr.M~~ Details: C:\Users\restore\AppData\Roaming\Dr.