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
On my x86_64 linux box running the latest version of Rust from git (as of this morning):
fn main() {
let bar: fn() = {|| };
bar();
}
Causes a leak:
Unreclaimed object found at 0x1b5a6a0: ((), ())
leaked memory in rust main loop (1 objects)
leak: ./src/rt/memory_region.cpp:172: memory_region::~memory_region(): Assertion `false' failed.
Aborted
Obviously this isn't very useful code, but I was just getting started and playing around with closures when I came across it. This might be a dupe of #2036 but I'm not smart enough to know :)
The text was updated successfully, but these errors were encountered:
test that futexes induce appropriate synchronization
This fails when I remove the `validate_lock_acquire` or `validate_lock_release` from `futex_wake`. So finally we got those code paths actually covered in tests. :)
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
On my x86_64 linux box running the latest version of Rust from git (as of this morning):
Causes a leak:
Obviously this isn't very useful code, but I was just getting started and playing around with closures when I came across it. This might be a dupe of #2036 but I'm not smart enough to know :)
The text was updated successfully, but these errors were encountered: