From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 16 14:29:57 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D37C32DF for ; Mon, 16 Mar 2015 14:29:57 +0000 (UTC) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 622B191E for ; Mon, 16 Mar 2015 14:29:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1426516187; l=2081; s=domk; d=fuckner.net; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References: Subject:CC:To:MIME-Version:From:Date; bh=Wa6GF7DBW/cKTSTcBc9w2WRcne6J21bWe62RFFPQ3cU=; b=ogSwSzsRj/RCVelDC3pV9lmJ0E1q7fkcHdGx5RlTO5uZPMBOt8LNau6hI1zUtic9fpO +9jPsWWV3+6e4Yju2JZEDMuRy4x7VcCVLv4QbT5ktADMCz6WqKWAvJ9uFZPgcEC74h6Yl GQThG1wm0NVvbh45zojO0L7V4SIaz8YgUdE= X-RZG-AUTH: :IWUHfUGtd9+6EujMWHx57N4dWae4bmTL/JIGbzkGUoozgkO4q1xDEhkgOJDsXNs= X-RZG-CLASS-ID: mo00 Received: from fuckner.delnet ([85.183.0.195]) by smtp.strato.de (RZmta 37.4 AUTH) with ESMTPA id U02b70r2GETkc6N; Mon, 16 Mar 2015 15:29:46 +0100 (CET) Message-ID: <5506E8D6.30703@fuckner.net> Date: Mon, 16 Mar 2015 15:29:42 +0100 From: Michael Fuckner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Konstantin Belousov Subject: Re: Server with 3TB Crashing at boot References: <20150314153941.GL2379@kib.kiev.ua> <5505160A.1020703@fuckner.net> <5505827D.6060404@fuckner.net> <5505982E.9060201@fuckner.net> <20150315193202.GS2379@kib.kiev.ua> <2138577776.537937.1426455964006.JavaMail.open-xchange@ptangptang.store> <20150316091758.GY2379@kib.kiev.ua> <5506ADA4.8020207@fuckner.net> <20150316103140.GA2379@kib.kiev.ua> <5506B23F.20400@fuckner.net> <20150316105301.GB2379@kib.kiev.ua> In-Reply-To: <20150316105301.GB2379@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-hackers@freebsd.org" , Ryan Stone , Steven Hartland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2015 14:29:58 -0000 On 03/16/2015 11:53 AM, Konstantin Belousov wrote: > On Mon, Mar 16, 2015 at 11:36:47AM +0100, Michael Fuckner wrote: >> On 03/16/2015 11:31 AM, Konstantin Belousov wrote: >>> On Mon, Mar 16, 2015 at 11:17:08AM +0100, Michael Fuckner wrote: >>>> Just generated, anything I should test in debugger? >>>> Else I'll do the same with STABLE next. >>> With stable, it is only interesting if 'fault' lines are gone. >>> >>>> >>>> http://dedi3.fuckner.net/~molli123/temp/head.txt >>>> >>>> doing minimal network traffic causes the kernel to panic. >>> Please do the following: >>> gdb kernel.debug (your kernel should be build with makeoptions DEBUG=-g) >>> in gdb do >>> (gdb) list *dmar_bus_dmamap_load_buffer+0x53 >>> >> >> http://dedi3.fuckner.net/~molli123/temp/gdb.txt <- is this what you need? > > No. gdb must be run on the live system, at the shell prompt. You did it > from the ddb. root@s4l:~ # gdb head-kernel.debug GNU gdb 6.1.1 [FreeBSD] Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "amd64-marcel-freebsd"... (gdb) list *dmar_bus_dmamap_load_buffer+0x53 0xffffffff80e7dd43 is in dmar_bus_dmamap_load_buffer (/usr/src-head/sys/x86/iommu/busdma_dmar.c:656). 651 map = (struct bus_dmamap_dmar *)map1; 652 pstart = trunc_page((vm_offset_t)buf); 653 pend = round_page((vm_offset_t)buf + buflen); 654 offset = (vm_offset_t)buf & PAGE_MASK; 655 ma_cnt = OFF_TO_IDX(pend - pstart); 656 ma = malloc(sizeof(vm_page_t) * ma_cnt, M_DEVBUF, map->cansleep ? 657 M_WAITOK : M_NOWAIT); 658 if (ma == NULL) 659 return (ENOMEM); 660 if (dumping) { (gdb) root@s4l:~ # logout kernel crashed instantly with the patches, bu maybe I made a mistake, serial was doing strange things. Recompiling now and booting again. I'll keep you updated.