From owner-freebsd-current@freebsd.org Sun May 3 07:05:56 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 D36C42D6441 for ; Sun, 3 May 2020 07:05:56 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49FH832HrHz4Lh1 for ; Sun, 3 May 2020 07:05:55 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x42a.google.com with SMTP id d15so17013874wrx.3 for ; Sun, 03 May 2020 00:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=iMCyxydXzB2O+VB/1q3PFL/VqDXSM35uBUEZv4Q1jJM=; b=BgjE7/6nEQn8exGNl5MVdRUnSCXubci27yyUASjAvyTrgvl7Z8+aDvIf9qgaDBhR+C /yLzkS8HskEPMpEDxXGNNgTerXAzETreJ2Aujvo2jpwM39K22iXQqyDavPH9kGPrpk7Y 1Bwghok2aidXkKE9Sfr5rA51as2Mwi08oXMNSwlAZbwL5jAdBbUoE2kG2vTPZNEnV6by PGUFpetr6KkwA0V6k7IjPe+vK6sRpprPNPuWBdrUrVYH6DieIk3Yds2WsmGu2c6V/S16 c6C6ePC72jXWTvnXna7TAXaUDNFovrbqxTNaLk+Oh60G5ugdxFMziMui8UB3k8sWIMwV qv9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=iMCyxydXzB2O+VB/1q3PFL/VqDXSM35uBUEZv4Q1jJM=; b=Wd5GJB05/plQYt9cSsV4cJD3JWflski3RlWAG/gV76Gteq49x3Bz/BzdHV2Ac+efly IginMgOw4RxksTRXbS5o/Tpl7d1JawkP8/Xft0ipb6wn6jdPC0H0xhKpXzA0DWnYfdDg spb8/tYUzX8CpkdayEqhkYejiam/eJ3PNtMk0KO3PkOcj2WAwgPIhWwqlHNbjdxQc3j1 GHJpyCZWsq0gOASqKWPaiHNKeFzo5JX14nZIUT8R0VhvdTP0Sv1hlx3qE5xc+RS7xMcc coD+dJfUcO6ZW3Y3APqA0Tih4l/D75uaMyOGcjmSjcmi3hC7ObI5yvvrOKB5nd4xjnlq 4xSw== X-Gm-Message-State: AGi0Puaim/NGfeFNqcOizZhRhT4OHVkr0NslO2rCoaoT6ucQUA26zo1m PMKJ6PLgkYJitszp6RAw7tZFLvxE X-Google-Smtp-Source: APiQypKN82EDzfUCClXT1VkDJNW9r6yS5xqUTHeAuoP4yK+IciZzuO6QELJ8pLwV/4SONpSlbPO+lg== X-Received: by 2002:a5d:42cf:: with SMTP id t15mr12486720wrr.354.1588489553849; Sun, 03 May 2020 00:05:53 -0700 (PDT) Received: from ernst.home (pD9E2349A.dip0.t-ipconnect.de. [217.226.52.154]) by smtp.gmail.com with ESMTPSA id j4sm12564411wrm.85.2020.05.03.00.05.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 May 2020 00:05:53 -0700 (PDT) Date: Sun, 3 May 2020 09:05:52 +0200 From: Gary Jennejohn To: Chris Cc: Grzegorz Junka , Subject: Re: panic: Assertion lock == sq->sq_lock failed at /usr/src-13/sys/kern/subr_sleepqueue.c:371 Message-ID: <20200503090552.36bfe99c@ernst.home> In-Reply-To: <8df5a5cd4ac5bd9e10516c1321ea2de2@udns.ultimatedns.net> References: <8df5a5cd4ac5bd9e10516c1321ea2de2@udns.ultimatedns.net> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 49FH832HrHz4Lh1 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=BgjE7/6n; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gljennjohn@gmail.com designates 2a00:1450:4864:20::42a as permitted sender) smtp.mailfrom=gljennjohn@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[gljennjohn@gmail.com]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RECEIVED_SPAMHAUS_PBL(0.00)[154.52.226.217.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.34), ipnet: 2a00:1450::/32(-2.31), asn: 15169(-0.43), country: US(-0.05)]; RCVD_TLS_ALL(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: Sun, 03 May 2020 07:05:56 -0000 On Sat, 02 May 2020 16:28:46 -0700 Chris wrote: > On Sun, 3 May 2020 00:15:48 +0100 Grzegorz Junka list1@gjunka.com said > > > On 02/05/2020 20:43, Chris wrote: > > > On Sat, 2 May 2020 20:19:56 +0100 Grzegorz Junka list1@gjunka.com said > > > > > >> On 02/05/2020 14:56, Grzegorz Junka wrote: > > >> > > > >> > On 02/05/2020 14:15, Grzegorz Junka wrote: > > >> >> cpuid = 3 > > >> >> > > >> >> time = 1588422616 > > >> >> > > >> >> KDB: stack backtrace: > > >> >> > > >> >> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame >> > > >> 0xfffffe00b27e86b0 > > >> >> > > >> >> vpanic() at vpanic+0x182/frame 0xfffffe00b27e8700 > > >> >> > > >> >> panic() at panic+0x43/frame ... > > >> >> > > >> >> sleepq_add() > > >> >> > > >> >> ... > > >> >> > > >> >> I see > > >> >> > > >> >> db> > > >> >> > > >> >> in the terminal. I tried "dump" but it says, Cannot dump: no dump > > >> >> device specified. > > >> >> > > >> >> Is there a guide how to deal wit those, i.e. to gather information > > >> >> required to investigate issues? > > >> > > > >> > > >> Another thing is that I don't quite understand why the crash couldn't > > >> be dumped. > > >> > > >> root@crayon2:~ # swapinfo > > >> Device__________________ 1K-blocks________ Used______ Avail Capacity > > >> /dev/zvol/tank3/swap__ 33554432______________ 0 33554432________ 0% > > >> > > >> There is no entry in /etc/fstab though, should it be there too? > > > > > > How about your rc.conf(5) ? > > > > > > You need to define a dumpdev within it as: > > > > > > # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable > > > dumpdev="YES" > > > > > > Which defaults to the location of: > > > > > > /var/crash > > > > > > > Yes, of course I have 'dumpdev="AUTO"'. Should it be "YES" instead? > Yes, it should of course be AUTO. I was distracted at the time of writing. > Sorry. > Does /var/crash exist? > > That _should_ be enough. Assuming /var/crash is writable. > Sorry, but read the man page for rc.conf. This is the entry for dumpdev: dumpdev (str) Indicates the device (usually a swap partition) to which a crash dump should be written in the event of a system crash. If the value of this variable is "AUTO", the first suitable swap device listed in /etc/fstab will be used as dump device. Otherwise, the value of this variable is passed as the argument to dumpon(8). To disable crash dumps, set this variable to "NO". If there are no swap devices in /etc/fstab then "AUTO" will not work. But a partition can be specified. I have dumpdev="/dev/ada0p5" in my rc.conf. /var/crash is the target for crash dumps after the system is re-booted. -- Gary Jennejohn