You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've a memory leak in an application. After some search I found this crate and restrict the area of my problem.
After some tries I have a strange behavior:
The code above runs correctly printing 0 bytes as diff. On my PC the output is:
before allocated_bytes: 244960
after allocated_bytes: 244960
DIFF allocated_bytes: 0
Anyway changing the magic number from 4782 to 4783, the program exits with panic because the difference is less than 0.
before allocated_bytes: 244960
after allocated_bytes: 244376
thread 'main' panicked at 'attempt to subtract with overflow', src/main.rs:23:42
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Panic in Arbiter thread.
I don't know if this problem is linked to my origina one but this behavior is very strange and I would like to report it here.
Why the allocation change from 4782 to 4783? Why 4783?
I'm using:
$ cargo version
cargo 1.43.0 (2cbe9048e 2020-05-03)
The text was updated successfully, but these errors were encountered:
Hi!
I've a memory leak in an application. After some search I found this crate and restrict the area of my problem.
After some tries I have a strange behavior:
The code above runs correctly printing 0 bytes as diff. On my PC the output is:
Anyway changing the magic number from
4782
to4783
, the program exits with panic because the difference is less than 0.I don't know if this problem is linked to my origina one but this behavior is very strange and I would like to report it here.
Why the allocation change from
4782
to4783
? Why4783
?I'm using:
The text was updated successfully, but these errors were encountered: