local_unwind() 中的 Borland 断言失败
我有一个通信服务器,应该无限期地运行。然而,它有时会出错
断言失败:“Local_unwind() 中的虚假上下文”,文件 xx.cpp,第 2262 行
后面是
程序异常终止
,然后按“确定”会使程序消失。此问题在多台计算机上间歇性发生,并且不易重现。任何指示将不胜感激。
I have a comms server that is supposed to run for an indefinite amount of time. However, it sometimes errors with
Assertion failed: !"bogus context in Local_unwind()", file xx.cpp, line 2262
which is followed by
Abnormal Program Termination
after which pressing ok causes the program to disappear. This problem happens intermittently on several computers and is not easily reproducible. Any pointers would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来程序代码在清理作用域/函数的基于堆栈的变量之前正在破坏堆栈。
Sounds like the program code is corrupting the stack before cleanup of a scope/function's stack-based variables can be performed.
程序中的某些内容称为 longjmp (c) 或执行了 throw 语句 (c++)。 Local_unwind 是 borland 运行时的一个内部部分,它试图清理堆栈。
如果您不控制该程序的源代码,当然,您已将这个问题发布在错误的位置。
Something in your program called longjmp (c) or executed a throw statement (c++). Local_unwind is an internal piece of the borland runtime that is trying to clean up the stack.
If you don't control the source of this program, of course, you've posted this question in the wrong place.