From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 16 15:40:29 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 2B7493BF for ; Mon, 16 Mar 2015 15:40:29 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C1F51667 for ; Mon, 16 Mar 2015 15:40:28 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t2GFeM1W046182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 Mar 2015 17:40:22 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t2GFeM1W046182 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t2GFeM0s046179; Mon, 16 Mar 2015 17:40:22 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Mon, 16 Mar 2015 17:40:22 +0200 From: Konstantin Belousov To: Michael Fuckner Subject: Re: Server with 3TB Crashing at boot Message-ID: <20150316154022.GD2379@kib.kiev.ua> References: <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> <5506E8D6.30703@fuckner.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5506E8D6.30703@fuckner.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home 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 15:40:29 -0000 On Mon, Mar 16, 2015 at 03:29:42PM +0100, Michael Fuckner wrote: > 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. Try to apply only the first patch for now, keeping the second (leaky patch) out of scope.