Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760693AbXHPHkG (ORCPT ); Thu, 16 Aug 2007 03:40:06 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750814AbXHPHjy (ORCPT ); Thu, 16 Aug 2007 03:39:54 -0400 Received: from pentafluge.infradead.org ([213.146.154.40]:55651 "EHLO pentafluge.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750787AbXHPHjy (ORCPT ); Thu, 16 Aug 2007 03:39:54 -0400 Subject: Re: [BUG -rt] circular locking deadlock From: Peter Zijlstra To: john stultz Cc: Ingo Molnar , Thomas Gleixner , lkml In-Reply-To: <1187228393.6062.31.camel@localhost.localdomain> References: <1187228393.6062.31.camel@localhost.localdomain> Content-Type: text/plain Date: Thu, 16 Aug 2007 09:39:39 +0200 Message-Id: <1187249979.6114.65.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3396 Lines: 91 On Wed, 2007-08-15 at 18:39 -0700, john stultz wrote: > Hey Ingo, Thomas, > > I was playing with the latency tracer on 2.6.23-rc2-rt2 while a "make > -j8" was going on in the background and the box hung with this on the > console: Hmm, this would have been me :-/ I'll go play... > ============================================ > [ BUG: circular locking deadlock detected! ] > -------------------------------------------- > cc1/7161 is deadlocking current task cc1/7164 > > > 1) cc1/7164 is trying to acquire this lock: > [ffff8101fa375250] {&list->lock} > ... ->owner: ffff8101ef7f7162 > ... held by: cc1: 7161 [ffff8101ef7f7160, 120] > > 2) cc1/7161 is blocked on this lock: > [ffff8102118e5900] {&list->lock} > ... ->owner: ffff8100ddb3ace2 > ... held by: cc1: 7164 [ffff8100ddb3ace0, 120] > > cc1/7161's [blocked] stackdump: > > ffff8101f9423c68 0000000000000086 0000000100000000 0000000000000002 > ffffffff82205d00 0000000000000202 ffffffff82189280 ffff8101ef7f7160 > ffff8100ddb3ace0 ffff8101f9423c10 0000000000000202 0000000000000000 > Call Trace: > [] mcount+0x2c/0x3a > [] schedule+0x3b/0x130 > [] rt_spin_lock_slowlock+0xdb/0x210 > [] __rt_spin_lock+0x3d/0x50 > [] rt_spin_lock+0xe/0x10 > [] __lock_list+0x42/0x70 > [] lock_list_splice_init+0x33/0xb0 > [] file_move+0xc8/0xd0 > [] __dentry_open+0xae/0x1d0 > [] nameidata_to_filp+0x44/0x60 > [] do_filp_open+0x4d/0x60 > [] __lock_text_start+0xe/0x10 > [] get_unused_fd_flags+0x103/0x130 > [] do_sys_open+0x61/0x100 > [] sys_open+0x20/0x30 > [] tracesys+0x151/0x1be > > --------------------------- > | preempt count: 00000002 ] > | 2-level deep critical section nesting: > ---------------------------------------- > ... [] .... __schedule+0x23/0x265 > ......[] .. ( <= schedule+0x3b/0x130) > ... [] .... __spin_lock_irq+0x21/0x40 > ......[] .. ( <= __schedule+0xb4/0x265) > > > cc1/7164's [current] stackdump: > > > Call Trace: > [] show_stack+0x13/0x20 > [] debug_rt_mutex_print_deadlock+0x163/0x180 > [] rt_spin_lock_slowlock+0xd6/0x210 > [] __rt_spin_lock+0x3d/0x50 > [] rt_spin_lock+0xe/0x10 > [] __lock_list+0x42/0x70 > [] lock_list_del_init+0x26/0x70 > [] file_kill+0x4a/0x60 > [] __fput+0x12e/0x1d0 > [] fput+0x25/0x30 > [] filp_close+0x61/0x90 > [] sys_close+0xa9/0x100 > [] tracesys+0x151/0x1be > > --------------------------- > | preempt count: 00000000 ] > | 0-level deep critical section nesting: > ---------------------------------------- > > [ turning off deadlock detection.Please report this trace. ] - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/