- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
关闭。这个问题需要debugging details .它目前不接受答案。
想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。
9 个月前关闭。
Improve this question
我有一个非常复杂的 OpenGL 应用程序,它运行在带有 ATI 图形芯片的嵌入式设备上,运行 RT linux。应用程序的部分通过单元测试进行测试。它们都通过了,并且没有报告内存泄漏或无效访问。但是,该应用程序有一些怪癖,并且有些事情表现不佳。
今天我尝试使用 valgrind 运行这个应用程序,在初始化期间我看到一些无效的内存读/写,所有这些都与 ATI 驱动程序有关:
==14347== Invalid read of size 8
==14347== at 0x67C3868: ??? (in /usr/lib/catalyst/libGL.so.1.2)
==14347== Address 0x8f6b398 is 208 bytes inside a block of size 212 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0x6762701: ??? (in /usr/lib/catalyst/libGL.so.1.2)
==14347== by 0x8F6B05F: ???
==14347==
==14347== Syscall param ioctl(generic) points to uninitialised byte(s)
==14347== at 0x8A57B9: ioctl (in /lib/libc-2.14.1.so)
==14347== by 0x6A0E345: ukiCreateContext (in /usr/lib/catalyst/libatiuki.so.1.0)
==14347== by 0xA9D4570: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xbeceacb4 is on thread 1's stack
==14347==
==14347== Conditional jump or move depends on uninitialised value(s)
==14347== at 0xAA46C42: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0xAA46285: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0xAA46484: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0xAA36F32: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAA7B4: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2000 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid read of size 4
==14347== at 0xAAAA95D: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77d2000 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA8F3: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2000 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA8F7: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2010 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA8FC: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2020 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA901: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2030 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA91A: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2040 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA91F: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2050 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA924: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2060 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAA929: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb77c2070 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC2D1: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb7163000 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC584: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb7163010 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC588: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb7163020 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0DD: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb7163550 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0E3: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb7163554 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0E9: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb7163558 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0EF: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb716355c is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0C5: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70e9300 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0CB: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70e9304 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0D1: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70e9308 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0D7: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70e930c is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC558: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb870b78 is 3,160 bytes inside a block of size 3,164 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA835931: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC418: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb897c68 is 3,160 bytes inside a block of size 3,164 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA9A33CE: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACAE9: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1600 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACAF3: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1610 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACAFD: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1620 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACB07: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1630 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACB11: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1640 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC88F: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1800 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC893: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1810 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC8A2: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1820 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC8A7: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1830 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC8B6: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1840 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC8BB: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1850 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC8D0: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1860 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC8D5: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1870 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0AD: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1c00 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0B3: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1c04 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0B9: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1c08 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0BF: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1c0c is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC558: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x4F: ???
==14347== Address 0x8aa8cb8 is 0 bytes after a block of size 80 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA9A33CE: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x3F: ???
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC09B: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1400 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0A1: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1404 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 4
==14347== at 0xAAAC0A7: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1408 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACADF: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1000 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC418: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x63010100: ???
==14347== Address 0x89c6d58 is 0 bytes after a block of size 224 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA9A33CE: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC508: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x63010100: ???
==14347== Address 0xbe44b08 is 0 bytes after a block of size 384 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA9A33CE: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAACAD5: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1100 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC698: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xbefdb08 is 3,240 bytes inside a block of size 3,244 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA9A33CE: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Syscall param ioctl(generic) points to uninitialised byte(s)
==14347== at 0x8A57B9: ioctl (in /lib/libc-2.14.1.so)
==14347== by 0xA9DCE45: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x8A1AA8F: ???
==14347== Address 0xbecf8984 is on thread 1's stack
==14347==
==14347== Syscall param ioctl(generic) points to uninitialised byte(s)
==14347== at 0x8A57B9: ioctl (in /lib/libc-2.14.1.so)
==14347== by 0xA9DD354: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xbecf89f0 is on thread 1's stack
==14347==
==14347== Invalid read of size 8
==14347== at 0xAAAC558: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x63010100: ???
==14347== Address 0xc7c1288 is 0 bytes after a block of size 3,568 alloc'd
==14347== at 0x400AE44: malloc (vg_replace_malloc.c:270)
==14347== by 0xA9A33CE: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== by 0x63010100: ???
==14347==
==14347== Invalid write of size 4
==14347== at 0x9BDC84A: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb70c1a00 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Conditional jump or move depends on uninitialised value(s)
==14347== at 0x938F092: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Conditional jump or move depends on uninitialised value(s)
==14347== at 0x93B9F10: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC764: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb6ec2010 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC768: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb6ec2020 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Conditional jump or move depends on uninitialised value(s)
==14347== at 0x9F83794: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC4E4: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb6ec2210 is not stack'd, malloc'd or (recently) free'd
==14347==
==14347== Invalid write of size 8
==14347== at 0xAAAC4E8: ??? (in /usr/lib/dri/fglrx_dri.so)
==14347== Address 0xb6ec2220 is not stack'd, malloc'd or (recently) free'd
==14347==
最佳答案
Valgrind 可能会产生误报,尤其是在读取时。由于填充字节,这通常在将结构复制为块内存时发生,例如使用 memcopy。
如果读取在分配的块内,这通常没问题。从释放的内存中读取不是。
但是,无效的写入通常是一个问题。
在这种情况下,因为这是一个驱动程序,我怀疑这些与直接内存访问/内存映射 I/O 相关,因此“未堆栈”、“分配”或“(最近)释放”等是好的。
关于c++ - Valgrind 在 ATI 上运行 opengl 程序时报告很多错误 - 我应该担心吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16162833/
好的,所以我想从批处理文件运行我的整个工作环境... 我想要实现什么...... 打开新的 powershell,打开我的 API 文件夹并从该文件夹运行 VS Code 编辑器(cd c:\xy;
我正在查看 Cocoa Controls 上的示例并下载了一些演示。我遇到的问题是一些例子,比如 BCTabBarController ,不会在我的设备上构建或启动。当我打开项目时,它看起来很正常,没
我刚刚开始学习 C 语言(擅长 Java 和 Python)。 当编写 C 程序(例如 hello world)时,我在 ubuntu cmd 行上使用 gcc hello.c -o hello 编译
我在 php 脚本从 cron 开始运行到超时后注意到了这个问题,但是当它从命令行手动运行时这不是问题。 (对于 CLI,PHP 默认的 max_execution_time 是 0) 所以我尝试运行
我可以使用命令行运行测试 > ./node_modules/.bin/wdio wdio.conf.js 但是如果我尝试从 IntelliJ 的运行/调试配置运行它,我会遇到各种不同的错误。 Fea
Error occurred during initialization of VM. Could not reserve enough space for object heap. Error: C
将 Anaconda 安装到 C:\ 后,我无法打开 jupyter 笔记本。无论是在带有 jupyter notebook 的 Anaconda Prompt 中还是在导航器中。我就是无法让它工作。
我遇到一个问题,如果我双击我的脚本 (.py),或者使用 IDLE 打开它,它将正确编译并运行。但是,如果我尝试在 Windows 命令行中运行脚本,请使用 C:\> "C:\Software_Dev
情况 我正在使用 mysql 数据库。查询从 phpmyadmin 和 postman 运行 但是当我从 android 发送请求时(它返回零行) 我已经记录了从 android 发送的电子邮件是正确
所以这个有点奇怪 - 为什么从 Java 运行 .exe 文件会给出不同的输出而不是直接运行 .exe。 当 java 在下面的行执行时,它会调用我构建的可与 3CX 电话系统配合使用的 .exe 文
这行代码 Environment.Is64BitProcess 当我的应用单独运行时评估为真。 但是当它在我的 Visual Studio 单元测试中运行时,相同的表达式的计算结果为 false。 我
关闭。这个问题是opinion-based .它目前不接受答案。 想要改进这个问题? 更新问题,以便 editing this post 可以用事实和引用来回答它. 关闭 8 年前。 Improve
我写了一个使用 libpq 连接到 PostgreSQL 数据库的演示。 我尝试通过包含将 C 文件连接到 PostgreSQL #include 在我将路径添加到系统变量 I:\Program F
如何从 Jenkins 运行 Android 模拟器来运行我的测试?当我在 Execiute Windows bath 命令中写入时,运行模拟器的命令: emulator -avd Tester 然后
我已经配置好东西,这样我就可以使用 ssl 登录和访问在 nginx 上运行的 errbit 我的问题是我不知道如何设置我的 Rails 应用程序的 errbit.rb 以便我可以运行测试 nginx
我编写了 flutter 应用程序,我通过 xcode 打开了 ios 部分并且应用程序正在运行,但是当我通过 flutter build ios 通过 vscode 运行应用程序时,我得到了这个错误
我有一个简短的 python 脚本,它使用日志记录模块和 configparser 模块。我在Win7下使用PyCharm 2.7.1和Python 3.3。 当我使用 PyCharm 运行我的脚本时
我在这里遇到了一些难题。 我的开发箱是 64 位的,windows 7。我所有的项目都编译为“任何 CPU”。该项目引用了 64 位版本的第 3 方软件 当我运行不使用任何 Web 引用的单元测试时,
当我注意到以下问题时,我正在做一些 C++ 练习。给定的代码将不会在 Visual Studio 2013 或 Qt Creator 5.4.1 中运行/编译 报错: invalid types 'd
假设我有一个 easteregg.py 文件: from airflow import DAG from dateutil import parser from datetime import tim
我是一名优秀的程序员,十分优秀!