Closed
Description
I was playing with examples for #28179 and hit this assertion in the playpen.
fn main() {
println!("ok")
}
#[no_mangle]
#[allow(non_snake_case)]
pub fn _ZN2io5stdio6_print20h94cd0587c9a534faX3gE() {
std::process::exit(1);
}
That #[no_mangle]
function needs to clash with rust's io::stdio::_print
. This particular name is from stable 1.2. http://is.gd/YpEFlo
rustc: malloc.c:2388: sysmalloc: Assertion `(old_top == (((mbinptr) (((char *) &((av)->bins[((1) - 1) * 2])) - __builtin_offsetof (struct malloc_chunk, fd)))) && old_size == 0) || ((unsigned long) (old_size) >= (unsigned long)((((__builtin_offsetof (struct malloc_chunk, fd_nextsize))+((2 *(sizeof(size_t))) - 1)) & ~((2 *(sizeof(size_t))) - 1))) && ((old_top)->size & 0x1) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
Aborted (core dumped)
playpen: application terminated with error code 134