#3 segfault in multi-threaded

open
None
5
2012-10-05
2009-10-08
ygrek
No

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.

Discussion

  • ygrek

    ygrek - 2009-10-08
     
  • ygrek

    ygrek - 2009-10-08
     
  • ygrek

    ygrek - 2009-10-08

    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.

     
  • ygrek

    ygrek - 2009-10-13

    apply the same fix to all callbacks

     
  • ygrek

    ygrek - 2009-10-13

    callback.diff applies the same fix to all callbacks. Not tested.

     
  • ygrek

    ygrek - 2009-10-14

    Fixed some other bugs and added curl multi wrappers. Git repo at http://repo.or.cz/w/ocurl.git

     
  • Lars Nilsson

    Lars Nilsson - 2009-10-17

    Thank you very much for the bug report and the patch. I have committed your changes in callback.diff.

     
  • Lars Nilsson

    Lars Nilsson - 2010-03-27

    Thank you very much once again. I have hopefully fixed all the issues you identified in your patches.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks