什么可以使DLClose()失败?

发布于 2025-02-03 06:36:46 字数 406 浏览 1 评论 0原文

在POSIX(或GNU)系统上,什么可以使 dlclose() 功能失败?

我知道它在重复接近时失败了;并且它在无效的指针论点上表现不佳(在我的系统上违反了细分)。但是还有其他情况可能会失败吗?

编辑:我尝试查看源代码真正弄清楚哪里可以看(dlclose.c显然不是这个地方)。

On a POSIX (or GNU) system, what can make the dlclose() function fail?

I know that it fails on repeat-close; and that it misbehaves on a null pointer argument (got a segmentation violation on my system). But are there other situations it can fail?

Edit: I tried looking at the source code and was kind of stumped - could not really figure out where to look (dlclose.c is not the place apparently).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凡间太子 2025-02-10 06:36:46

实际实现为在这里

查找_DL_SIGNAL_ERROR()的调用 - 有两个。

The actual implementation is here.

Look for calls to _dl_signal_error() -- there are two.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文