From owner-freebsd-questions@FreeBSD.ORG Fri Apr 25 15:12:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 663191065672 for ; Fri, 25 Apr 2008 15:12:01 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 06D6E8FC18 for ; Fri, 25 Apr 2008 15:12:00 +0000 (UTC) (envelope-from pisymbol@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so448104ywh.13 for ; Fri, 25 Apr 2008 08:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=W6P6rscgT7mTWZYU8zlEchXiIBxnLTzhzewBRUSMXlw=; b=gBFEaBhTisf0jEcheX5XTXbcn3G7v95yXpCiJ1TMSEAXLH8IroUhH1ZXRzVLdmju8qCmgbUSxbWIYX8dHZm7OXTduTl0fRG1vCwZBfa5scQl39rXM2F9ER25rnkcxkkMVQmZKdtSrydzK7kKTbLlaOsBdkeiT9mTHY1+06jyOeM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UxFCgIba+BMvs7KGEiCuQhSQ9yw9O2uVoCDV2eXsvRkdJIrKa1V33/+sItZI0pujmLiXi/lBKpymA588ZbrjHPIjNs1/XAWMYUrREYd9vVNhqK7Lkm5lstMb4wQouXonlJy5ufWDdhm/R2ilYsTsfQmEz3n3AvG+8nT+PR38zyE= Received: by 10.150.206.21 with SMTP id d21mr632914ybg.227.1209134854153; Fri, 25 Apr 2008 07:47:34 -0700 (PDT) Received: by 10.151.11.1 with HTTP; Fri, 25 Apr 2008 07:47:34 -0700 (PDT) Message-ID: <3c0b01820804250747y4c16392dg18452be3553a62c5@mail.gmail.com> Date: Fri, 25 Apr 2008 10:47:34 -0400 From: "Alexander Sack" To: "Alain G. Fabry" In-Reply-To: <20080425130152.GA28369@ducati-748.3rdrock.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20080425130152.GA28369@ducati-748.3rdrock.kicks-ass.net> Cc: freebsd-questions@freebsd.org Subject: Re: freeze and crashes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2008 15:12:01 -0000 Hi Alain: Without more details its hard to understand where your hang or freeze is coming from. What I DO suggest is that you build a debug kernel and/or minimally enable the kernel debugger (DDB). Then when the box is frozen you can get into the debugger (CTRL-ALT-ESC), type "bt", and post it on the list to give everybody a chance to understand what is hanging ("show msgbuf" as well actually). Here is some good documentation on how to build kernels (and debug ones) if you don't already know: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html Generally speaking I would enable in my KERNCONF file (GENERIC, etc. under src/sys//conf/) # Turn off debugging symbols makeoptions DEBUG=-g # Debugger support options KDB options DDB options KDB_TRACE If you want to go further, for example you believe this is a locking issue then you can go whole hog and do: # Heavy duty debugger options options DEBUG_LOCKS options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN Be warned that the kernel.debug KO (kernel object) will run a lot slower than a stock non-debug kernel (the extra metadata the kernel is keeping track off etc.) so there are instances where running a debug kernels could make a timing bug disappear or appear more/less frequently. In any event, if the problem is easily reproducible, I whole-heartily recommend you minimally enable KDB/DDB support so you can dump things on the appropriate list AS WELL AS build a complete debug kernel that may catch the issue (you will see console messages including lock order reversals and other nastiness). Here is some good documentation about kernel debugging: http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html Let us know how things go, -aps PS Make sure that new disk is good! On Fri, Apr 25, 2008 at 9:01 AM, Alain G. Fabry wrote: > Have a issue here. I've been running FreeBSD 6.3 release for about 6 months now without problem. Then last week I purchase another external HD and installed release 7.0. > Everything went great for about 3 weeks. Then suddenly my 7.0 started to crash (kde freezing, sudden reboots, etc). The first time happened when I was performing a portsnap on a FreeBSD Qemu session. It came up to the point where this 7.0 installation wasn't workable anymore. > > Since I need to work to earn money as the rest of us, I fell back to my 6.3 release external HD -> copied over my data files and now I'm starting to get the same symthoms. > > Input/output errors, reboot when performing a simple 'man something'. -> could this be a virus or something? > > I'm not sure how or what I can do to find out what could be the cause of this problem? > > Is there anywhere I can find out more about debugging such strange behavior. (everything works fine and then suddenly it freezes permanently or just reboots on its own) > > > Thanks, > > PS: I'm about to reinstall the 7.0 release and hope that that will work normal again. > > Alain > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >