当前位置: 技术问答>linux和unix
valgrind运行程序core dump问题
来源: 互联网 发布时间:2017-04-02
本文导语: 我想用valgrind来检查一下我们程序的内存泄漏问题,可通过valgrind运行程序就出core dump,但是core的地方是函数入口处,不清楚问什么会core在这里? 是valgrind的设置有问题吗? 测试程序自己运行没问题!!! 报出如下...
我想用valgrind来检查一下我们程序的内存泄漏问题,可通过valgrind运行程序就出core dump,但是core的地方是函数入口处,不清楚问什么会core在这里?
是valgrind的设置有问题吗?
测试程序自己运行没问题!!!
报出如下信息:
==20164== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==20164== Access not within mapped region at address 0xBEC3FA18
==20164== at 0x8066ABE: load_SYS (if_config.c:3479)
==20164== by 0x806A867: load_config (if_config.c:4619)
==20164== by 0x805D4F4: main (if_main.c:10869)
==20164== If you believe this happened as a result of a stack
==20164== overflow in your program's main thread (unlikely but
==20164== possible), you can try to increase the size of the
==20164== main thread stack using the --main-stacksize= flag.
==20164== The main thread stack size used in this run was 8388608.
我加上这个参数还同样core dump
请教一下,哪位高人知道是怎么回事,请指点一二
困扰我一个礼拜了!!!!!!
是valgrind的设置有问题吗?
测试程序自己运行没问题!!!
报出如下信息:
==20164== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==20164== Access not within mapped region at address 0xBEC3FA18
==20164== at 0x8066ABE: load_SYS (if_config.c:3479)
==20164== by 0x806A867: load_config (if_config.c:4619)
==20164== by 0x805D4F4: main (if_main.c:10869)
==20164== If you believe this happened as a result of a stack
==20164== overflow in your program's main thread (unlikely but
==20164== possible), you can try to increase the size of the
==20164== main thread stack using the --main-stacksize= flag.
==20164== The main thread stack size used in this run was 8388608.
我加上这个参数还同样core dump
请教一下,哪位高人知道是怎么回事,请指点一二
困扰我一个礼拜了!!!!!!
|
栈上数组太大了哥,