所以如果一个客户端发送一条命令类似:“查看 ID200000的角色”,这会使服务器当机,如果没有防备的话,因为服务器会访问非法的内存区域。
So if a client sends a command such as: "look at actor with ID 200000" this will crash the server if unguarded since the server will attempt to access an invalid memory.
此时write系统调用会被进程接收到的SIGBUS信号中断,因为当前进程访问了非法内存地址。
Your write system call will be interrupted by the bus error signal SIGBUS, because you performed a bad memory access.
应用推荐