Error map

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

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

Open the full error page →

Centre: this error. First ring: errors it is linked with (7). 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.

null not valid — terminate called after throwing 'std::logic_error' what(): basic_string::_M_construct null not valid (C/C++)null not va…std::bad_alloc — C++: terminate called after throwing an instance of 'std::bad_alloc' — what(): std::bad_alloc (C/C++)std::bad_allocterminate 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…system_error — terminate called after throwing 'std::system_error' what(): Resource temporarily unavailable / Operation not permitted (C/C++)system_errorstoi — terminate called after throwing 'std::invalid_argument' what(): stoi (C/C++)stoibad_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_accessdouble free or corruption — C/C++: free(): double free detected / double free or corruption (out) — Aborted (core dumped) (C/C++)double free or corr…Segmentation fault — C/C++: Segmentation fault (core dumped) — SIGSEGV from a null, dangling or out-of-bounds pointer (C/C++)Segmentation faultBus error — C/C++: Bus error (core dumped) — SIGBUS from misaligned access or a bad memory-mapped file (C/C++)Bus errorSIGSEGV — Segmentation fault (core dumped) (Linux)SIGSEGVUnexpectedly found nil — Fatal error: Unexpectedly found nil while unwrapping an Optional value (iOS)Unexpectedly found …IllegalArgumentException — java.lang.IllegalArgumentException (Java)IllegalArgumentExce…undefined reference to pthread_create — C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`) (C/C++)undefined reference…terminate called without an active exception — C++: terminate called without an active exception — std::thread destroyed while joinable (C/C++)terminate called wi…data race — ThreadSanitizer: data race (C/C++)data race

Directly related (7)

Two steps away (9)

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.

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…

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…

SIGSEGVLinux

Segmentation fault (core dumped)

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

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.

undefined reference to pthread_createC/C++

C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`)

Your program uses threads (or another system library) but the linker was not told to link it.

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…

data raceC/C++

ThreadSanitizer: data race

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