Modify

Opened 20 months ago

Last modified 20 months 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@…> 20 months ago.
C++ File
TestShared.py (89 bytes) - added by Praveen <praveenkumar076@…> 20 months ago.

Download all attachments as: .zip

Change History (3)

Changed 20 months ago by Praveen <praveenkumar076@…>

Attachment: TestShared.cpp added

C++ File

Changed 20 months ago by Praveen <praveenkumar076@…>

Attachment: TestShared.py added

comment:1 Changed 20 months ago by Peter Dimov

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?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Peter Dimov.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.