Linux 系统中的段错误问题
2016-05-13 17:01
423 查看
一、段错误的定义及产生原因
A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. In short, a segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (e.g., attempts to write to a read-only location, or to overwrite part of the operating system). Systems based on processors like the Motorola 68000 tend to refer to these events as Address or Bus errors.
Segmentation is one approach to memory management and protection in the operating system. It has been superseded by paging for most purposes, but much of the terminology of segmentation is still used, "segmentation fault" being an example. Some operating systems still have segmentation at some logical level although paging is used as the main memory management policy.
On Unix-like operating systems, a process that accesses invalid memory receives the SIGSEGV signal. On Microsoft Windows, a process that accesses invalid memory receives the STATUS_ACCESS_VIOLATION exception.
A segmentation fault (often shortened to segfault) is a particular error condition that can occur during the operation of computer software. In short, a segmentation fault occurs when a program attempts to access a memory location that it is not allowed to access, or attempts to access a memory location in a way that is not allowed (e.g., attempts to write to a read-only location, or to overwrite part of the operating system). Systems based on processors like the Motorola 68000 tend to refer to these events as Address or Bus errors.
Segmentation is one approach to memory management and protection in the operating system. It has been superseded by paging for most purposes, but much of the terminology of segmentation is still used, "segmentation fault" being an example. Some operating systems still have segmentation at some logical level although paging is used as the main memory management policy.
On Unix-like operating systems, a process that accesses invalid memory receives the SIGSEGV signal. On Microsoft Windows, a process that accesses invalid memory receives the STATUS_ACCESS_VIOLATION exception.
相关文章推荐
- Linux下项目与事务跟踪工具JIRA搭建汉化安装详解
- linux中 likely与unlikely
- 在CentOS上部署JAVA服务
- Linux文件系统十问,你知道吗?
- Centos7 关闭防火墙
- Centos KVM 基本安装过程
- CentOS下配置VNC
- linux服务器上定时备份 mysql 数据库
- Linux背景
- Linux下源码安装php7.0.6
- Linux命令行执行.sql文件及常用sql命令
- Linux kernel源码阅读笔记2-2.6版本调度器sched.c功能
- Linux curl命令参数详解
- Linux下安装Nodejs
- centos 例行性工作转发外部邮箱
- linux 设置IP DNS 网关
- linux 设置IP DNS 网关
- CentOS tar加解压文件
- 初识Linux
- CentOS 安装 JDK