From owner-freebsd-current@freebsd.org Tue Sep 8 17:30: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 653683D0A6B; Tue, 8 Sep 2020 17:30:56 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4BmBy80dt3z452l; Tue, 8 Sep 2020 17:30:55 +0000 (UTC) (envelope-from markjdb@gmail.com) Received: by mail-qk1-x744.google.com with SMTP id d20so16088002qka.5; Tue, 08 Sep 2020 10:30:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=Y24IO2upEyHZ2JiazVFuiBDXPC081SKq/UdzR8dAB1M=; b=aCQ3QN0qGM6omfKxueAlFPACHakbZudSegRQPf0lVk4gMWaOngl39ShKTiktdaJwF0 AUPIyasb4OQ/s+nqxISSxue+bloyAfRkrVGJ/JOEX340rWs8lKL2IImvtVAtVGMvvhCs KloMeFiO0qbetpKq/rnCUhMogn3z2FJgAiot6Er6g2Cu/SOWd8saqtDCU1eTqcN4pqk7 TIExIumNiq9PISPwAHoK5BBkzEGqKmg3KwwsceWWMIyV8LdeOpdq4P/AjTlBGX8X8Dvp t5r3Xx7RuN/6wEyNdh1jTOL3Mx+rFV4yoWFAE5MljIfbXN+HnS5aCB5THuze2SilMgAX ZdqA== X-Gm-Message-State: AOAM5307S7sSOauQ6hbZDg/XMzjjZSrgyf5dSNx0ozYlMR8KGlaa8TOp hoxF18EQHcPo2qJlXgH76DZDDo4mCC1sMg== X-Google-Smtp-Source: ABdhPJwhBSLkP4fBuoZVVPN6hEqDRkGX8ELvaZsz68mTtF25vMRMT+mBiSbZ9KyfqJ7nU8Hd9bzqSw== X-Received: by 2002:a37:a64a:: with SMTP id p71mr1091924qke.389.1599586254906; Tue, 08 Sep 2020 10:30:54 -0700 (PDT) Received: from raichu (toroon0560w-lp130-08-67-71-176-35.dsl.bell.ca. [67.71.176.35]) by smtp.gmail.com with ESMTPSA id v42sm102826qth.35.2020.09.08.10.30.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2020 10:30:53 -0700 (PDT) Sender: Mark Johnston Date: Tue, 8 Sep 2020 13:30:51 -0400 From: Mark Johnston To: Guido Falsi Cc: freebsd-current@freebsd.org, freebsd-fs@freebsd.org, Matt Macy Subject: Re: Boot error with OpenZFS Message-ID: <20200908173051.GB5058@raichu> References: <364bc35c-3930-2ce5-a3cf-3039bf671a92@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <364bc35c-3930-2ce5-a3cf-3039bf671a92@FreeBSD.org> X-Rspamd-Queue-Id: 4BmBy80dt3z452l X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.33 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: Tue, 08 Sep 2020 17:30:56 -0000 On Tue, Sep 08, 2020 at 07:24:38PM +0200, Guido Falsi wrote: > On 08/09/20 10:01, Guido Falsi wrote: > > Hi, > > > > I'm trying to update to recent head, but I can't boot my system with the > > compiled kernel. > > > > The system has ZFS on root and was working with previous kernel (before > > OpenZFS migration). > > > > I'm trying to boot r365437. > > > > I load zfs from loader with zfs_load="YES" as usual and get this error > > message at the start of kernel output: > > > > link_elf_obj: symbol lockstat_enabled undefined > > KLD file zfs.ko - could not finalize loading > > > > The zfs.ko file is aligned with the kernel and I did not observe errors > > while compiling. > > > > I am able to make the machine using the kernel from the most recent head > > snapshot on ftp.freebsd.org [1]. I'm also going to try with a kernel > > with debug symbols and one with GENERIC config. > > A locally built GENERIC works fine, so this is my fault. I clearly have > something wrong in my kernel config. > > I'll report anyway as soon as I discover what it is. Can you verify that adding "options KDTRACE_HOOKS" fixes the problem? I note that the zfs.ko Makefile has -DKTRACE_HOOKS in CFLAGS, among a few other surprising things.