From nobody Mon Sep 22 16:30:31 2025 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4cVpWf5Lmsz6877r for ; Mon, 22 Sep 2025 16:30:54 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from fhigh-b8-smtp.messagingengine.com (fhigh-b8-smtp.messagingengine.com [202.12.124.159]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4cVpWf2tvbz3k5g for ; Mon, 22 Sep 2025 16:30:54 +0000 (UTC) (envelope-from chuck@tuffli.net) Authentication-Results: mx1.freebsd.org; none Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfhigh.stl.internal (Postfix) with ESMTP id 4B3827A0136; Mon, 22 Sep 2025 12:30:53 -0400 (EDT) Received: from phl-imap-17 ([10.202.2.105]) by phl-compute-04.internal (MEProxy); Mon, 22 Sep 2025 12:30:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuffli.net; h=cc :content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1758558653; x=1758645053; bh=O9Yax50YPD IDxC7421uiZXRzsGf8hw7sqSX+xVi47uw=; b=RAyFYpf4EM4x68OU9x9yTXnQ9c Fk2vbIDt6hcJUl0/bF6Jz8gzONJGLxPYXqGfZ3uvYs8+iF05Ax1wkGjZD+ZGel7+ QUEGPDEodm35BEQCoE7Qe5ij2k9SZVuHVnHFLw5N/BeVQ6D5DG46p303kUIMqmTX Sf1dMU0qPYF3ugyyjcviv/IqD/OHoZhn+gB3FCF7WK7p1F0FvNYasApL8THUf5iS Ml5ksUOnq38Lrk+zTptnK/JFAO84/GFYV/BDLOpRC5psbcXcRxLZD3cS4ZBS7a2F GoMwyWMGE2hqtQm7AZpOEc/i3lsZU3giJsxaJXnvBb/1BcfRLRIATKJNA88A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1758558653; x=1758645053; bh=O9Yax50YPDIDxC7421uiZXRzsGf8hw7sqSX +xVi47uw=; b=G4oukUlV1j/47Sq4zP0aDSRMhOa9/lEwl7wsZrMWlucmCUoAr/g gBXax6lv3qru75HjhluEK0LFq3U+1zU7yehA5c5nSKudtHaXLF5higeME18TBydT NGlXPMWfO8hF+z6i4ReauJcWhmDULADUnHIvj8nMKHS700463gfo25jbelNKHddQ ozB6CRQypM51aodSHTCddVhQHoRvEfJZMshegRYaanHh4sPX+OAfXlnp+Q4OZhfZ Lx+66TCPdLIMYTEJICIvrpBSJyH8aIScgHNGnUOe//uN6opE9laBJTb3eUOJuE5X zGx4zwVdKNkDVUagjKzMqQSYWP6Zu1uSXjg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggdehkeeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpefoggffhffvkfgjfhfutgesrgdtreerredttdenucfhrhhomhepfdevhhhutghkucfv uhhffhhlihdfuceotghhuhgtkhesthhufhhflhhirdhnvghtqeenucggtffrrghtthgvrh hnpeejvefgveffleffheevveeivefghfeujeeikeehfffhgfffteeugfeghfettdetvden ucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegthhhutg hksehtuhhffhhlihdrnhgvthdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphho uhhtpdhrtghpthhtohepfhhrvggvsghsugdqvhhirhhtuhgrlhhiiigrthhiohhnsehfrh gvvggsshgurdhorhhgpdhrtghpthhtohepsggrkhhulhesihhithgsohhmsggrhidrohhr gh X-ME-Proxy: Feedback-ID: ib6f94606:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 1266EC40072; Mon, 22 Sep 2025 12:30:52 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-virtualization@freebsd.org Sender: owner-freebsd-virtualization@FreeBSD.org MIME-Version: 1.0 X-ThreadId: Aevyxa_LX6Wc Date: Mon, 22 Sep 2025 09:30:31 -0700 From: "Chuck Tuffli" To: "Bakul Shah" , "FreeBSD virtualization" Message-Id: In-Reply-To: References: Subject: Re: Assertion failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 706. Content-Type: multipart/alternative; boundary=4b53f30f18b7492ab14758e439a3c192 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4cVpWf2tvbz3k5g --4b53f30f18b7492ab14758e439a3c192 Content-Type: text/plain Content-Transfer-Encoding: 7bit On Sun, Sep 21, 2025, at 5:20 PM, Bakul Shah wrote: > On a 15.0-ALPHA3 host, bhyve fails when I try to start a 9front VM. > Error: > > Assertion failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emul.c, line 706. > fbuf frame buffer base: 0x38bfae800000 [sz 33554432] There doesn't appear to be an "easy button" to debug this, but this assert trips on an error in any of the BAR registrations. It would be instructive to understand the type of BAR (IO, memory, ROM, etc.) causing the error as that would indicate where to look next. If you run bhyve via a debugger (with symbols), it should stop on the assert, allowing you to investigate. But if the debugger approach is problematic, I'd sprinkle this function and others with EPRINTLN() (assuming that is something you are comfortable doing). --chuck --4b53f30f18b7492ab14758e439a3c192 Content-Type: text/html Content-Transfer-Encoding: quoted-printable
On Sun, Sep = 21, 2025, at 5:20 PM, Bakul Shah wrote:
On a 15.0-ALPHA3 host, bhyve fails when I try t= o start a 9front VM.
Error:

Assertion= failed: (error =3D=3D 0), function modify_bar_registration, file /usr/s= rc/usr.sbin/bhyve/pci_emul.= c, line 706.
fbuf frame buffer base: 0x38bfae800000 [sz 33= 554432]

There doesn't appear t= o be an "easy button" to debug this, but this assert trips on an error i= n any of the BAR registrations. It would be instructive to understand th= e type of BAR (IO, memory, ROM, etc.) causing the error as that would in= dicate where to look next. If you run bhyve via a debugger (with symbols= ), it should stop on the assert, allowing you to investigate. But if the= debugger approach is problematic, I'd sprinkle this function and others= with EPRINTLN() (assuming that is something you are comfortable doing).=

--chuck
--4b53f30f18b7492ab14758e439a3c192--