From owner-freebsd-smp Fri Feb 7 22:39:41 2003 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53E4E37B40E; Fri, 7 Feb 2003 22:39:37 -0800 (PST) Received: from eagle.sharma-home.net (cpe-66-1-147-119.ca.sprintbbd.net [66.1.147.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 77E2143F75; Fri, 7 Feb 2003 22:39:36 -0800 (PST) (envelope-from adsharma@sharma-home.net) Received: from astra.mirabella.net (astra.mirabella.net [192.168.1.3]) by eagle.sharma-home.net (Postfix) with ESMTP id 9C509800E; Fri, 7 Feb 2003 22:44:23 -0800 (PST) Received: by astra.mirabella.net (Postfix, from userid 1001) id 9D5F13B; Fri, 7 Feb 2003 22:39:28 -0800 (PST) To: FreeBSD-gnats-submit@freebsd.org Subject: Enabling mutex profiling panics the kernel From: Arun Sharma Reply-To: Arun Sharma Cc: smp@freebsd.org X-send-pr-version: 3.113 X-GNATS-Notify: Message-Id: <20030208063928.9D5F13B@astra.mirabella.net> Date: Fri, 7 Feb 2003 22:39:28 -0800 (PST) Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Submitter-Id: current-users >Originator: Arun Sharma >Organization: >Confidential: no >Synopsis: Enabling mutex profiling panics the kernel >Severity: non-critical >Priority: medium >Category: kern >Class: sw-bug >Release: FreeBSD 5.0-CURRENT i386 >Environment: System: FreeBSD astra.mirabella.net 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Sat Jan 25 18:25:49 PST 2003 root@astra.mirabella.net:/usr/src/sys/i386/compile/astra i386 >Description: Enabling mutex profiling panics the kernel. >How-To-Repeat: # sysctl debug.mutex.profiling.enable=1 # sysctl debug.mutex >Fix: The problem is caused by holding the mprof_mtx and calling printf, which results in a blockable malloc(). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message