标题: signal 7和signal11 [打印本页] 作者: lxl8768 时间: 2011-07-13 11:19 标题: signal 7和signal11 我的程序运行了大概1周就出错了,gdb时有这样一句
Program terminated with signal 7, Bus error.
可以用coredump跟一下错误作者: rem1x 时间: 2011-07-13 15:11
2楼说的对,开启coredump跟一下作者: lxl8768 时间: 2011-07-14 11:32
我找到了下面的解释,分享一下: Invalid address alignment
The program has attempted to read or write data that does not fit the CPU's memory-alignment rules. Non-existent physical address
This is equivalent to a segmentation fault, but for a physical address rather than a virtual address. Object-specific hardware error
This is far less common, but it is present in Linux and Solaris, when virtual memory pages have disappeared
可能是与对齐有关,怀疑mmap的文件是否中途发生了大小变化...
关于signal 7 SIGBUS,有木有牛人再详细讲讲哈....作者: Kallawa 时间: 2012-02-13 15:02
signal 7同疑惑~~