From owner-freebsd-current@freebsd.org Sun May 22 09:45:16 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 52B45B42EEA for ; Sun, 22 May 2016 09:45:16 +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 3758A1E64 for ; Sun, 22 May 2016 09:45:16 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mailman.ysv.freebsd.org (Postfix) id 33155B42EE8; Sun, 22 May 2016 09:45:16 +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 30881B42EE7 for ; Sun, 22 May 2016 09:45:16 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: from mail-lf0-f49.google.com (mail-lf0-f49.google.com [209.85.215.49]) (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 ABB481E63 for ; Sun, 22 May 2016 09:45:15 +0000 (UTC) (envelope-from mailing-machine@vniz.net) Received: by mail-lf0-f49.google.com with SMTP id k98so5264580lfi.1 for ; Sun, 22 May 2016 02:45:15 -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=khmZx4X/Utp4IojBvzVbbNYU08n/Qnd9Whhi4zs9Zcc=; b=Ft1oywMLW9jgNG75ETyyINZ0YYk4cr/GbJjmexvO/RZc/E51fowW5NK4gFM0hSf+RI +niu6tpDmROPpPldoHJKIvKu+OOXHFN/qfBR7h+UJERwAUldV6SX6rhTloj/vOikkfhQ JtoEISZqXKEYOLfJAhaN2VQKCjeVQqGGYk6sY8exU9gJzr697g09lV33uC3zhAWCH64t 4Mq759XntKt5liPmxcqfnYSwCzxp2iCbreHRTodEPikx38/ctyDNilwvNE80g7EI3Dot kuB6PKn/mEq9lb79hqk5m1oroaxAChvXdXnYI/9nC/cQjCRdAY4J7hVmppGsUb5L2oRZ OysQ== X-Gm-Message-State: AOPr4FWKSXGHkEb40neHb0JuiD59FkUSLLwgorOuY8uKpuVvUYzzPloRmPHB39Bw8HXbIQ== X-Received: by 10.25.77.129 with SMTP id a123mr3444840lfb.3.1463910313620; Sun, 22 May 2016 02:45:13 -0700 (PDT) Received: from [192.168.1.2] ([89.169.173.68]) by smtp.gmail.com with ESMTPSA id j2sm4838857lfb.13.2016.05.22.02.45.12 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 22 May 2016 02:45:12 -0700 (PDT) Subject: Re: Recent -current cpucontrol panic: [cpuctl, 129]: cannot bind to target cpu 1 To: Konstantin Belousov References: <065e93bb-5269-b726-52cc-2f961656e5f9@freebsd.org> <20160522071407.GE89104@kib.kiev.ua> <9e7fec3a-869a-a0f8-999c-53b1b24d746d@freebsd.org> <20160522093245.GI89104@kib.kiev.ua> Cc: current@freebsd.org From: Andrey Chernov Message-ID: Date: Sun, 22 May 2016 12:45:12 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <20160522093245.GI89104@kib.kiev.ua> 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, 22 May 2016 09:45:16 -0000 On 22.05.2016 12:32, Konstantin Belousov wrote: > On Sun, May 22, 2016 at 12:19:32PM +0300, Andrey Chernov wrote: >> On 22.05.2016 10:14, Konstantin Belousov wrote: >>> On Sun, May 22, 2016 at 09:47:08AM +0300, Andrey Chernov wrote: >>>> With microcode_update_enable="YES" in rc.conf: >>>> >>>> db:0:kdb.enter.panic> show pcpu >>>> cpuid = 1 >>>> dynamic pcpu = 0xfffffe02ac1fd300 >>>> curthread = 0xfffff8000ae75a00: pid 736 "cpucontrol" >>>> curpcb = 0xfffffe023754eb80 >>>> fpcurthread = none >>>> idlethread = 0xfffff800022b5000: tid 100003 "idle: cpu1" >>>> curpmap = 0xfffff8000af02138 >>>> tssp = 0xffffffff80c1cf78 >>>> commontssp = 0xffffffff80c1cf78 >>>> rsp0 = 0xfffffe023754eb80 >>>> gs32p = 0xffffffff80c237d0 >>>> ldt = 0xffffffff80c23810 >>>> tss = 0xffffffff80c23800 >>>> db:0:kdb.enter.panic> bt >>>> Tracing pid 736 tid 100121 td 0xfffff8000ae75a00 >>>> kdb_enter() at kdb_enter+0x3b/frame 0xfffffe023754e620 >>>> vpanic() at vpanic+0x19f/frame 0xfffffe023754e6a0 >>>> kassert_panic() at kassert_panic+0x126/frame 0xfffffe023754e710 >>>> cpuctl_do_cpuid_count() at cpuctl_do_cpuid_count+0x85/frame >>>> 0xfffffe023754e750 >>>> cpuctl_ioctl() at cpuctl_ioctl+0x389/frame 0xfffffe023754e800 >>>> devfs_ioctl_f() at devfs_ioctl_f+0x156/frame 0xfffffe023754e860 >>>> kern_ioctl() at kern_ioctl+0x204/frame 0xfffffe023754e8c0 >>>> sys_ioctl() at sys_ioctl+0x171/frame 0xfffffe023754e9a0 >>>> amd64_syscall() at amd64_syscall+0x28e/frame 0xfffffe023754eab0 >>>> Xfast_syscall() at Xfast_syscall+0xfb/frame 0xfffffe023754eab0 >>>> --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x8009778ea, rsp = >>>> 0x7fffffffe788, rbp = 0x7fffffffe7d0 --- >>> >>> Show verbose dmesg of your boot. >> >> Attached. > Thanks. > >> >>> What scheduler do you use ? >> >> ULE >> >>> In the fired KASSERT, add printout of td->td_oncpu and show the updated >>> panic message. >> >> I add, but can't reproduce this bug again so far. >> > Do you have core file for the panic ? If yes, it would be at least > interesting to see the output of 'p *td' in kgdb. > No, just textdump.