[C++-sig] boost::python std::vector< std::string > crash

John Reid j.reid at mail.cryst.bbk.ac.uk
Thu Jun 22 19:12:29 CEST 2006



John Reid wrote:
> Joel de Guzman wrote:
> 
>>[snips]
>>
>>That's odd. I can't reproduce your results. To be sure, I added
>>your test in libs/python/test/vector_indexing_suite.cpp/py.
>>I'm getting no crash. Please check out the test suite and run it.
>>
>>Regards,
> 
> 

I've investigated further. I wasn't aware of the correct way to run the 
python tests. Now I've recompiled a clean version of boost cvs_head 
everything works ok if I run the tests using 'bjam -sPYTHON_TEST_ARGS= 
test' in the 'boost\libs\python\test' directory.

What might be relevant is that if I run 'bjam' with no arguments, I can 
generate 'vector_indexing_suite_ext.pyd' in the 
'boost\bin\boost\libs\python\test\vector_indexing_suite_ext.pyd\vc-8_0\debug\threading-multi'
directory. When I manually set PYTHONPATH to this directory and run 
'python vector_indexing_suite.py' I get the crash as before. Is this 
expected, relevant and/or interesting? I would have thought this would 
just have run that particular test.

Any help appreciated as always. Thanks,
John.




More information about the Cplusplus-sig mailing list