Skip to content

bugstalker::debugger::read_memory_by_pid: memory allocation of 4743781073491132416 bytes failed #145

Description

@LeoniePhiline

Bugstalker crashed while stepping through pub async fn install in rayhunter's installer for uz801: https://github.com/EFForg/rayhunter/blob/d41c4bba3e9dd28443d9c81e3f2d9274a3131564/installer/src/uz801.rs#L51

Invocation:

bs --oracle tokio target/debug/installer -- uz801

Session:

(bs) break uz801::install
New breakpoint 1 at 0x00000005FACAC3: /tmp/tmp.dzCpCEuM9t/rayhunter/installer/src/uz801.rs:19 

(bs) r
(bs) tui

Then stepping through with F7 and F8.

Note that the tokio oracle did not find any tasks, and bugstalker could not step async next:

(bs) async next
Error: Current task not found. Maybe your async runtime version is unsupported.

Tokio 1.44.2 was in use, which is supported according to the docs. https://godzie44.github.io/BugStalker/docs/capabilities/async/support-tokio

Crash in TUI mode (screenshot, because garbled):

Image

Reformatted:

memory allocation of 4743781073491132416 bytes failed

stack backtrace:
0: std::alloc::rust_oom
1: __rustc::__rust_alloc_error_handler
2: alloc::alloc::handle_alloc_error
3: alloc::raw_vec::handle_error
4: bugstalker::debugger::read_memory_by_pid
5: bugstalker::debugger::variable::value::specialization::VariableParserExtension::parse_vector
6: bugstalker::debugger::variable::value::parser::ValueParser::parse_inner_with_modifiers
7: bugstalker::debugger::variable::value::parser::ValueParser::parse_struct_member
8: bugstalker::debugger::variable::value::parser::ValueParser::parse_struct_variable
9: bugstalker::debugger::variable::value::parser::ValueParser::parse_inner_with_modifiers
10: bugstalker::debugger::variable::value::parser::ValueParser::parse_struct_member
11: bugstalker::debugger::variable::value::parser::ValueParser::parse_struct_variable
12: bugstalker::debugger::variable::value::parser::ValueParser::parse_inner_with_modifiers
13: bugstalker::debugger::variable::value::PointerValue::deref
14: bugstalker::debugger::variable::value::Value::deref
15: bugstalker::debugger::variable::execute::QueryResult::modify_value
16: bugstalker::ui::tui::components::variables::node_from_var
17: core::ops::function::FnOnce::call_once{{vtable.shim}}
18: bugstalker::ui::supervisor::Supervisor::run
19: bs::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
[1]    133086 IOT instruction (core dumped)  bs --oracle tokio target/debug/installer -- uz801

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions