mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:57:45 +00:00
Base: Write some initial man pages
It ain't much, but it's honest work!
This commit is contained in:
parent
36eea6c04b
commit
fed96f455d
8 changed files with 256 additions and 0 deletions
34
Base/usr/share/man/man1/crash.md
Normal file
34
Base/usr/share/man/man1/crash.md
Normal file
|
@ -0,0 +1,34 @@
|
|||
## Name
|
||||
|
||||
crash - intentionally perform an illegal operation
|
||||
|
||||
## Synopsis
|
||||
|
||||
```**sh
|
||||
$ crash [options]
|
||||
```
|
||||
|
||||
## Description
|
||||
|
||||
This program is used to test how the Serenity kernel handles
|
||||
userspace crashes, and can be used to simulate many different
|
||||
kinds of crashes.
|
||||
|
||||
## Options
|
||||
|
||||
* `-s`: Perform a segmentation violation by dereferencing an invalid pointer.
|
||||
* `-d`: Perform a division by zero.
|
||||
* `-i`: Execute an illegal CPU instruction.
|
||||
* `-a`: Call `abort()`.
|
||||
* `-m`: Read a pointer from uninitialized memory, then read from it.
|
||||
* `-f`: Read a pointer from memory freed using `free()`, then read from it.
|
||||
* `-M`: Read a pointer from uninitialized memory, then write to it.
|
||||
* `-F`: Read a pointer from memory freed using `free()`, then write to it.
|
||||
* `-r`: Write to read-only memory.
|
||||
|
||||
## Examples
|
||||
|
||||
```sh
|
||||
$ crash -F
|
||||
Shell: crash(33) exitied due to signal "Segmentation violation"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue