https://bugs.kde.org/show_bug.cgi?id=445668
--- Comment #3 from Nick Nethercote <n.netherc...@gmail.com> --- Created attachment 143713 --> https://bugs.kde.org/attachment.cgi?id=143713&action=edit Rust reproducer I've written a tiny program that reproduces the problem. - I compiled with Rust 1.56.1 with `rustc -g a.rs`. - I ran DHAT with `vg-in-place --tool=dhat --dhat-out-file=dhout ./a`. - I viewed `dhout` with `dh_view.html`. Trunk Valgrind has a first PP like this: ``` │ #1: 0x1123BB: alloc::alloc::alloc (alloc.rs:86) │ #2: 0x112446: alloc::alloc::Global::alloc_impl (alloc.rs:166) │ #3: 0x112B29: <alloc::alloc::Global as core::alloc::Allocator>::allocate (alloc.rs:226) │ #4: 0x110991: alloc::raw_vec::finish_grow (raw_vec.rs:510) │ #5: 0x110E85: alloc::raw_vec::RawVec<T,A>::grow_amortized (raw_vec.rs:443) │ #6: 0x111045: alloc::raw_vec::RawVec<T,A>::reserve::do_reserve_and_handle (raw_vec.rs:334) │ #7: 0x11101B: alloc::raw_vec::RawVec<T,A>::reserve (raw_vec.rs:338) │ #8: 0x1135DF: alloc::vec::Vec<T,A>::reserve (mod.rs:805) │ #9: 0x1139AF: a::main (a.rs:5) │ #10: 0x11206A: core::ops::function::FnOnce::call_once (function.rs:227) │ #11: 0x111F5D: std::sys_common::backtrace::__rust_begin_short_backtrace (backtrace.rs:125) ``` With the abovementioned commit reverted, the first PP looks like this: ``` │ #1: 0x1123BB: alloc::alloc::alloc (alloc.rs:86) │ #2: 0x112446: alloc::alloc::Global::alloc_impl (alloc.rs:166) │ #3: 0x112B29: <alloc::alloc::Global as core::alloc::Allocator>::allocate (alloc.rs:226) │ #4: 0x110991: alloc::raw_vec::finish_grow (raw_vec.rs:510) │ #5: 0x110E85: alloc::raw_vec::RawVec<T,A>::grow_amortized (raw_vec.rs:443) │ #6: 0x111045: alloc::raw_vec::RawVec<T,A>::reserve::do_reserve_and_handle (raw_vec.rs:334) │ #7: 0x11101B: alloc::raw_vec::RawVec<T,A>::reserve (raw_vec.rs:338) │ #8: 0x1135DF: alloc::vec::Vec<T,A>::reserve (mod.rs:805) │ #9: 0x1139AF: f4 (a.rs:5) │ #10: 0x1139AF: f3 (a.rs:12) │ #11: 0x1139AF: f2 (a.rs:17) │ #12: 0x1139AF: f1 (a.rs:22) │ #13: 0x1139AF: a::main (a.rs:26) │ #14: 0x11206A: core::ops::function::FnOnce::call_once (function.rs:227) │ #15: 0x111F5D: std::sys_common::backtrace::__rust_begin_short_backtrace (backtrace.rs:125) ``` -- You are receiving this mail because: You are watching all bug changes.