From owner-freebsd-current@freebsd.org Fri Jan 24 13:52:53 2020 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 0A5601F0D5C for ; Fri, 24 Jan 2020 13:52:53 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from smtp-out-no.shaw.ca (smtp-out-no.shaw.ca [64.59.134.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4840vm0V8Vz4395; Fri, 24 Jan 2020 13:52:51 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from spqr.komquats.com ([70.67.125.17]) by shaw.ca with ESMTPA id uzOBiXQYbnCiguzOCiUlnj; Fri, 24 Jan 2020 06:52:50 -0700 X-Authority-Analysis: v=2.3 cv=cZisUULM c=1 sm=1 tr=0 a=VFtTW3WuZNDh6VkGe7fA3g==:117 a=VFtTW3WuZNDh6VkGe7fA3g==:17 a=kj9zAlcOel0A:10 a=Jdjhy38mL1oA:10 a=ndaoGXS1AAAA:8 a=6I5d2MoRAAAA:8 a=YxBL1-UpAAAA:8 a=eDwokxFdaq77lAW5kdsA:9 a=CjuIK1q_8ugA:10 a=mFeOnlTyF09QQMGr2mMI:22 a=IjZwj45LgO3ly-622nXo:22 a=Ia-lj3WSrqcvXOmTRaiG:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTPS id 0FDC8394; Fri, 24 Jan 2020 05:52:47 -0800 (PST) Received: from slippy.cwsent.com (localhost [127.0.0.1]) by slippy.cwsent.com (8.15.2/8.15.2) with ESMTP id 00ODqk5U009409; Fri, 24 Jan 2020 05:52:46 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Received: from slippy (cy@localhost) by slippy.cwsent.com (8.15.2/8.15.2/Submit) with ESMTP id 00ODqk4k009406; Fri, 24 Jan 2020 05:52:46 -0800 (PST) (envelope-from Cy.Schubert@cschubert.com) Message-Id: <202001241352.00ODqk4k009406@slippy.cwsent.com> X-Authentication-Warning: slippy.cwsent.com: cy owned process doing -bs X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7.1 Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Hans Petter Selasky cc: Cy Schubert , freebsd-current@freebsd.org, Mark Johnston Subject: Re: Powerd Panic In-reply-to: <77cdb188-a47e-4a0d-a09f-c04377cda084@selasky.org> References: <202001240701.00O71L0F005850@slippy.cwsent.com> <036a5750-1af7-b83d-e141-f43585a1b8d2@selasky.org> <202001241302.00OD2d44008368@slippy.cwsent.com> <629a6d48-cf47-e76b-81a0-db29d2400b2b@selasky.org> <202001241338.00ODchS7008979@slippy.cwsent.com> <77cdb188-a47e-4a0d-a09f-c04377cda084@selasky.org> Comments: In-reply-to Hans Petter Selasky message dated "Fri, 24 Jan 2020 14:42:50 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 24 Jan 2020 05:52:46 -0800 X-CMAE-Envelope: MS4wfFxLA+9PEaHl0RBg6T67axrlzMPFk93ZlQvRDm6mv7Q11cP/dQ8JFsqPVmhEVN2vJ6ScqmNPfEJW5WOrk8ai5vHdRIilLPy78OaZRRxwes3kjF3cMlWX PGA8+pW9A5nFBj4MyqqrIxA6859ZW0bzo/UY7Wb3kYHaAy8kaIrbM+pdQcij/n09Twmh/OBmZAurJFR1NAZ1/giI+uPovWXnrT6u2iRY1egLUnUM6u0OMiSA SM85a09RcKEqkWY92rCyxQ== X-Rspamd-Queue-Id: 4840vm0V8Vz4395 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 64.59.134.9) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-4.16 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RWL_MAILSPIKE_GOOD(0.00)[9.134.59.64.rep.mailspike.net : 127.0.0.18]; REPLYTO_EQ_FROM(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[17.125.67.70.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[9.134.59.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:6327, ipnet:64.59.128.0/20, country:CA]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-2.46)[ip: (-6.57), ipnet: 64.59.128.0/20(-3.17), asn: 6327(-2.46), country: CA(-0.09)]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Fri, 24 Jan 2020 13:52:53 -0000 In message <77cdb188-a47e-4a0d-a09f-c04377cda084@selasky.org>, Hans Petter Sela sky writes: > On 2020-01-24 14:38, Cy Schubert wrote: > > In message <629a6d48-cf47-e76b-81a0-db29d2400b2b@selasky.org>, Hans Petter > > Sela > > sky writes: > >> Hi, > >> > >> I think this patch will fix your issue. Can you check? > >> https://svnweb.freebsd.org/changeset/base/357050 > >> > >> Look like td->td_oncpu is invalid. > >> > >> > >>> pc = cpuid_to_pcpu[td->td_oncpu]; /* pcpu_find(td->td_oncpu); */ > >>> > >>> rm_tracker_add(pc, tracker); > >> > >> > >> > >> And thanks for running -current ;-) > > > > That patch is already there. All my machines are at r357066. > > > > OK, > > so maybe there are more corner cases to that patch. > > Adding Mark. > > Could you compile a kernel with debugging symbols, get a core dump and then: > > print td->td_oncpu > print pc > > from kgdb83 ? The kernel is already compiled with debugging symbols. It dumped except that savecore failed to save the dump in both cases. (My last core files on those two machines were from October.) I will try to reproduce the problem and instead of automatically rebooting save the core by hand. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org The need of the many outweighs the greed of the few.