Author boytsovea
Recipients boytsovea
Date 2020-02-27.15:25:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1582817113.42.0.194070983198.issue39776@roundup.psfhosted.org>
In-reply-to
Content
Hello everybody!

We are using Python 3.7 running at CentOS 7 x64. Python is used as a library to create dynamic extensions for our app server. 

Some time ago we began to experience crashes in decimal module in some heavy-multithreaded scenarios. After some testing and debugging I was able to reproduce it without our own code using only pybind11 library to simplify embedding (in real app we are using boost.python).


I've built python 3.8 with clang 7 and address sanitizer enabled and got error "use-after-free" with some additional data.

Please find attached C++ source file, python module and ASAN output. Is it really a bug (most probably - data race) or there is something wrong with such embedding scenario?
History
Date User Action Args
2020-02-27 15:25:13boytsoveasetrecipients: + boytsovea
2020-02-27 15:25:13boytsoveasetmessageid: <1582817113.42.0.194070983198.issue39776@roundup.psfhosted.org>
2020-02-27 15:25:13boytsovealinkissue39776 messages
2020-02-27 15:25:12boytsoveacreate