From owner-freebsd-stable@FreeBSD.ORG Fri Apr 29 03:52:50 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D5C2106564A for ; Fri, 29 Apr 2011 03:52:50 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1303A8FC08 for ; Fri, 29 Apr 2011 03:52:49 +0000 (UTC) Received: by wyf23 with SMTP id 23so3348255wyf.13 for ; Thu, 28 Apr 2011 20:52:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=PaieVrqzYMptYRZMqAGEkcP7RYjA3ppIxpcs5u3CITA=; b=gdPoLtWODBm2tXjXtVExnYswbmS+NaL12dAUlENbj6e+aVJDEzsOqvejFSMU8cGDx0 +kuhdvLw4q4Vh7LftkDU45yFq2sVe6cS/PGU5IMSUkm6Wb40wCoeEYXqdTqbp+ToRWT2 Z9lzBONutcQSIS/UcieQOSLkIWAhrB004IbA4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=gVePL0s+9rINQlqWIaRoMQq8ITBQi0vaQWlqNibyxp94WYGfQRoxjIYBKYd0AwJ6gg 48pUJHCcB2fEtPjUJUmLga8ocsGY6usI8ce5dpc3+MJz+VuaGE2hKuTxXveZHZIri0CY 2Tw6+DMyKy/h3ZN97PscNWO+gsMb9BFzIUoh0= MIME-Version: 1.0 Received: by 10.216.188.20 with SMTP id z20mr823456wem.66.1304047384099; Thu, 28 Apr 2011 20:23:04 -0700 (PDT) Received: by 10.216.17.213 with HTTP; Thu, 28 Apr 2011 20:23:04 -0700 (PDT) In-Reply-To: References: Date: Thu, 28 Apr 2011 22:23:04 -0500 Message-ID: From: Brandon Gooch To: Helmut Schneider Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org Subject: Re: panic, but /var/crash ist empty X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2011 03:52:50 -0000 On Wed, Apr 27, 2011 at 1:44 PM, Helmut Schneider wrote: > Hi, > > running 8.2-RELEASE-p1 within VMWare ESXi 4.1-u1 I want to use raw > devices as hard disks. I create the devices using this link: > > http://www.mattiasholm.com/node/33 > > I tried 3 different hard drives (Seagate 2x80GB and 1x400GB SATA2) > which are fine on a physical machine. I also ran Seatool many hours on > all of them without errors. > > I can partiton the disks and create a few files/directories on it. But > as soon as I copy a larger number of files to those disks (tried with > MBR and GPT) the VM reboots *instantly* (I tried cp, dump/restore and > rsync). No "Rebooting within 15 seconds", just *snap*. I think I can > see an panic but I'm not sure, it's too fast. > > (as far as I can see most of the times the data on the first UFS slice > (and only the first UFS slice!) of the partition gets *severly* > corrupted, most of the time all that is left are a few files within > lost+found. Sometimes all the labels are gone but are recoverable using > bsdlabel -R) > > The problem is that /var/crash remains empty. > > What can I do to create a backtrace to open a PR? > > Thanks, Helmut > Hi Helmut, To get a backtrace from the crash (or drop to the debugger), you'll need to compile a kernel with at least a couple of options defined. These two: options KDB options DDB ...will allow you to work with the debugger on the console after a crash. Further, with the option KDB_TRACE in the kernel config, you'll get a backtrace printed automatically when the kernel panicsb. Here are a couple of excellent documents to read to get you started: http://www.freebsd.org/doc/en/books/handbook/kernelconfig-building.html http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug.html Kernel debug options: http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-options.html