是否有可能,以及在什么条件下,Linux 内核会由于内存写入违规而终止程序的执行,而不是由于对同一内存位置的内存访问违规。
例如
//x is a pointer to a vector of structs
if( (*x)[i].member )
break; //doesn't crash
if( (*x)[i].member )
(*x)[i].member = 1; //crashes, even though member is not used
//elsewhere in the program