Python crash on deleting shared_ptrs stored in a C++ vector
未關閉
- 主要語言
- C++
- 星號
- 537
- 分支
- 223
- 平均合併
- 11 小時 22 分鐘
- 30 天內合併 PR
- 2
描述
Hi,
There is a struct A defined in C++ and exposed to python as shared_ptr.
There are two global vectors of shared_ptrs of A.
Create and add a object of type A from python to C++ in the two vectors
Clear one vector
Then when the python exits the program crashes with access violation
error, while deleting the shared_ptrs
[TestShared.zip](https://github.com/boostorg/python/files/241747/TestShared.zip)
Environment: Boost 1.58.0, compiler VS 2012
I have attached both C++ and python file to recreate this issue.
Thanks
貢獻指南
這個儲存庫沒有索引到貢獻指南
評估
這個 Issue 還沒有評估資料。