l******t 发帖数: 108 | | b*****d 发帖数: 1 | 2 还是哪里的的空间没有分配对吧
再仔细瞅瞅
【在 l******t 的大作中提到】 : 谢谢
| t****n 发帖数: 1347 | 3 Usually it is using a unalloacated pointer.
【在 l******t 的大作中提到】 : 谢谢
| m*****e 发帖数: 4193 | 4 Bus error is generated whenever there is an error in the bus. It's
architecture dependent.
On some architectures (SPARC, for example), variables have to be aligned.
For instance, an int has to be stored at 4-byte boundary, otherwise you
will get a bus error when you try to access it.
This usually happens for the following reasons:
1) Your pointer has a wrong value.
2) Your pointer has a wrong type, esp. when you cast the pointer from a
shorter type to a longer one and violate the alignment r
【在 l******t 的大作中提到】 : 谢谢
|
|