Skip to content

generic function mishandles unique pointer #962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jruderman opened this issue Sep 22, 2011 · 0 comments
Closed

generic function mishandles unique pointer #962

jruderman opened this issue Sep 22, 2011 · 0 comments
Assignees

Comments

@jruderman
Copy link
Contributor

(Based on test/run-pass/generic-drop-glue.rs)

fn f<T>(t: T) { let _t1 = t; }
fn main() { let x = ~1; f(x); }

Compiles to a program that double-frees (and leaks?):

g(10978,0xb0101000) malloc: *** error for object 0x1000000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
rt: fatal, 'live_allocs < 1' failed, ../src/rt/memory_region.cpp:43 
@ghost ghost assigned brson Sep 22, 2011
@brson brson closed this as completed in 1a48023 Sep 23, 2011
coastalwhite pushed a commit to coastalwhite/rust that referenced this issue Aug 5, 2023
Adds all 18 intrinsics belongin to AVX512VPOPCNTDQ counting the number of set bits in packed 32 / 64 bit integers.
Intrinsics match _mm(256|512)?(_maskz?)?_popcnt_epi(32|64).
Versions for packed 8 and 16 bit integers are part of BITALG.
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
* Introduce --harness and parse kani-metadata.

* run all proof harnesses

* enable function-less 'expected' tests for cargo-kani in compiletest

* Only mention --harness not --function in docs

* use --harness instead of --function in tests, mostly.

* Run all harnesses, even if one fails. Also generate all reports in separate directories

* Output reports (and harness) with - not :: in file names

* Print all failed harnesses in a final summary

* Make harness search robust against possible future name collisions
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants