wangzhi16
wangzhi16
@anchao hi, here are two patches that can reproduce the problem mentioned above. https://github.com/apache/nuttx/compare/master...wangzhi16:nuttx:master https://github.com/apache/nuttx-apps/compare/master...wangzhi16:nuttx-apps:dev Since this is an intermittent issue, blocking during the free process will free up the...
thread_parent ---------------------------------thread_child detach() group_leave() nxsig_cleanup() free()---->block! ---------------------------------------------------group_leave() ---------------------------------------------------check no member in group, release thread_parent. ---------------------------------------------------exit() release_tcb()--->double free!!!
@anchao hi, I reproduce this issue on upstream. I guess you might not have CONFIG_SCHED_HAVE_PARENT or CONFIG_CANCELLATION_POINTS enabled. Configuration that needs to be opened: ``` CONFIG_SCHED_HAVE_PARENT=y CONFIG_CANCELLATION_POINTS=y ``` test on...