Error map

Resource deadlock avoided std::system_error: Resource deadlock avoided (EDEADLK)

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.

Resource deadlock avoided — std::system_error: Resource deadlock avoided (EDEADLK) (C/C++)Resource de…undefined reference to pthread_create — C/C++: undefined reference to `pthread_create' — missing -pthread (also `dlopen`, `clock_gettime`) (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 …terminate called without an active exception — C++: terminate called without an active exception — std::thread destroyed while joinable (C/C++)terminate called wi…PoisonError: poisoned lock: another task failed inside — Rust: thread 'main' panicked: called `Result::unwrap()` on an `Err` value: PoisonError { .. } — poisoned lock: another task failed inside (Rust)PoisonError: poison…system_error — terminate called after throwing 'std::system_error' what(): Resource temporarily unavailable / Operation not permitted (C/C++)system_errordata race — ThreadSanitizer: data race (C/C++)data raceNo associated state — terminate called after throwing an instance of 'std::future_error' what(): std::future_error: No associated state (C/C++)No associated stateerror while loading shared libraries — error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory (Linux)error while loading…undefined reference to — C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status (C/C++)undefined reference…multiple definition of — C/C++: multiple definition of `x'; first defined here — ld returned 1 exit status (C/C++)multiple definition…E0505: cannot move out of value because it is borrowed — Rust: error[E0505]: cannot move out of `s` because it is borrowed (Rust)E0505: cannot move …E0106: missing lifetime specifier — Rust: error[E0106]: missing lifetime specifier — this function's return type contains a borrowed value, but the signature does not say which one of `x`'s 2 lifetimes it is borrowed from (Rust)E0106: missing life…E0597: borrowed value does not live long enough — Rust: error[E0597]: `x` does not live long enough — borrowed value does not live long enough (Rust)E0597: borrowed val…terminate 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…call of overloaded is ambiguous — C++: error: call of overloaded 'f(int)' is ambiguous (C/C++)call of overloaded …cannot declare variable to be of abstract type — C++: error: cannot declare variable 'x' to be of abstract type 'Shape' (pure virtual functions) (C/C++)cannot declare vari…panic: called Option::unwrap() on a None value — Rust: thread 'main' panicked at src/main.rs:4:20: called `Option::unwrap()` on a `None` value (Rust)panic: called Optio…panic: called Result::unwrap() on an Err value — Rust: thread 'main' panicked at src/main.rs:5:36: called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit } (Rust)panic: called Resul…panic: index out of bounds: the len is N but the index is M — Rust: thread 'main' panicked at src/main.rs:5:5: index out of bounds: the len is 3 but the index is 3 (Rust)panic: index out of…std::bad_alloc — C++: terminate called after throwing an instance of 'std::bad_alloc' — what(): std::bad_alloc (C/C++)std::bad_allocbasic_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 validreference to is ambiguous — C++: error: reference to 'X' is ambiguous (using namespace std conflicts) (C/C++)reference to is amb…alloc-dealloc-mismatch — AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete) (C/C++)alloc-dealloc-misma…stoi — 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_access

Directly related (7)

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.

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).

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…

PoisonError: poisoned lock: another task failed insideRust

Rust: thread 'main' panicked: called `Result::unwrap()` on an `Err` value: PoisonError { .. } — poisoned lock: another task failed inside

A thread panicked while holding a `Mutex`/`RwLock`, so the lock is "poisoned" and `lock().unwrap()` panics for others.

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.

data raceC/C++

ThreadSanitizer: data race

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

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.

Two steps away (20)

error while loading shared librariesLinux

error while loading shared libraries: libX.so.N: cannot open shared object file: No such file or directory

The program needs a shared library (.so) that isn’t installed or isn’t on the loader’s search path.

undefined reference toC/C++

C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status

The linker can’t find the definition of a function or variable that was declared and used.

multiple definition ofC/C++

C/C++: multiple definition of `x'; first defined here — ld returned 1 exit status

The linker found the same function or global variable defined in two object files — usually something defined in a header.

E0505: cannot move out of value because it is borrowedRust

Rust: error[E0505]: cannot move out of `s` because it is borrowed

You moved a value while a reference to it was still in use.

E0106: missing lifetime specifierRust

Rust: error[E0106]: missing lifetime specifier — this function's return type contains a borrowed value, but the signature does not say which one of `x`'s 2 lifetimes it is borrowed from

The compiler can't infer which input reference the returned/stored reference is tied to.

E0597: borrowed value does not live long enoughRust

Rust: error[E0597]: `x` does not live long enough — borrowed value does not live long enough

A reference outlives the value it points to (the value is dropped first).

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.

call of overloaded is ambiguousC/C++

C++: error: call of overloaded 'f(int)' is ambiguous

Two or more overloads fit equally well, so the compiler refuses to guess which function you meant.

cannot declare variable to be of abstract typeC/C++

C++: error: cannot declare variable 'x' to be of abstract type 'Shape' (pure virtual functions)

You tried to create an object of a class that still has pure virtual functions; only a derived class that overrides all of them c…

panic: called Option::unwrap() on a None valueRust

Rust: thread 'main' panicked at src/main.rs:4:20: called `Option::unwrap()` on a `None` value

`unwrap()` (or `expect`) was called on `None`, so the program panicked.

panic: called Result::unwrap() on an Err valueRust

Rust: thread 'main' panicked at src/main.rs:5:36: called `Result::unwrap()` on an `Err` value: ParseIntError { kind: InvalidDigit }

`unwrap()`/`expect()` was called on an `Err`, and the error value is shown in the panic message.

panic: index out of bounds: the len is N but the index is MRust

Rust: thread 'main' panicked at src/main.rs:5:5: index out of bounds: the len is 3 but the index is 3

A Vec/array/slice was indexed past its length.

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…

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*`.

reference to is ambiguousC/C++

C++: error: reference to 'X' is ambiguous (using namespace std conflicts)

Two declarations of the same name are visible, usually because of `using namespace std`.

alloc-dealloc-mismatchC/C++

AddressSanitizer: alloc-dealloc-mismatch (malloc vs operator delete)

Memory was allocated with one family (new[]/malloc) and freed with another.

stoiC/C++

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

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

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.