We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
53bd56c
risc-v/K230
GCC
定位到具体位置有两处:
struct dfs_file *file
file->ref_count
close->fd_release->fdt_fd_release
lwp_exit->_clear_child_tid->sys_futex
对于share futex,还有一个疑问,对于没有进程使用的futex似乎没有删除操作?
The text was updated successfully, but these errors were encountered:
share futex 设计时有 lazy 任务定期清理。不过由于 libc 的设计算法,整个系统生命周期中它的 footpirnt 基本上和 tick 形成 O(1) 增长关系。所以这个研发任务定为”必要不紧急“。因为重要任务很多,所以搁置了。如果题主有兴趣可以 PR 补充。
Sorry, something went wrong.
是否可以简单展开说明下?
确实存在内存泄漏
打印执行文件时创建的file指针
打印rt_free的指针
在程序退出时输出的日志中查找file指针,只有一条
关联:#9917
No branches or pull requests
RT-Thread Version
53bd56c
Hardware Type/Architectures
risc-v/K230
Develop Toolchain
GCC
Describe the bug
Other additional context
定位到具体位置有两处:
struct dfs_file *file
结构未释放,原因为elf map时会增加file->ref_count
,导致执行close->fd_release->fdt_fd_release
时file->ref_count
不等于1,未能正常释放lwp_exit->_clear_child_tid->sys_futex
,此处是个share futex,不会被删除对于share futex,还有一个疑问,对于没有进程使用的futex似乎没有删除操作?
The text was updated successfully, but these errors were encountered: