最方便的虚拟机与WINDOWS之间交换文件方法?
时间:2010-09-09
来源:互联网
我用C写了个程序,但用valgrind检查总是出错。请大家帮我看看吧
(注:Uori是我写的一个class)
==3083== Memcheck, a memory error detector
==3083== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==3083== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==3083== Command: ./grp
==3083==
==3083== Warning: client switching stacks? SP change: 0x7feffffc8 --> 0x7fe6e86c0
==3083== to suppress, use: --max-stackframe=9533704 or greater
==3083== Invalid write of size 8
==3083== at 0x409A51: GRPscheme(Uori***, Uori***, Uori***, Uori***, Uori***, Uori***, Uori***) (grpalgorithm.cpp:3)
==3083== by 0x40F205: main (GRP3d.cpp:101)
==3083== Address 0x7fe6e8738 is on thread 1's stack
==3083==
==3083==
==3083== Process terminating with default action of signal 11 (SIGSEGV)
==3083== Access not within mapped region at address 0x7FE6E8738
==3083== at 0x409A51: GRPscheme(Uori***, Uori***, Uori***, Uori***, Uori***, Uori***, Uori***) (grpalgorithm.cpp:3)
==3083== If you believe this happened as a result of a stack
==3083== overflow in your program's main thread (unlikely but
==3083== possible), you can try to increase the size of the
==3083== main thread stack using the --main-stacksize= flag.
==3083== The main thread stack size used in this run was 8388608.
==3083==
==3083== Process terminating with default action of signal 11 (SIGSEGV)
==3083== Access not within mapped region at address 0x7FE6E86B8
==3083== at 0x4A2369F: _vgnU_freeres (vg_preloaded.c:58)
==3083== If you believe this happened as a result of a stack
==3083== overflow in your program's main thread (unlikely but
==3083== possible), you can try to increase the size of the
==3083== main thread stack using the --main-stacksize= flag.
==3083== The main thread stack size used in this run was 8388608.
==3083==
==3083== HEAP SUMMARY:
==3083== in use at exit: 66,950,576 bytes in 27,349 blocks
==3083== total heap usage: 27,349 allocs, 0 frees, 66,950,576 bytes allocated
==3083==
==3083== LEAK SUMMARY:
==3083== definitely lost: 0 bytes in 0 blocks
==3083== indirectly lost: 0 bytes in 0 blocks
==3083== possibly lost: 0 bytes in 0 blocks
==3083== still reachable: 66,950,576 bytes in 27,349 blocks
==3083== suppressed: 0 bytes in 0 blocks
==3083== Rerun with --leak-check=full to see details of leaked memory
==3083==
==3083== For counts of detected and suppressed errors, rerun with: -v
==3083== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)
段错误
(注:Uori是我写的一个class)
==3083== Memcheck, a memory error detector
==3083== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==3083== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for copyright info
==3083== Command: ./grp
==3083==
==3083== Warning: client switching stacks? SP change: 0x7feffffc8 --> 0x7fe6e86c0
==3083== to suppress, use: --max-stackframe=9533704 or greater
==3083== Invalid write of size 8
==3083== at 0x409A51: GRPscheme(Uori***, Uori***, Uori***, Uori***, Uori***, Uori***, Uori***) (grpalgorithm.cpp:3)
==3083== by 0x40F205: main (GRP3d.cpp:101)
==3083== Address 0x7fe6e8738 is on thread 1's stack
==3083==
==3083==
==3083== Process terminating with default action of signal 11 (SIGSEGV)
==3083== Access not within mapped region at address 0x7FE6E8738
==3083== at 0x409A51: GRPscheme(Uori***, Uori***, Uori***, Uori***, Uori***, Uori***, Uori***) (grpalgorithm.cpp:3)
==3083== If you believe this happened as a result of a stack
==3083== overflow in your program's main thread (unlikely but
==3083== possible), you can try to increase the size of the
==3083== main thread stack using the --main-stacksize= flag.
==3083== The main thread stack size used in this run was 8388608.
==3083==
==3083== Process terminating with default action of signal 11 (SIGSEGV)
==3083== Access not within mapped region at address 0x7FE6E86B8
==3083== at 0x4A2369F: _vgnU_freeres (vg_preloaded.c:58)
==3083== If you believe this happened as a result of a stack
==3083== overflow in your program's main thread (unlikely but
==3083== possible), you can try to increase the size of the
==3083== main thread stack using the --main-stacksize= flag.
==3083== The main thread stack size used in this run was 8388608.
==3083==
==3083== HEAP SUMMARY:
==3083== in use at exit: 66,950,576 bytes in 27,349 blocks
==3083== total heap usage: 27,349 allocs, 0 frees, 66,950,576 bytes allocated
==3083==
==3083== LEAK SUMMARY:
==3083== definitely lost: 0 bytes in 0 blocks
==3083== indirectly lost: 0 bytes in 0 blocks
==3083== possibly lost: 0 bytes in 0 blocks
==3083== still reachable: 66,950,576 bytes in 27,349 blocks
==3083== suppressed: 0 bytes in 0 blocks
==3083== Rerun with --leak-check=full to see details of leaked memory
==3083==
==3083== For counts of detected and suppressed errors, rerun with: -v
==3083== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 4 from 4)
段错误
作者: yzcwestlife 发布时间: 2010-09-09
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28