[C++-sig] Re: Segfault when calling python method from C++

David Abrahams dave at boost-consulting.com
Sat Jul 19 14:57:54 CEST 2003


Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:

> David Abrahams wrote:
>
>>Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:
>>
>>  
>>>I'm still looking for more precise information, but I still have
>>>absolutely no clue abour what is going on ...
>>>    
>>
>>Please post a small reproducible test case.
>
> Ok, I did find the problem and it was on my side. 

Works every time <wink>

> My main problem was to locate it because it was within C++ code
> called by python code called by C++ code called by python code ...
> and I'm absolutely not used to debug such multi-language system ! If
> you want to know, the problem was in the class wrapping the
> cell_descriptor ...
>
> By the way, I've made some tools to export my classes, where can I
> submit them ? Here ? I have come classes using Qt and POSIX pipes to
> embed python in a C++ environment, some tools to solve Qt non-thread
> safe problems and templates to export STL containers (not all but most
> ...).

You can post them here.  After we discuss and get comfortable with
your approach, the first things I'll probably ask you for are tests
for the Boost.Python test suite and HTML documentation pages.

Regards,
-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list