ChinaUnix.net
相关文章推荐:

valgrind 使用

valgrind --tool=memcheck --leak-check=full xxx(进程名) top 观察该进程的内存总是13m, 这总现象如何解释? ps: 直接启动该demon进程后,随着时间增长,该进程内存使用不断上涨。

by doofy - C/C++ - 2009-01-19 16:21:38 阅读(1484) 回复(0)

相关讨论

请问 如何用valgrind 检查后台服务进程的内存使用情况? 谢谢!

by lc1999 - C/C++ - 2011-04-07 16:00:15 阅读(7134) 回复(6)

有个比较诡异的现象,一段代码,老很快就core了,但是加了valgrind启动,运行了很久都不core。 我对valgrind不熟悉,大家有遇到类似的现象吗?

by orclover - C/C++ - 2008-11-13 10:54:23 阅读(1714) 回复(3)

有时候运行valgrind会产生vgcore.pidxxxx文件 这种文件怎样去调试 用gdb调试普通core的办法不大行 打印不出调用栈,定位不了错误信息

by Jass - C/C++ - 2008-01-23 15:44:35 阅读(6053) 回复(5)

[code]#include #include void *thread_1(void *argc) { pthread_self(); } int main() { pthread_t tid; pthread_create(&tid , NULL , thread_1 , NULL); } ~ ~ ~[/code] 运行valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./test [code]ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 21 from 1) ==10237== malloc/free: in use at exit: 144 bytes in 1 b...

by ruchong - C/C++ - 2007-01-09 17:36:15 阅读(2548) 回复(5)

我用 valgrind --tool=memcheck --leak-check=yes --show-reachable=yes ./server 运行程序 输出 ==26420== Memcheck, a memory error detector. ==26420== Copyright (C) 2002-2006, and GNU GPL'd, by Julian Seward et al. ==26420== Using LibVEX rev 1606, a library for dynamic binary translation. ==26420== Copyright (C) 2004-2006, and GNU GPL'd, by OpenWorks LLP. ==26420== Using valgrind-3.2.0, a dynamic binar...

by ruchong - C/C++ - 2007-01-09 17:11:27 阅读(1013) 回复(1)

错误提示如下, ==26995== Conditional jump or move depends on uninitialised value(s) ==26995== at 0x426E965: mempcpy (in /lib/tls/libc-2.3.6.so) ==26995== by 0x4261950: _IO_file_xsputn (in /lib/tls/libc-2.3.6.so) ==26995== by 0x423DFEE: vfprintf (in /lib/tls/libc-2.3.6.so) ==26995== by 0x42463C1: fprintf (in /lib/tls/libc-2.3.6.so) ==26995== by 0x8048D4F: main (online_time.c:71) ==2...

by 猪知猪之道 - C/C++ - 2008-01-17 17:52:04 阅读(1154) 回复(0)

我的系统是红帽企业 Linux ES 4, 用whereis命令发现系统已内置了valgrind, 但版本是v3.2.0, 现在想升级到v3.2.3 (已经下载了 valgrind-3.2.3.tar.bz2 包), 怎么做? 直接安装就可以么?

by pzz68 - C/C++ - 2007-03-14 21:27:38 阅读(1252) 回复(1)

configure: error: /bin/sh ./config.sub make failed 就失败了。 晕啊!哪位兄弟知道的,怎么解决。

by bcb_hxj - C/C++ - 2006-03-22 21:15:01 阅读(1963) 回复(1)

valgrind检查内存泄漏, 如下: 2,448 bytes in 17 blocks are possibly lost in loss record 34 of 37 ==12744== at 0x4023492: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==12744== by 0x4010D38: (within /lib/ld-2.8.so) ==12744== by 0x4010DFB: _dl_allocate_tls (in /lib/ld-2.8.so) ==12744== by 0x40409D9: pthread_create@@GLIBC_2.1 (in /lib/libpthread-2.8.so) ==12744== by 0...

by ruchong - C/C++ - 2009-06-09 14:36:50 阅读(2699) 回复(3)