Random memory conflict when smart pointer is assigned to smart pointer

I use smart pointers when transferring data between different classes, but there is a memory conflict when assigning values, and this error is random.

I suspect there is a buffer override somewhere in the code. Try using valgrind to track that down.

thank you ,Because I generated a dangling pointer by mistake