Skip to content

SIGTRAP

Signals are standardized messages sent to a running program to trigger specific behavior, such as quitting or error handling.

Core Idea

SIGTRAP is treated here as the recurring computerscienceandinformation identity summarized by this source-grounded definition: Signals are standardized messages sent to a running program to trigger specific behavior, such as quitting or error handling. Signals are standardized messages sent to a running program to trigger specific behavior, such as quitting or error handling. They are a limited form of inter-process communication (IPC), typically used in Unix, Unix-like, and other POSIX-compliant operating systems. A signal is an asynchronous notification sent to a process or to a specific thread within the same process to notify it of an.

How would you explain it like I'm…

The Debugger's Alarm

When people fix computer programs, they can ask the computer, 'tell me when the program gets to this spot.' When it gets there, the computer sends the program a special little alarm called SIGTRAP, so the helper can stop and look.

The Breakpoint Signal

Computers can send programs short messages called signals to tell them something happened. SIGTRAP is the signal that means 'you've reached a spot a debugger wanted to know about,' like a certain step running or a certain value changing. Debuggers are tools that help programmers find mistakes by pausing a program to look inside. If no one is set up to handle SIGTRAP, the program stops and saves a snapshot of its memory. Most other signals are about stopping programs or reporting crashes, but SIGTRAP is about debugging.

Trace/Breakpoint Trap Signal

SIGTRAP is a POSIX signal sent to a process when a trap occurs, an event a debugger has asked to be told about, like reaching a breakpoint or a variable changing. Signals are standardized, asynchronous notifications the operating system sends to a running process to report events, a simple kind of inter-process communication in Unix-like systems. When a signal arrives, the OS interrupts the process; if it registered a handler, the handler runs, otherwise a default action happens. For SIGTRAP, signal number 5, the default is to terminate with a core dump, and its description is 'trace/breakpoint trap.' Signals are like hardware interrupts, but interrupts go through the CPU to the kernel, while signals go from the kernel to processes. Unlike signals that report faults or stop processes, SIGTRAP exists for debugging.

 

SIGTRAP is the POSIX signal sent to a process when a trap occurs, an exception a debugger has requested notification of, such as execution of a particular function or a change in a variable's value. Its portable number is 5, its default action is termination with a core dump, and its standard description is 'trace/breakpoint trap.' It belongs to the signal mechanism: standardized, asynchronous notifications sent to a process or a specific thread to report an event, a limited form of inter-process communication in Unix, Unix-like and other POSIX systems, originating in 1970s Bell Labs Unix and later specified by POSIX. On delivery the OS interrupts the target's normal execution; a registered handler runs, otherwise the default action applies. Signals resemble hardware interrupts, but interrupts are mediated by the CPU and handled by the kernel, while signals are mediated by the kernel and handled by processes; the kernel may forward an interrupt as a signal to the process that caused it. Whereas most signals interrupt, suspend or terminate a process, or report faults such as segmentation violations, SIGTRAP signals that a debugging-requested trace or breakpoint condition has been reached.

Scope of Application

  • POSIX signals. The term reflects early usage of such instructions, predominantly to implement I/O functions, but they are not inherently tied to device I/O and may be used for other purposes.

  • POSIX signals. In practice, this kind of signal is rarely encountered since applications rely on libraries (e.g. libc) to make the call for them. can be received by applications violating the Linux.

  • POSIX signals. On some systems may be used internally by the implementation of the sleep function.

  • POSIX signals. The to signals are intended to be used for user-defined purposes.

  • Handling signals. If a signal handler is not installed for a particular signal, the default handler is used.

Clarity

A clear use of SIGTRAP names the carrier, the operative relation, and the conditions under which the source treats the identity as present. The minimal definition is Signals are standardized messages sent to a running program to trigger specific behavior, such as quitting or error handling.

Manages Complexity

SIGTRAP compresses multiple computerscienceandinformation details into a stable diagnostic relation. The source shows both the central mechanism—ctrl-C (in older Unixes, DEL) sends an signal ("interrupt", #SIGINT|); by default, this causes the process to terminate.—and the practical consequence—ctrl-T (not supported on all UNIXes) sends an signal (#SIGINFO|); by default, and if supported by the command, this causes the operating system to show information about the running command.

Abstract Reasoning

  1. Type the carrier. Identify the computerscienceandinformation entities to which the claim applies.
  2. State the relation. Use the source-grounded identity: Signals are standardized messages sent to a running program to trigger specific behavior, such as quitting or error handling.
  3. Check operation and conditions. Ctrl-Z sends a signal ("terminal stop", SIGTSTP|); by default, this causes the process to suspend execution.
  4. Demand recognition evidence. Ctrl- sends a signal (#SIGQUIT|); by default, this causes the process to terminate and dump core.
  5. Test variation.

Knowledge Transfer

Within the home domain. Knowledge about SIGTRAP transfers literally when a new case preserves the same carrier type, relation, and recognition test. The term reflects early usage of such instructions, predominantly to implement I/O functions, but they are not inherently tied to device I/O and may be used for other purposes such as communication between virtual & real hosts. In practice, this kind of signal is rarely encountered since applications rely on libraries (e.g. libc) to make the call for them. can be received by applications violating the Linux Seccomp security rules configured to restrict them. can also.

Neighborhood in Abstraction Space

SIGTRAP sits in a sparse region of the domain-specific corpus (63rd percentile for distinctiveness): few abstractions share its structure, so a faithful description tends to retrieve it precisely.

Family — Unclustered & Miscellaneous (3155 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14