Skip to content
Snippets Groups Projects
  • Avi Kivity's avatar
    74b624af
    sched: fix double-free of detached threads · 74b624af
    Avi Kivity authored
    The detached thread reaper deletes zombies, but our pthread implementation
    also deletes dead pthreads (using the container object).
    
    Fix by making the base thread use the set_cleanup() method to set up a
    deleter, which is then overridden by pthreads.
    74b624af
    History
    sched: fix double-free of detached threads
    Avi Kivity authored
    The detached thread reaper deletes zombies, but our pthread implementation
    also deletes dead pthreads (using the container object).
    
    Fix by making the base thread use the set_cleanup() method to set up a
    deleter, which is then overridden by pthreads.