Opened 6 years ago

Last modified 6 years ago

#12168 new Bugs

Issue with shared_ptr on boost python

Reported by: praveenkumar076@… Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.58.0 Severity: Problem
Keywords: Cc:

Description

Hi,

I have a struct A defined in C++ and exposed to python as shared_ptr. There are two global vectors of shared_ptrs of A. I 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.

I have attached both C++ and python file to recreate this issue.

Thanks Praveen

Attachments (2)

TestShared.cpp (782 bytes ) - added by Praveen <praveenkumar076@…> 6 years ago.
C++ File
TestShared.py (89 bytes ) - added by Praveen <praveenkumar076@…> 6 years ago.

Download all attachments as: .zip

Change History (3)

by Praveen <praveenkumar076@…>, 6 years ago

Attachment: TestShared.cpp added

C++ File

by Praveen <praveenkumar076@…>, 6 years ago

Attachment: TestShared.py added

comment:1 by Peter Dimov, 6 years ago

Praveen,

Could you please post this to

https://github.com/boostorg/python/issues

which now seems to be the preferred channel for reporting Boost.Python issues?

Note: See TracTickets for help on using tickets.