调试期间的SIGTRAP [英] SIGTRAP during debugging

查看:148
本文介绍了调试期间的SIGTRAP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我得到了一个奇怪的问题......我的编程没有顺利运行并且挂起正常运行但在调试模式下运行顺畅...不知如何...


另外它发送SIGTRAP错误...


警告:HEAP

警告:堆积在00032550处修改为00032559,请求大小超过1


可以说明这个......


shoudl我在这里发布我的代码?? ....

解决方案


im gettn一个奇怪的问题...我的编程没有顺利运行并且挂起正常运行但在调试模式下运行顺利...不知道如何...

警告:HEAP

警告:堆积在00032550修改为00032559过去要求的尺寸为1


可以说明这个......


shoudl我在这里发布我的代码?? ....



请不要;这是马车,我不想看到错误的代码。在您的调试器中逐步运行您的代码,并在显示该消息时注意。

在该特定行/语句中,您的程序已损坏堆内存
通过访问/更改不属于该进程的内存来
。在其他的

字里:你的某个地方有一个迷路指针。让调试器做坏事。


亲切的问候,


Jos


但是我知道理解为什么只有在调试模式下它才能正常工作但不能正常模式....



但我明白为什么只能在调试模式下工作它的工作正常,但不是正常模式....



您的调试器会为您检查堆。堆是分配给您的程序分配动态内存的

进程的内存。

的内存属于堆但不是由你的程序分配的内存不应该由你的程序访问

。再看看那个调试器警告:

展开 | 选择 | Wrap | 行号


i m gettn a weird problem...my prog doesnt run smoothly and hangs whn run normal but it RUNS smoothly in debugnn mode...dunno how...

additionally it sends a SIGTRAP error...

warning:HEAP
warning:Heap block at 00032550 modified at 00032559 past requested size of 1

can sumone plain this...

shoudl i post my code here??....

解决方案

i m gettn a weird problem...my prog doesnt run smoothly and hangs whn run normal but it RUNS smoothly in debugnn mode...dunno how...

additionally it sends a SIGTRAP error...

warning:HEAP
warning:Heap block at 00032550 modified at 00032559 past requested size of 1

can sumone plain this...

shoudl i post my code here??....

Please don''t; it''s buggy and I don''t want to see buggy code. Run your code in
your debugger step by step and pay attention when that message is displayed.
At that particular line/statement your program had corrupted heap memory
by accessing/changing memory that doesn''t belong to the process. In other
words: you''ve got a stray pointer somewhere. Let the debugger do its dirty deeds.

kind regards,

Jos


but i dnt understand why only in debuggn mode its works fine but not in normal mode....


but i dnt understand why only in debuggn mode its works fine but not in normal mode....

Your debugger checks your heap for you. A heap is memory assigned to your
process from which your program allocates dynamic memory. Memory that
belongs to the heap but isn''t allocated by your program should not be accessed
by your program. Have a look again at that debugger warning:

Expand|Select|Wrap|Line Numbers


这篇关于调试期间的SIGTRAP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆