SPRESENSE commented on issue #11236: URL: https://github.com/apache/nuttx/issues/11236#issuecomment-1820766516
@pussuw Thanks for your investigation. My conditions are: * CONFIG_CANCELLATION_POINTS=n * CONFIG_SCHED_THREAD_LOCAL=n I found that `nxsched_get_stackinfo()` called from `tls_get_info_pid()` returned `-EACCESS`. https://github.com/apache/nuttx/blob/eddd90de7865be7bb67217c9d7a3c68c85f1590b/sched/sched/sched_get_stackinfo.c#L86-L98 This may be caused that the task is created by `task_spawn()` with `open()`. However, when the task was created by `kthread_create()` instead of `task_spawn()`, it was not possible to delete the task from the application with `close()`. It used to work this way of implementation, any advice on how to implement it? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org