Fix crash that invalid func ptr when dso has dlclosed
Use atexit to register some callback from dso, but there is no
unregister interface. After this dso closed, this callback in
atexit callback chain is invalidate. This workround will save
the dso that the callback come from, then when dso closed, the
relative callbacks would cleared.
Issue: #I6UEZQ
Test:register atexit cb, then dlclose this dso
Signed-off-by: Nhhj <huanghuijin@huawei.com>
Change-Id: I0dfc15366dd51bbe677b9700131fbaf57622499c
Showing
想要评论请 注册 或 登录