You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am not sure whether this is ndk STL's bug or my bug.
but i think that i don't need to consider null pointer when i use shared_ptr, shared_ptr's destructor should handle nullptr by it self.
please help me if any one knows what happend in this case.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
i am not sure whether this is ndk STL's bug or my bug.
but i think that i don't need to consider null pointer when i use shared_ptr, shared_ptr's destructor should handle nullptr by it self.
please help me if any one knows what happend in this case.
stack:
#00 pc 00000000000c68a0 /my_lib.so __aarch64_ldadd8_acq_rel
#1 pc 0000000000089964 /my_lib.so (MyClass1::~MyClass1()+92) long std::__ndk1::__libcpp_atomic_refcount_decrement(long&), /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3450
(inlined by) std::__ndk1::__shared_count::__release_shared(), /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3505
(inlined by) std::__ndk1::__shared_weak_count::__release_shared(), /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:3548
(inlined by) std::__ndk1::shared_ptr::~shared_ptr(), /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:4248
(inlined by) MyClass1::~MyClass1(), /my_class.cc:80
#2 pc 0000000000080690 /my_lib.so (MyClass3::RunLoop::Run()+2580) std::__ndk1::default_delete::operator()(MyClass1*) const, /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2427
(inlined by) std::__ndk1::unique_ptr<MyClass1, std::__ndk1::default_delete >::reset(MyClass1*), /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2682
(inlined by) std::__ndk1::unique_ptr<MyClass1, std::__ndk1::default_delete >::~unique_ptr(), /ndk/25.2.9519653/toolchains/llvm/prebuilt/linux-x86_64/sysroot/usr/include/c++/v1/memory:2636
Fault Address: 000000000000000a
Beta Was this translation helpful? Give feedback.
All reactions