The minimal code to reproduce the bug ``` #![crate_name = "xmpp"] #![crate_type = "lib"] pub fn handle() { loop { } println!("we close"); } ``` the stack trace i got https://gist.github.com/allan-simon/5a689088c8c46e2843d0 Note: - it does compile correctly if we replace the function by "main" and compile it as a normal software - it does compile correctly if we replace the println! by a `let a = 42u`