The code from #2433039 (https://sourceforge.net/tracker/?func=detail&aid=2433039&group_id=72276&atid=533973) running in multiple threads results in segfaults or lockups. See attached file.
The problem appears to be in writeFunction callback modifying caml_local_roots without acquiring runtime lock first. writeFunction.diff fixes this problem. Most probably other callbacks need the same fix as well.
apply the same fix to all callbacks
callback.diff applies the same fix to all callbacks. Not tested.
Fixed some other bugs and added curl multi wrappers. Git repo at http://repo.or.cz/w/ocurl.git
Thank you very much for the bug report and the patch. I have committed your changes in callback.diff.
Some more subtle crash bugs found :
(the above two should be applied together cause fc2449 is partially broken)
Thank you very much once again. I have hopefully fixed all the issues you identified in your patches.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.