Hi John, Just ran it with Valgrind. I think I found the problem, which is this bit of code in Engine/envvar.c in csoundSplitDirectoryFromPath (Line 706 specifically): else { len = lastIndex - convPath; partialPath = (char*) mmalloc(csound, len); strncpy(partialPath, convPath, len); partialPath[len] = '\0'; } that partialPath[len] is overwriting the bounds of the memory allocated. I put in: partialPath[len - 1] = '\0'; and no longer have a segfault. But, my eyes are a bit tired and I haven't looked at the code to see if this is correct, or if it should be [len] and the mmalloc call should be len + 1. If anyone can discern the correct way to do it, please check it in (sorry, I've got to take a break from the monitor now!) steven On 11/8/06, jpff@cs.bath.ac.uk wrote: > Have you tried running with electricfence or one of the alternative malloc > libraries? Sounds like free being called on something already free. > > Valgrind? > > > > ------------------------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net