New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
csound memory issue on OSX #506
Comments
|
copy_string_value seemed to be working as expected. I've discovered the issue: line 117 uses '=' to assign a string variable ( |
I'm also seeing some apparently related crashes on iOS with the code from the current devel branch. The address sanitizer in Xcode 7 picked up some invalid uses of |
Still having issues with this myself. My attempts to make a demonstrative csd which is untangled from local file dependancies has proven difficult. Will keep trying.. |
This patch helped me with some of the crashes I have been experiencing, some unsafe dealings with memory in the MIDI code, I suspect this might be the case in other areas. You may want to check it out. https://github.com/audiokit/csound/commit/20f2547dc2ee74cbd175268d268a09521f13aba7 |
@megastep can you submit your patch as a pull request ? It will be more easily dealt with |
@vlazzarini I suppose, this branch has a lot of other commits I don't really want to bundle with this, but I'll do it from another branch. |
Thanks, that's helpful |
I’ve removed the file dependancies and, with this csd, I am getting the same valgrind errors. It seems to be a strange confluence of factors causing this, dependant on both the Udo and the strings. Perhaps it has to do with string handling in useropcd2? Really a shot in the dark though. ==23949== Invalid write of size 8 |
This may or may not help with this bug, but I just made a bunch of weird crashes go away simply by reverting this commit: 24b7e94 |
Thanks Stéphane. I should have mentioned: I’ve cloned into origin/release/6.05 to avoid any issues in the dev branch. So my errors in valgrind are coming from the 6.05 release version. Best, On 6 Aug 2015, at 09:52, Stéphane Peter notifications@github.com wrote:
|
Hi Ben, could you check this now with the latest sources to see if the string fixes that were committed yesterday help your problem in any way? |
Seems like this has taken care of my problems, thanks Victor & John. Will report back if I discover any additional issues. |
OK, I'll close this issue |
Hi all,
I’m trying to chase down a memory issue with the latest csound (6.05) on OSX built from git. I frequently get malloc errors when running this csd file: http://pastebin.com/Wndeh5Qf
Note that sometimes compilation completes successfully, other times it exits with an error, at other times the process hangs. Here is the shell output of this csd with the malloc error message: http://pastebin.com/n05Ycywj
And here is the output of valgrind using this csd on OSX 10.9.5: http://pastebin.com/fMBjUrXP
I cannot seem to reproduce the malloc fatal error when using valgrind, but it does consistently report some issues, perhaps especially pertinent around line 153.
Sorry that I cannot provide a csd that works independently of my soundfile database — removing/changing path names seems to affect whether or not this error occurs.
Best, Ben
The text was updated successfully, but these errors were encountered: