Date: Sat, 08 Jan 2022 18:55:01 +0000 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 Message-ID: <bug-261041-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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<optimized out>, file=3D<optimiz= ed out>, line=3D<optimized out>, failedexpr=3D<optimized out>) 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-261041-7788>