kdb
[Top] [All Lists]

Re: Race in kdb()

To: ananth@xxxxxxxxxx
Subject: Re: Race in kdb()
From: Xavier Bru <xavier.bru@xxxxxxxx>
Date: Mon, 19 Apr 2004 17:52:20 +0200
Cc: kdb@xxxxxxxxxxx, kaos@xxxxxxx
In-reply-to: <20040419145008.GA13342@in.ibm.com>
References: <20040419145008.GA13342@in.ibm.com>
Sender: kdb-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; AIX 00000106E800; fr-FR; rv:1.6) Gecko/20040122
Ananth N Mavinakayanahalli wrote:

>Hi,
>
>While working on KDB for ppc64, I hit a race in kdb(). Verified that the
>problem exists on x86 too..
>
>Problem occurs when a bp is set on a very frequently hit routine (eg., 
>sys_read() or schedule()), and multiple processors hit the bp 
>simultaneously. This is the problem I am seeing...
>
>        CPU0                            CPU1
>         |                               |
>        kdb(reason = break)              |
>         |                               |
>         |                               |
>        spin_lock()                      |
>         |                               |
>        kdb_initial_cpu = 0;             |
>         |                               |
>        spin_unlock()                    |
>         ..                       kdb(reason = break)
>         |                               |
>         |                      if (reason != KDB_REASON_SWITCH) {
>         |                      if (KDB_IS_RUNNING() && !KDB_STATE(REENTRY))
>         |                              <is true>
>        |                              ....
>         |                               
>         |
>        smp_kdb_stop();
>
>
>Thanks,
>Ananth
>  
>
Hi, Ananth, Keith & all,

Problem also exists on ia64, and becomes more serious when number of 
cpus is important.

-- 

 Sincères salutations.
_____________________________________________________________________
 
Xavier BRU                 BULL ISD/R&D/INTEL office:     FREC B1-422
tel : +33 (0)4 76 29 77 45                    http://www-frec.bull.fr
fax : +33 (0)4 76 29 77 70                 mailto:Xavier.Bru@xxxxxxxx
addr: BULL, 1 rue de Provence, BP 208, 38432 Echirolles Cedex, FRANCE
_____________________________________________________________________


---------------------------
Use http://oss.sgi.com/ecartis to modify your settings or to unsubscribe.
<Prev in Thread] Current Thread [Next in Thread>