SIGBUS,总线错误。 [英] SIGBUS, Bus error.

查看:1283
本文介绍了SIGBUS,总线错误。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述







我收到以下错误。你能告诉我这个

问题的解决方法及其原因

298


程序收到信号SIGBUS,总线错误。

0x000000080137ae02 in __gnu_cxx :: __ exchange_and_add()
来自/usr/lib/libstdc++.so.5的


(gdb)bt

#0 0x000000080137ae02 in __gnu_cxx :: __ exchange_and_add()

来自/usr/lib/libstdc++.so.5

#1 0x00000000008a3ead in PContainer ::在/ PBaseArray中的~PAbstractArray(

this = 0x7fffffffdbb8)中的
#2 0x000000000044e278:〜/ ...
#3 0x000000000046b947在~PBaseArray中(这= 0x7fffffffdbb8)

at array.h:849

#4 0x00000000004af257 in~PBYTEArray(this = 0x7fffffffdbb8)

at h4504.cxx :155

#5 0x00000000004af86c在〜PASN_OctetString(

this = 0x7fffffffdb90)at h4504.cxx:155

(这= 0x7fffffffda68)at h450pdu.cxx:389

#7 0x 00000000004bae0f在~H225_H323_UserInformation(

this = 0x7fffffffcc40)at h225_1.cxx:8157


谢谢

问候

Mayank Jain



Hi,

I am getting the following error. Can you tell me any solution to this
problem and the reason for this
298

Program received signal SIGBUS, Bus error.
0x000000080137ae02 in __gnu_cxx::__exchange_and_add ()
from /usr/lib/libstdc++.so.5
(gdb) bt
#0 0x000000080137ae02 in __gnu_cxx::__exchange_and_add ()
from /usr/lib/libstdc++.so.5
#1 0x00000000008a3ead in PContainer::Destruct ()
#2 0x000000000044e278 in ~PAbstractArray (
this=0x7fffffffdbb8) at array.h:171
#3 0x000000000046b947 in ~PBaseArray (this=0x7fffffffdbb8)
at array.h:849
#4 0x00000000004af257 in ~PBYTEArray (this=0x7fffffffdbb8)
at h4504.cxx:155
#5 0x00000000004af86c in ~PASN_OctetString (
this=0x7fffffffdb90) at h4504.cxx:155
#6 0x00000000004bb8af in ~H225_H323_UserInformation_user_data
(this=0x7fffffffda68) at h450pdu.cxx:389
#7 0x00000000004bae0f in ~H225_H323_UserInformation (
this=0x7fffffffcc40) at h225_1.cxx:8157

Thanks
Regards
Mayank Jain

推荐答案

co *************** @ gmail.com 写道:

>




我收到以下错误。你能告诉我这个

问题的解决方案及其原因
>
Hi,

I am getting the following error. Can you tell me any solution to this
problem and the reason for this



你的代码第42行有错误。


为了获得更好的帮助,请发一个给出问题的最小例子。


-

Ian Collins。

You have an error at line 42 of your code.

For better help, post a minimal example that gives the problem.

--
Ian Collins.


8月1日下午2:33,Ian Collins< ian-n ... @ hotmail.comwrote:
On Aug 1, 2:33 pm, Ian Collins <ian-n...@hotmail.comwrote:

contactmayankj ... @ gmail.com写道:
contactmayankj...@gmail.com wrote:


Hi,


我收到以下错误。你能告诉我这个问题的解决方案吗?这个
的原因是什么?b $ b
I am getting the following error. Can you tell me any solution to this
problem and the reason for this



你的代码第42行有错误。


为了获得更好的帮助,请发布一个给出问题的最小例子。


-

Ian Collins。


You have an error at line 42 of your code.

For better help, post a minimal example that gives the problem.

--
Ian Collins.






在64位上移植我的代码时出现此错误。我不知道

有关此错误的详细信息,所以只需要回溯

代码。

谢谢

Mayank Jain

Hi

During the porting of my code on 64 bit I get this error. I don''t know
much details about this error so have just put the back trace of
code.
Thanks
Mayank Jain


co *************** @ gmail.com 写道:

8月1日,下午2:33,Ian Collins< ian-n ... @ hotmail.comwrote:
On Aug 1, 2:33 pm, Ian Collins <ian-n...@hotmail.comwrote:

> contactmayankj ... @ gmail.com写道:
>contactmayankj...@gmail.com wrote:

>>
我收到以下错误。你能否告诉我这个问题的解决方案以及这个
>>Hi,
I am getting the following error. Can you tell me any solution to this
problem and the reason for this


的原因你的代码第42行有错误。

更好的帮助,发布一个给出问题的最小例子。

You have an error at line 42 of your code.

For better help, post a minimal example that gives the problem.



在64位上移植我的代码时出现此错误。我不知道

有关此错误的详细信息,所以只需要回溯

代码。


During the porting of my code on 64 bit I get this error. I don''t know
much details about this error so have just put the back trace of
code.



如果没有更具体的细节,很难说清楚 - 对于我所知道的所有来自

的回溯和你说的话你可以在任何一个函数中有一个小魔法小精灵




更严重的是,虽然SIGBUS很常见(但并不总是)指示性的

不受支持的未对齐加载/存储。如果你想要更具体的

答案,需要一个简单的例子说明你的问题,所以我们

可以分析它。


Alan

It''s hard to tell without more specific details - for all I know from
that backtrace and what you''ve said you could have a little magic pixie
somewhere in any of those functions!

More seriously though SIGBUS is quite often (but not always) indicative
of an unsupported unaligned load/store. If you want more specific
answers a (simple) example is needed that illustrates your problem so we
can analyse it.

Alan


这篇关于SIGBUS,总线错误。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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