Skip to content
New issue

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

一个潜在的“Use of Expired File Descriptor”错误 #1857

Open
zql-gif opened this issue Nov 18, 2024 · 1 comment
Open

一个潜在的“Use of Expired File Descriptor”错误 #1857

zql-gif opened this issue Nov 18, 2024 · 1 comment

Comments

@zql-gif
Copy link

zql-gif commented Nov 18, 2024

我在项目中发现了一个潜在的“Use of Expired File Descriptor”错误,想在此提醒您,看看是否对您有帮助。该错误发生在产品在文件描述符(file descriptor)被关闭后,仍然使用或访问该文件描述符(file descriptor)。您能帮忙检查一下吗?感谢您的努力和耐心!

错误描述:
这个错误位于文件 src/tlog.c 中,涉及名为 _tlog_close_all_fd 的函数。具体代码流程如下:

1.在名为“_tlog_close_all_fd”的函数中,第 1055 行代码打开了文件 /proc/self/fd/,并将文件描述符分配给变量 dir_fd
2.在名为“_tlog_close_all_fd”的函数中,位于第 1083 行,文件描述符 dir_fd 被作为第一个参数传递给 close 函数进行关闭。
3.在名为“_tlog_close_all_fd”的函数中,位于第 1092 行,在“errout”分支中,尝试关闭已经关闭或在步骤 3 中未能成功打开的文件描述符 dir_fd
图片1
QQ20241115-233104
图片3

@pymumu
Copy link
Owner

pymumu commented Nov 18, 2024

d43df0f
修改了一下。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants