#998 Thread and exception segfault

closed-duplicate
nobody
python (259)
5
2009-07-30
2009-02-26
Solal Jacob
No

Segfault sometime happen in exceptions when I use swig with python c++ and -threads.
I fix this enclosing %typemap(throws,noblock=1) SWIGTYPE with SWIG_PYTHON_THREAD_BEGIN_BLOCK/END_BLOCK in typemaps.swg exception handling.

Discussion

  • Olly Betts

    Olly Betts - 2009-07-30

    I don't see any such typemap in Lib/typemaps/typemaps.swg (the only typemaps.swg) or even in Lib/python/typemaps.i.

    Perhaps the code has changed, but you don't say what version you were using so I can't check that version to see.

    Can you supply a patch (generate it with diff -u or svn diff) showing the proposed change?

    If possible, a testcase which demonstrates the problem is very useful too.

     
  • Olly Betts

    Olly Betts - 2009-07-30
    • status: open --> closed-duplicate
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks