From owner-freebsd-current@freebsd.org Sun Jul 10 02:06:51 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A16D3B84912 for ; Sun, 10 Jul 2016 02:06:51 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 83F871E79 for ; Sun, 10 Jul 2016 02:06:51 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id 835C4B84911; Sun, 10 Jul 2016 02:06:51 +0000 (UTC) Delivered-To: current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8304CB84910 for ; Sun, 10 Jul 2016 02:06:51 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f48.google.com (mail-lf0-f48.google.com [209.85.215.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 13B971E78 for ; Sun, 10 Jul 2016 02:06:50 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f48.google.com with SMTP id l188so49449989lfe.2 for ; Sat, 09 Jul 2016 19:06:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=qKuFHqHxVHVSFpfAl/1KKO9IiAOywfKaK84ADEvoYwk=; b=kXh7EoLPfYeLtb5jcjKwBV+tBpKbWer7lI+GxqJUnmO7mz0zAd53OcCKl6jtKf7k6E IWiyCbaVmNRSPNXWBCI+eDCvUi1Qg/iimlhIvsNqMty3IGDwjVsU44ui/gkuaxrHjHkJ Bp6yF4vLt6niZ/29nHqy10gEKc2GzYRR5cuuXk7PXFgXh55xU77zVuozg/oU4W6CVpXD uTf1mm2DF/ZQleatOZ2lpTmF36rhKB8l5IDS4xOYSALwVavpnaAX3eOV44nBiiaPyYhg pGL6AetNAdxNpx02aW0bjMSGQQdFgmkZ8W0s7k3iMinh7SDtT7dy3svN+LXMFAbOaod+ 208w== X-Gm-Message-State: ALyK8tICv51A6QFBObE1lpBxTbJ45CfxJ8PVZZYgVuWZtjnSNkcicfBEG6GTokk8yjz4gg== X-Received: by 10.25.44.148 with SMTP id s142mr3374490lfs.146.1468116402451; Sat, 09 Jul 2016 19:06:42 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id z10sm7453801lfa.47.2016.07.09.19.06.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 09 Jul 2016 19:06:41 -0700 (PDT) Subject: Re: Recent -current stable panic at later boot stage To: Matthew Macy References: <378f847e-3257-19f0-2cf8-cd6319db5e06@freebsd.org> <8c432d68-a3c8-2f39-8429-f1fe920d002b@freebsd.org> <155d26ce8c4.12248bbba219469.8811983805604406181@nextbsd.org> Cc: "current@freebsd.org" From: Andrey Chernov Message-ID: <9775fe3b-db09-7b11-779f-fa2ae13ce2b3@freebsd.org> Date: Sun, 10 Jul 2016 05:06:40 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <155d26ce8c4.12248bbba219469.8811983805604406181@nextbsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Jul 2016 02:06:51 -0000 On 10.07.2016 4:30, Matthew Macy wrote: > > > > ---- On Sat, 09 Jul 2016 18:19:57 -0700 Andrey Chernov wrote ---- > > BTW, it never happens with 11-ALPHA3 even with world build for 12. > > > > On 09.07.2016 22:06, Andrey Chernov wrote: > > > SCHED_ULE used. I have textdump only. Interesting parts: > > > <118>Starting syslogd. > > > kernel trap 9 with interrupts disabled > > > > > > Fatal trap 9: general protection fault while in kernel mode > > > cpuid = 7; apic id = 07 > > > instruction pointer = 0x20:0xffffffff806b2585 > > > stack pointer = 0x28:0xfffffe022ccce8d0 > > > frame pointer = 0x28:0xfffffe022ccce950 > > > code segment = base 0x0, limit 0xfffff, type 0x1b > > > = DPL 0, pres 1, long 1, def32 0, gran 1 > > > processor eflags = resume, IOPL = 0 > > > current process = 10 (idle: cpu7) > > > > > > It happens at amd64/amd64/cpu_switch.S:ld_ldt: lldt %ax > > > > > > db> bt > > > > > > Tracing pid 10 tid 100009 td 0xfffff80002292000 > > > ld_ldt() at ld_ldt/frame 0xfffffe022ccce8e0 > > > sched_switch() at sched_switch+0x51d/frame 0xfffffe022ccce950 > > > mi_switch() at mi_switch+0x156/frame 0xfffffe022ccce980 > > > sched_idletd() at sched_idletd+0xf9/frame 0xfffffe022cccea70 > > > fork_exit() at fork_exit+0x84/frame 0xfffffe022ccceab0 > > > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe022ccceab0 > > > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > > Have their been no other stability issues on this machine? At first glance it looks like the ldt got corrupted. Is there no way to inspect that? It seems something wrong happens during incremental kernel update from 11-ALPLA3 to 12, i.e. some old kernel parts affects it. I clean all object and include files and rebuild the kernel from scratch and this panic is gone. Sorry for the noise, I should do it before reporting :(