Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Memory issue

Date2015-11-18 18:08
Fromjpff
Subject[Csnd-dev] Memory issue
While looking for a different problem I am seeing (from a C API
program)
...
Creating search path cache for 'SFDIR;SSDIR;INCDIR':
    1: "/home/jpff/csound/Samples/"
Creating search path cache for 'SFDIR':
==9326== Invalid read of size 1
==9326==    at 0x44A9C8: csoundGetSearchPathFromEnv (envvar.c:482)
==9326==    by 0x40648D: musmon (musmon.c:194)
==9326==    by 0x43069B: csoundStart (main.c:485)
==9326==    by 0x40532B: main (text.c:25)
==9326==  Address 0x8577f6b is 1 bytes after a block of size 42 alloc'd
==9326==    at 0x4C29110: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd6
4-linux.so)
==9326==    by 0x45EF12: mmalloc (memalloc.c:75)
==9326==    by 0x4363C8: cs_strdup (csound_orc_semantics.c:70)
==9326==    by 0x44A19D: csoundSetEnv (envvar.c:212)
==9326==    by 0x44A53A: csoundInitEnv (envvar.c:328)
==9326==    by 0x42E6C9: csoundReset (csound.c:3123)
==9326==    by 0x42F0DE: csoundCreate (csound.c:1178)
==9326==    by 0x405305: main (text.c:23)
==9326== 

Just placing on record in case a developer has time to look.

Back to my memory issue