瓦尔格林德:注意到但未处理的国际奥克特尔;是否有必要处理以及如何找到?
Valgrind: noted but unhandled ioctl; Is it necessary to handle and how to find?
我有一个大型应用程序,我正在检查内存泄漏。我正在使用带有选项的瓦尔格林德--leak-check=yes --track-origins=yes
.警告示例:
==2173== Warning: noted but unhandled ioctl 0xc410 with no size/direction hints.
==2173== This could cause spurious value errors to appear.
==2173== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==2173== Warning: noted but unhandled ioctl 0xc400 with no size/direction hints.
==2173== This could cause spurious value errors to appear.
==2173== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==2173== Warning: noted but unhandled ioctl 0xc40d with no size/direction hints.
==2173== This could cause spurious value errors to appear.
==2173== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==2173== Warning: noted but unhandled ioctl 0xc40c with no size/direction hints.
==2173== This could cause spurious value errors to appear.
==2173== See README_MISSING_SYSCALL_OR_IOCTL for guidance on writing a proper wrapper.
==2173== Thread 3 VCHIQ completio:
==2173== Use of uninitialised value of size 4
==2173== at 0x7E1E04C: completion_thread (in /opt/vc/lib/libvchiq_arm.so)
==2173== Uninitialised value was created by a stack allocation
==2173== at 0x7E1DF98: completion_thread (in /opt/vc/lib/libvchiq_arm.so)
我想知道我是否需要处理 ioctl 调用。我无法阅读官方文档,但此链接没有奇怪的字符。似乎未处理的 ioctl 指的是可以更改内存的 Linux 系统调用。但似乎我不应该担心这些,因为我可以假设 Linux(尽管如果这很重要,我使用的是 Raspberry Pi(正在正确处理内存。
除非它说我的记忆可能会被移动,然后瓦尔格林德就会失去它的踪迹。如果是这种情况,那么处理它是有意义的。但是,如果我需要处理它,那么我怎么知道它指的是哪些功能。显示的消息不涉及任何函数。我可以参考文档来编写包装器函数,但我是否只需要找到我使用某些系统函数并编写包装器的每个实例?
网站的问题应该得到修复。
对没有大小/方向提示的 ioctls 的检查也已修改,现在应该不那么嘈杂。
相关文章:
- 是否可以在c++中处理字符串流中的各个元素
- 是否可以通过每次在内存中仅保存一个平铺来处理完整的平铺 tiff 图像?
- 如何判断SSL_read是否已经接收并处理了来自单个消息的所有记录
- GTK C++:找不到信号处理程序 您是否使用 -rdynamic 进行了编译?
- 某些 boost::asio 异步函数是否将处理程序连接到操作,以便处理程序被触发一次?
- clang++ 是否以更轻松的方式处理系统标头?
- 使用预处理指令检查是否包含标头?
- 预处理的 C/C++ 文件是否特定于计算机?
- 瓦尔格林德:注意到但未处理的国际奥克特尔;是否有必要处理以及如何找到?
- 在 C++17 中,是否未定义使用无锁原子学保护从信号处理程序传递的数据?
- 是否有任何内置的哈希图函数来处理 c++ 中的值输入?
- 媒体基金会:WavSink以比实时消耗率更快的速度处理音频-是否可以实时限制后台处理
- 使用std::tie进行类似golang的错误处理,同时返回结果,是否有缺点?(C++11)
- grpcc++异步服务器示例,在处理状态下是否需要互斥
- 是否有可以处理方法调用依赖关系的设计模式?
- 是否有一种设计模式或面向对象的基本原则来处理这种共享资源的情况?
- 即使在多任务处理时,添加用户时间 + 系统时间(来自 shell 的时间命令)是否是一种可靠的措施?
- 是否正确处理了此代码异常?
- 是否可以在QT GUI应用程序中处理事件时播放加载动画指示器?
- 在 CLI 中转换日期时间time_t错误处理C++是否安全