Skip to content
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

libnative timer doesn't close when using linux #12699

Closed
pethin opened this issue Mar 5, 2014 · 0 comments
Closed

libnative timer doesn't close when using linux #12699

pethin opened this issue Mar 5, 2014 · 0 comments

Comments

@pethin
Copy link

pethin commented Mar 5, 2014

Rust version:

rustc 0.10-pre (fbe26af 2014-03-02 17:36:28 -0800)
host: x86_64-unknown-linux-gnu

When running the program:

extern crate native;

use std::io::timer;

#[start]
fn start(argc: int, argv: **u8) -> int {
    native::start(argc, argv, main)
}

fn main() {
    for i in range(1u, 11) {
        timer::sleep(250);
        println!("{}", i);
    }
}

The program never exits unless timer::sleep(250); is removed.
Running a backtrace returns:

#0  0x00007ffff73207ac in __lll_lock_wait () from /usr/lib/libpthread.so.0
#1  0x00007ffff731e12c in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#2  0x0000000000520314 in bookkeeping::wait_for_other_tasks::h2c798b302d45d35c2aa::v0.10.pre ()
#3  0x0000000000540f36 in io::timer_helper::boot::closure ()
#4  0x00000000004aa1ff in rt::cleanup::hcd581fdc1c797e7b5Ag::v0.10.pre ()
#5  0x0000000000546f68 in start::h835618e68f53f25aBBd::v0.10.pre ()
#6  0x00000000004058fc in start::hf51dabea8a76ee0ahaa::v0.0 ()
#7  0x000000000040593b in main ()
bors added a commit to rust-lang-ci/rust that referenced this issue Jul 25, 2022
internal: use different schemes for the custom views

Related to rust-lang#12699, but doesn't fix it because we still register the providers multiple times.
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

1 participant