From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 16:19:08 2011 Return-Path: Delivered-To: hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BB6C41065676 for ; Thu, 13 Oct 2011 16:19:08 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 189108FC19 for ; Thu, 13 Oct 2011 16:19:07 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id TAA06600; Thu, 13 Oct 2011 19:19:05 +0300 (EEST) (envelope-from avg@FreeBSD.org) Message-ID: <4E970F78.9050000@FreeBSD.org> Date: Thu, 13 Oct 2011 19:19:04 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:7.0.1) Gecko/20111003 Thunderbird/7.0.1 MIME-Version: 1.0 To: Filippo Sironi References: In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hackers@FreeBSD.org Subject: Re: kernel panic on free in FreeBSD 7.2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2011 16:19:08 -0000 on 13/10/2011 17:47 Filippo Sironi said the following: > Hi guys, > > I have an odd problem regarding memory. > The (slightly) modified kernel of FreeBSD 7.2 I'm using panics with this error: "panic: smp_tlb_shootdown: interrupts disabled" upon calling free() on three out of four memory buffers I allocate using malloc() in M_TEMP. Unfortunately no information the position of the instruction pointer are given, however, I isolated the problem using a set of old fashioned printf() calls. > The faulty code is activated either by a system call I added or by the exit function (on thread exit). > > The problem doesn't show if the virtual machine I'm using is configured with a single processor. > > Any suggestions? > Obtain a stack trace of the panic? -- Andriy Gapon