From nobody Sat Jan 8 18:55:01 2022 X-Original-To: ports-bugs@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 C537A192FC0A for ; Sat, 8 Jan 2022 18:55:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JWTmP2nGFz3QDH for ; Sat, 8 Jan 2022 18:55:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3E9C423E1E for ; Sat, 8 Jan 2022 18:55:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 208It1ha005942 for ; Sat, 8 Jan 2022 18:55:01 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 208It149005941 for ports-bugs@FreeBSD.org; Sat, 8 Jan 2022 18:55:01 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 261041] mesa-devel: Crash when built with debug symbols. Failed Assertion in __gen_uint_nonzero Date: Sat, 08 Jan 2022 18:55:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: ashafer@badland.io X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641668101; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EcVCtVFUIN3H3e1zSWH9I5AWOBXiZ0OVQkEI4PB1Z18=; b=itKTf+FXq/healJPhSQOgDCWWDbkSpB9o2SSdBicNpndqf+a9TS2GtICPaKZViCWLv/miP ucCXHSfbg7ERKkL5T/veY3GDqLX7AKDZWmErcllH8igQVlxRD7HlL07a8tyNLobmJter9G LyzDwCQMb6BKSUihQw7kwt+IFTL3+bkOrjCtb1SmzGyOug86f02UCYBvEgyAAjpmPqeMG6 Edvnji2JJWa8/+hPeNcPmP8/CQJBBFKy+fYuHOFItGcsWmJW1QxeGgzd2TMqyzSd+vsEy1 TBbwx3OHLox8STUWLXDZ4CF4uSrtTA+Hj6wrwTrMAsFaZk+pkq/uCvld+LKZpQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641668101; a=rsa-sha256; cv=none; b=CG/G62T1+V4VKr3y4ON1fdX5cjjG086zSB9u4xJOyVimQtKQY6c4YnVtk2xPnfFk930hQF orTOb00HhBJZ17kjL7vXajfr4+H7P9eoG8gfHO9UvecNv8d0jDimWb1GDwkRkgK/yKQfTN XtFQ094kF7R7TuL+BJN3tLAXDCfdC1xRRUwpxLKwTosajilVvXt6puSvnu3iyZgH+xh5e7 6Gvs9JSCQ2i/HD31GBlhSYIXox7iR8YGgoVEa/NNqkrgQpR6KXeA9x0QMuKgzw37SR67UQ Cl3c2uH0P208UKu/TPlPwGq//bojbMznoYJcw4Oa3DQeQgtQGIrnIPt+molg5Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261041 Bug ID: 261041 Summary: mesa-devel: Crash when built with debug symbols. Failed Assertion in __gen_uint_nonzero Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: ashafer@badland.io Updated to mesa-devel 21.3.b.2451 today, and was greeted with the following crash while trying to start any graphical application (my wayland composito= r, but also while starting X).=20 This happens only when building with: make WITH_DEBUG=3Dyes STRIP=3D=20 Reproduced by just running startxfce4. Building without debug works fine for me, which explains why the binary package doesn't have this problem. Here's the backtrace from gdb Xorg: Assertion failed: (v !=3D 0ull), function __gen_uint_nonzero, file src/intel/genxml/gen9_pack.h, line 82. Thread 1 "MainThread" received signal SIGABRT, Aborted. Sent by thr_kill() from pid 10603 and user 0. thr_kill () at thr_kill.S:4 warning: Source file is more recent than executable. 4 RSYSCALL(thr_kill) (gdb) bt #0 thr_kill () at thr_kill.S:4 #1 0x00000008009f50d4 in __raise (s=3Ds@entry=3D6) at /usr/freebsd-src/lib/libc/gen/raise.c:52 #2 0x0000000800aa6769 in abort () at /usr/freebsd-src/lib/libc/stdlib/abort.c:67 #3 0x00000008009d7ea1 in __assert (func=3D, file=3D, line=3D, failedexpr=3D) at /usr/freebsd-src/lib/libc/gen/assert.c:51 #4 0x00000008036c6707 in __gen_uint_nonzero (v=3D0, start=3D22, end=3D28) = at src/intel/genxml/gen9_pack.h:82 #5 GFX9_3DSTATE_STENCIL_BUFFER_pack (data=3D0x0, dst=3D0x8013e0a54, values=3D0x7fffffffe3a0) at src/intel/genxml/gen9_pack.h:6549 #6 isl_gfx9_emit_depth_stencil_hiz_s (dev=3D0x801213360, batch=3D0x8013e0a= 34, info=3D0x7fffffffe4e0) at ../src/intel/isl/isl_emit_depth_stencil.c:324 #7 0x0000000803657391 in isl_emit_depth_stencil_hiz_s (dev=3D0x801213360, batch=3D0x8013e0a34, info=3D0x7fffffffe4e0) at ../src/intel/isl/isl.c:2462 #8 0x0000000803c279a8 in iris_set_framebuffer_state (ctx=3D0x80aa318b0, state=3D0x80aa594d8) at ../src/gallium/drivers/iris/iris_state.c:3181 #9 0x0000000802f2227f in tc_call_set_framebuffer_state (pipe=3D0x80aa318b0, call=3D0x80aa594d0, last=3D0x80aa59638) at ../src/gallium/auxiliary/util/u_threaded_context.c:1064 #10 0x0000000802f219e8 in tc_batch_execute (job=3D0x80aa593e8, gdata=3D0x0, thread_index=3D0) at ../src/gallium/auxiliary/util/u_threaded_context.c:211 #11 0x0000000802f217f2 in _tc_sync (tc=3D0x80aa58040, info=3D0x801f39a16 "n= ormal", func=3D0x801f10e8a "tc_flush") at ../src/gallium/auxiliary/util/u_threaded_context.c:362 #12 0x0000000802f28420 in tc_flush (_pipe=3D0x80aa58040, fence=3D0x0, flags= =3D0) at ../src/gallium/auxiliary/util/u_threaded_context.c:2997 #13 0x00000008029ff0f5 in st_flush (st=3D0x801320c00, fence=3D0x0, flags=3D= 0) at ../src/mesa/state_tracker/st_cb_flush.c:61 #14 0x00000008029ff1da in st_glFlush (ctx=3D0x80aa99a40, gallium_flush_flag= s=3D0) at ../src/mesa/state_tracker/st_cb_flush.c:95 #15 0x000000080265af4f in _mesa_flush (ctx=3D0x80aa99a40) at ../src/mesa/main/context.c:1656 #16 0x000000080265b090 in _mesa_Flush () at ../src/mesa/main/context.c:1690 #17 0x0000000801d42893 in shared_dispatch_stub_217 () at src/mapi/shared-glapi/glapi_mapi_tmp.h:21678 #18 0x0000000801b3a8e9 in () at /usr/local/lib/xorg/modules/libglamoregl.so #19 0x0000000801b1824b in () at /usr/local/lib/xorg/modules/drivers/modesetting_drv.so #20 0x0000000801b1771b in () at /usr/local/lib/xorg/modules/drivers/modesetting_drv.so #21 0x00000000002a49de in BlockHandler () #22 0x000000000041501a in WaitForSomething () #23 0x00000000002994ac in () #24 0x00000000002a3e3c in () #25 0x000000000028c520 in _start () uname -a:=20 FreeBSD 14.0-CURRENT FreeBSD 14.0-CURRENT #6 main-n251309-fc21aafe5ff2: Sat= Dec 4 00:13:35 EST 2021=20=20=20=20 root@mick:/usr/obj/usr/freebsd-src/amd64.amd64/sys/GENERIC-NODEBUG amd64 Also installed are mesa-dri/mesa-libs at 21.1.8, drm-kmod (aka drm-current-kmod-5.4.144.g20211012) It seems someone noticed this on android: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5653 Sounds like a recent mesa commit might have started tripping the assertions they added last October? Feels like a mesa issue, but somehow might be triggered by how we build WITH_DEBUG? Can someone else please verify this to rule out it being an issue with my local build environment? --=20 You are receiving this mail because: You are the assignee for the bug.=