How to debug malloc(): corrupted top size Aborted (core dumped)
⚓ Rust 📅 2026-05-08 👤 surdeus 👁️ 1Here is my program:
#[global_allocator]
static GLOBAL_ALLOC: pstd::localalloc::Perm = pstd::localalloc::Perm;
fn main() {
use ironpress::html_to_pdf;
let _pdf = html_to_pdf("<h1>Hello</h1><p>World</p>").unwrap();
// std::fs::write("output.pdf", pdf).unwrap();
}
Output ( on cargo run ):
malloc(): corrupted top size
Aborted (core dumped)
Perm is my global allocator, quite likely it is a problem with that, although I am using it quite extensively in other programs without a problem, so maybe the problem is elsewhere. I guess I need to somehow interpret the dumped core, but I don't even know where it is.
6 posts - 2 participants
🏷️ Rust_feed