Error map

ios_base::failure terminate called after throwing an instance of 'std::ios_base::failure' what(): basic_ios::clear: iostream error

C/C++ · layer 4, Application & API

Open the full error page →

Centre: this error. First ring: errors it is linked with (11). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

ios_base::failure — terminate called after throwing an instance of 'std::ios_base::failure' what(): basic_ios::clear: iostream error (C/C++)ios_base::f…std::bad_alloc — C++: terminate called after throwing an instance of 'std::bad_alloc' — what(): std::bad_alloc (C/C++)std::bad_allocSegmentation fault — C/C++: Segmentation fault (core dumped) — SIGSEGV from a null, dangling or out-of-bounds pointer (C/C++)Segmentation faultterminate called after throwing an instance of — C++: terminate called after throwing an instance of 'std::out_of_range' — what(): vector::_M_range_check (C/C++)terminate called af…basic_string::_M_create — terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_create (C/C++)basic_string::_M_cr…null not valid — terminate called after throwing 'std::logic_error' what(): basic_string::_M_construct null not valid (C/C++)null not validbad_function_call — terminate called after throwing 'std::bad_function_call' what(): bad_function_call (C/C++)bad_function_callbad_variant_access — terminate called after throwing 'std::bad_variant_access' / 'std::bad_optional_access' (C/C++)bad_variant_accessstoi — terminate called after throwing 'std::invalid_argument' what(): stoi (C/C++)stoifilesystem_error — terminate called after throwing an instance of 'std::filesystem::filesystem_error' what(): filesystem error: cannot ... No such file or directory (C/C++)filesystem_errorNo associated state — terminate called after throwing an instance of 'std::future_error' what(): std::future_error: No associated state (C/C++)No associated statebad_cast — terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast (C/C++)bad_castdouble free or corruption — C/C++: free(): double free detected / double free or corruption (out) — Aborted (core dumped) (C/C++)double free or corr…Bus error — C/C++: Bus error (core dumped) — SIGBUS from misaligned access or a bad memory-mapped file (C/C++)Bus errorterminate called without an active exception — C++: terminate called without an active exception — std::thread destroyed while joinable (C/C++)terminate called wi…SIGSEGV — Segmentation fault (core dumped) (Linux)SIGSEGVcontrol reaches end of non-void function — C/C++: warning: control reaches end of non-void function [-Wreturn-type] (C/C++)control reaches end…implicit declaration of function — C: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration] (C/C++)implicit declaratio…Unexpectedly found nil — Fatal error: Unexpectedly found nil while unwrapping an Optional value (iOS)Unexpectedly found …IllegalArgumentException — java.lang.IllegalArgumentException (Java)IllegalArgumentExce…IllegalStateException — java.lang.IllegalStateException (Java)IllegalStateExcepti…system_error — terminate called after throwing 'std::system_error' what(): Resource temporarily unavailable / Operation not permitted (C/C++)system_errorregex_error — terminate called after throwing an instance of 'std::regex_error' what(): regex_error / Unmatched ( or \( (C/C++)regex_errorRead-only file system (macOS system volume) — macOS: mkdir: /data: Read-only file system / touch: /usr/bin/x: Read-only file system (macOS)Read-only file syst…UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY — /dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options) (Linux)UNEXPECTED INCONSIS…undefined reference to std::filesystem — undefined reference to `std::filesystem::...' — link stdc++fs (C/C++)undefined reference…E0373: closure may outlive the current function — Rust: error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current function (Rust)E0373: closure may …data race — ThreadSanitizer: data race (C/C++)data raceResource deadlock avoided — std::system_error: Resource deadlock avoided (EDEADLK) (C/C++)Resource deadlock a…non-virtual destructor — C++: warning: deleting object of polymorphic class type 'Base' which has non-virtual destructor might cause undefined behavior (C/C++)non-virtual destruc…

Directly related (11)

std::bad_allocC/C++

C++: terminate called after throwing an instance of 'std::bad_alloc' — what(): std::bad_alloc

`new` or a container could not get the memory requested — either the system is out of memory or the size was absurdly large (ofte…

Segmentation faultC/C++

C/C++: Segmentation fault (core dumped) — SIGSEGV from a null, dangling or out-of-bounds pointer

The program touched memory it is not allowed to access — a null or dangling pointer, an out-of-range array index, or a stack over…

terminate called after throwing an instance ofC/C++

C++: terminate called after throwing an instance of 'std::out_of_range' — what(): vector::_M_range_check

A C++ exception wasn’t caught anywhere, so std::terminate aborted the program. what() tells you the reason.

basic_string::_M_createC/C++

terminate called after throwing an instance of 'std::length_error' what(): basic_string::_M_create

A string was asked to hold more than its maximum size, usually from a garbage or negative length.

null not validC/C++

terminate called after throwing 'std::logic_error' what(): basic_string::_M_construct null not valid

A std::string was constructed from a null `char*`.

bad_function_callC/C++

terminate called after throwing 'std::bad_function_call' what(): bad_function_call

An empty `std::function` was invoked.

bad_variant_accessC/C++

terminate called after throwing 'std::bad_variant_access' / 'std::bad_optional_access'

A variant or optional was accessed in the wrong state.

stoiC/C++

terminate called after throwing 'std::invalid_argument' what(): stoi

`std::stoi`/`stod` got text that is not a number.

filesystem_errorC/C++

terminate called after throwing an instance of 'std::filesystem::filesystem_error' what(): filesystem error: cannot ... No such file or directory

A `std::filesystem` call failed and threw an exception with the paths and the OS reason.

No associated stateC/C++

terminate called after throwing an instance of 'std::future_error' what(): std::future_error: No associated state

A `std::future` or `std::promise` was used after being moved or without a shared state.

bad_castC/C++

terminate called after throwing an instance of 'std::bad_cast' what(): std::bad_cast

A `dynamic_cast` to a reference type failed because the object is not of that type.

Two steps away (18)

double free or corruptionC/C++

C/C++: free(): double free detected / double free or corruption (out) — Aborted (core dumped)

Memory was freed twice or the heap was corrupted (buffer overflow, freeing a non-heap pointer), so glibc aborted the program.

Bus errorC/C++

C/C++: Bus error (core dumped) — SIGBUS from misaligned access or a bad memory-mapped file

The CPU or OS rejected a memory access that is not a plain invalid address: misaligned data, or touching a memory-mapped file pag…

terminate called without an active exceptionC/C++

C++: terminate called without an active exception — std::thread destroyed while joinable

A `std::thread` object was destroyed (or reassigned) while its thread was still running, so the C++ runtime called `std::terminat…

SIGSEGVLinux

Segmentation fault (core dumped)

A program accessed memory it wasn’t allowed to, and the kernel killed it with SIGSEGV (exit code 139).

control reaches end of non-void functionC/C++

C/C++: warning: control reaches end of non-void function [-Wreturn-type]

A function that promises a return value can finish without returning one on some path — undefined behaviour in C++.

implicit declaration of functionC/C++

C: warning: implicit declaration of function 'foo' [-Wimplicit-function-declaration]

In C you called a function the compiler has not seen declared — usually a missing `#include`. Newer compilers treat it as an erro…

Unexpectedly found niliOS

Fatal error: Unexpectedly found nil while unwrapping an Optional value

Swift force-unwrapped (`!`) an optional that was nil, crashing the app.

IllegalArgumentExceptionJava

java.lang.IllegalArgumentException

A method rejected an argument value as invalid.

IllegalStateExceptionJava

java.lang.IllegalStateException

A method was called when the object wasn’t in the right state for it.

system_errorC/C++

terminate called after throwing 'std::system_error' what(): Resource temporarily unavailable / Operation not permitted

A thread could not be created or a mutex operation failed.

regex_errorC/C++

terminate called after throwing an instance of 'std::regex_error' what(): regex_error / Unmatched ( or \(

The regular expression string passed to `std::regex` is invalid.

Read-only file system (macOS system volume)macOS

macOS: mkdir: /data: Read-only file system / touch: /usr/bin/x: Read-only file system

Since Catalina the system volume is read-only and sealed; you can't create directories at `/` or modify system folders.

UNEXPECTED INCONSISTENCY; RUN fsck MANUALLYLinux

/dev/sda1: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (i.e., without -a or -p options)

The filesystem needs a manual check.

undefined reference to std::filesystemC/C++

undefined reference to `std::filesystem::...' — link stdc++fs

GCC 8 and older need `-lstdc++fs` for ``.

E0373: closure may outlive the current functionRust

Rust: error[E0373]: closure may outlive the current function, but it borrows `v`, which is owned by the current function

A closure borrowing a local is passed somewhere that may outlive it (thread::spawn, tokio::spawn, returned closures).

data raceC/C++

ThreadSanitizer: data race

Two threads accessed the same memory without synchronisation and at least one wrote.

Resource deadlock avoidedC/C++

std::system_error: Resource deadlock avoided (EDEADLK)

A thread tried to lock a mutex it already holds, or a deadlock cycle was detected.

non-virtual destructorC/C++

C++: warning: deleting object of polymorphic class type 'Base' which has non-virtual destructor might cause undefined behavior

A base class with virtual functions is deleted through a base pointer but its destructor is not virtual.