From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id CC6B62EFAD for ; Tue, 19 Jun 2001 19:04:47 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id f5JN3El32595 for axp-list@listman.redhat.com; Tue, 19 Jun 2001 19:03:14 -0400 Received: from woody.fsl.noaa.gov (IDENT:root@woody.fsl.noaa.gov [137.75.132.225]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id f5JN3Db32583 for ; Tue, 19 Jun 2001 19:03:13 -0400 Received: (from tierney@localhost) by woody.fsl.noaa.gov (8.9.3/8.9.3) id RAA01635 for axp-list@redhat.com; Tue, 19 Jun 2001 17:07:17 -0600 Date: Tue, 19 Jun 2001 17:07:16 -0600 From: Craig Tierney To: axp-list@redhat.com Subject: Re: Problems with stuck spinlocks in 2.2.19 Message-ID: <20010619170716.C1597@hpti.com> References: <20010618120855.A14891@hpti.com> <3B2E479C.34FADDC1@zk3.dec.com> <20010618133543.E14891@hpti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.6i In-Reply-To: <20010618133543.E14891@hpti.com>; from ctierney@hpti.com on Mon, Jun 18, 2001 at 01:35:43PM -0600 X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: I added debugging to the kernel and this is what I found from the last crash: sched.c:28 spinlock stuck in init at fffffc000032de14(0) owner slocate at fffffc 00003591ec(1) stat.c:41 Then I did: gdb /boot/vmlinux-2.2.19-smp-debug /proc/kcore The first pointer (0xfffffc000032de14) is: 0xfffffc000032de14 is in schedule (/usr/src/linux-2.2.19/include/asm/smplock.h:2 8). 23 * Re-acquire the kernel lock 24 */ 25 static __inline__ void reacquire_kernel_lock(struct task_struct *task) 26 { 27 if (task->lock_depth >= 0) 28 spin_lock(&kernel_flag); 29 } 30 31 /* 32 * Getting the big kernel lock. The second point (0xfffffc00003591ec) is: 0xfffffc00003591ec is in sys_newlstat (/usr/src/linux-2.2.19/include/asm/smplock .h:40). 35 * so we only need to worry about other 36 * CPU's. 37 */ 38 static __inline__ void lock_kernel(void) 39 { 40 if (!++current->lock_depth) 41 spin_lock(&kernel_flag); 42 } 43 44 static __inline__ void unlock_kernel(void) So sys_newlstat takes us back into the filesystem fs/stat.c. The function has a big kernel lock and unlock. So sys_newlstat is trying to lock_kernel(). However, the scheduler feels like trying to reacquire_kernel_lock. I am assuming right now that the pointer to current and task are the same (maybe) at the time of the crash. Question: is the thread of execution in sys_newlstat getting stuck, therefore never releasing the kernel lock and sched.c just happens to be the other thread complaining, or are they both trying to get the kernel lock and getting stuck? I think it is the former. I am tracing down the sys_newlstat command to find any 'real' function that could be doing work and getting hung up for some reason. Craig