From owner-freebsd-hackers@FreeBSD.ORG Thu Oct 13 15:18:35 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 B9C3A106566B for ; Thu, 13 Oct 2011 15:18:35 +0000 (UTC) (envelope-from filippo.sironi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 4AD638FC0C for ; Thu, 13 Oct 2011 15:18:34 +0000 (UTC) Received: by wwe3 with SMTP id 3so1838659wwe.31 for ; Thu, 13 Oct 2011 08:18:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=3Byw3+MH3DPh7EYsqiIQyaIqfaJl+gAxG/9YMV06k8I=; b=e22qo+FpQAuUByIxa7Gd6So9uYgxwq9K91CwIxRX35uddE8xCzu6hHpdo8xvbkC0FD UAgiuwoDEmnLuatTE+LnlV7fvAdfwEv5u0PXSw68T5HpHVgpeN7xX7nXf9HDwRERlpFw sdzpXnUSqbvLD3rH0+aI4c+GP5mVI558ZGtFQ= Received: by 10.227.209.69 with SMTP id gf5mr1396326wbb.28.1318517263183; Thu, 13 Oct 2011 07:47:43 -0700 (PDT) Received: from filippo.sironi.dynamic.micro.elet.polimi.it (micro.elet.polimi.it. [131.175.127.118]) by mx.google.com with ESMTPS id fy13sm6307751wbb.18.2011.10.13.07.47.38 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 13 Oct 2011 07:47:41 -0700 (PDT) From: Filippo Sironi Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Thu, 13 Oct 2011 16:47:37 +0200 Message-Id: To: hackers@FreeBSD.org Mime-Version: 1.0 (Apple Message framework v1084) X-Mailer: Apple Mail (2.1084) Cc: Subject: 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 15:18:35 -0000 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? Filippo