qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] linux-user crashing in multi-threaded programs


From: 陳韋任
Subject: Re: [Qemu-devel] linux-user crashing in multi-threaded programs
Date: Wed, 23 Nov 2011 16:52:03 +0800
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Nov 21, 2011 at 10:11:37AM +0000, Peter Maydell wrote:
> On 21 November 2011 10:07, Alexander Graf <address@hidden> wrote:
> > On 21.11.2011, at 10:59, Peter Maydell wrote:
> >> You can hit this bug even single-threaded or in system mode:
> >> it's just that aggressively multi-threaded user apps are the
> >> easiest way to trigger it. So I don't think we can ever use
> >> the tb-unlinking code safely.
> >
> > Not sure I understand. I thought it's a race between multiple
> >threads trying to chain/unchain TBs at the same time? How can
> > that happen in system or single-threaded mode?
> 
> It's a race between (a) a thread executing code and (b) any
> other thread or signal handler that calls cpu_exit(). So (b)
> can be the IO thread, or the linux-user host_signal_handler().

  Would it be a good idea to write this as a comment about
cpu_unlink_tb? 

Regards,
chenwj

-- 
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
Homepage: http://people.cs.nctu.edu.tw/~chenwj



reply via email to

[Prev in Thread] Current Thread [Next in Thread]