Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 765718 - gui-wm/sway: crashes on launch with mesa-21.0.0_rc1
Summary: gui-wm/sway: crashes on launch with mesa-21.0.0_rc1
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Aaron Bauman (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-17 07:48 UTC by John Helmert III
Modified: 2021-01-18 14:57 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-01-17 07:48:52 UTC
Upgrading my unstable desktop recently produced a system which couldn't launch sway without an assertion failure in mesa on launch. My X server still launches, and this crash also occurs with the default sway config. Backtrace:

(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1  0x00007f97e15ed536 in __GI_abort () at abort.c:79
#2  0x00007f97e15ed41f in __assert_fail_base
    (fmt=0x7f97e17555e0 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=0x7f97e05ee7ff "nvc0->vb_elt_limit != ~0", file=0x7f97e05ee7c0 "../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c", line=212, function=<optimized out>) at assert.c:92
#3  0x00007f97e15fc7d2 in __GI___assert_fail
    (assertion=assertion@entry=0x7f97e05ee7ff "nvc0->vb_elt_limit != ~0", file=file@entry=0x7f97e05ee7c0 "../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c", line=line@entry=212, function=function@entry=0x7f97e05ee8e0 <__PRETTY_FUNCTION__.4> "nvc0_user_vbuf_range") at assert.c:101
#4  0x00007f97e026b040 in nvc0_user_vbuf_range (nvc0=0x5637c3655650, vbi=1, base=<synthetic pointer>, size=<synthetic pointer>) at ../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c:202
#5  nvc0_user_vbuf_range (size=<synthetic pointer>, base=<synthetic pointer>, vbi=1, nvc0=0x5637c3655650) at ../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c:202
#6  nvc0_update_user_vbufs_shared (nvc0=0x5637c3655650) at ../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c:288
#7  0x00007f97e026aaee in nvc0_state_validate
    (nvc0=nvc0@entry=0x5637c3655650, mask=mask@entry=4294967295, validate_list=validate_list@entry=0x7f97e091cb00 <validate_list_3d>, size=size@entry=34, dirty=dirty@entry=0x5637c3655b40, bufctx=0x5637c3652ff0)
    at ../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c:980
#8  0x00007f97e026ac27 in nvc0_state_validate_3d (nvc0=nvc0@entry=0x5637c3655650, mask=mask@entry=4294967295) at ../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_state_validate.c:998
#9  0x00007f97e026c661 in nvc0_draw_vbo (pipe=0x5637c3655650, info=0x7ffd3c662f00, indirect=0x0, draws=0x7ffd3c662ef8, num_draws=<optimized out>) at ../mesa-21.0.0-rc1/src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c:1030
#10 0x00007f97dfd72809 in cso_draw_vbo (draw=..., indirect=0x0, info=0x7ffd3c662f00, cso=<optimized out>) at ../mesa-21.0.0-rc1/src/gallium/auxiliary/cso_cache/cso_context.c:1684
#11 cso_draw_arrays (cso=<optimized out>, mode=mode@entry=6, start=start@entry=0, count=count@entry=4) at ../mesa-21.0.0-rc1/src/gallium/auxiliary/cso_cache/cso_context.c:1727
#12 0x00007f97df82cbf1 in st_draw_quad
    (st=st@entry=0x5637c36690e0, x0=x0@entry=-1, y0=y0@entry=0.944444418, x1=x1@entry=1, y1=y1@entry=1, z=1, s0=s0@entry=0, t0=t0@entry=0, s1=s1@entry=0, t1=0, color=color@entry=0x7f97d93f0284, num_instances=num_instances@entry=1)
    at ../mesa-21.0.0-rc1/src/mesa/state_tracker/st_draw.c:551
#13 0x00007f97df846e47 in clear_with_quad (clear_buffers=<optimized out>, ctx=0x7f97d93d9010) at ../mesa-21.0.0-rc1/src/mesa/state_tracker/st_cb_clear.c:355
#14 st_Clear (ctx=0x7f97d93d9010, mask=<optimized out>) at ../mesa-21.0.0-rc1/src/mesa/state_tracker/st_cb_clear.c:545
#15 0x00007f97e1834c56 in gles2_clear (wlr_renderer=<optimized out>, color=0x7ffd3c663140) at ../wlroots-0.12.0/render/gles2/renderer.c:72
#16 0x00005637c2427bfc in output_render (output=output@entry=0x5637c3ebd9f0, when=when@entry=0x7ffd3c6631b0, damage=damage@entry=0x7ffd3c6631c0) at ../sway-1.5.1/sway/desktop/render.c:1068
#17 0x00005637c2424050 in output_repaint_timer_handler (data=data@entry=0x5637c3ebd9f0) at ../sway-1.5.1/sway/desktop/output.c:607
#18 0x00005637c2424e31 in damage_handle_frame (listener=0x5637c3ebdb88, user_data=<optimized out>) at ../sway-1.5.1/sway/desktop/output.c:669
#19 0x00007f97e1876e4c in wlr_signal_emit_safe (signal=<optimized out>, data=0x5637c3cfa970) at ../wlroots-0.12.0/util/signal.c:29
#20 0x00007f97e1876e4c in wlr_signal_emit_safe (signal=signal@entry=0x5637c3e9cc68, data=data@entry=0x5637c3e9cae0) at ../wlroots-0.12.0/util/signal.c:29
#21 0x00007f97e1869be6 in wlr_output_send_frame (output=output@entry=0x5637c3e9cae0) at ../wlroots-0.12.0/types/wlr_output.c:670
#22 0x00007f97e183897e in page_flip_handler (fd=<optimized out>, seq=19966, tv_sec=332, tv_usec=744611, crtc_id=<optimized out>, data=0x5637c35a5340) at ../wlroots-0.12.0/backend/drm/drm.c:1535
#23 0x00007f97e10e2887 in drmHandleEvent () at /usr/lib64/libdrm.so.2
#24 0x00007f97e183bb57 in handle_drm_event (fd=<optimized out>, mask=<optimized out>, data=<optimized out>) at ../wlroots-0.12.0/backend/drm/drm.c:1545
#25 0x00007f97e18c65e2 in wl_event_loop_dispatch () at /usr/lib64/libwayland-server.so.0
#26 0x00007f97e18c41a5 in wl_display_run () at /usr/lib64/libwayland-server.so.0
#27 0x00005637c2421290 in server_run (server=<optimized out>) at ../sway-1.5.1/sway/server.c:234
#28 0x00005637c241598e in main (argc=1, argv=0x7ffd3c663c58) at ../sway-1.5.1/sway/main.c:410


CCing mesa maintainer (X11@) since this could be breakage in the new Mesa _rc1 (and sam, at his request).
Comment 1 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-01-17 07:54:19 UTC
Portage 3.0.13 (python 3.8.7-final-0, default/linux/amd64/17.1/systemd, gcc-10.2.0, glibc-2.32-r7, 5.4.83 x86_64)
=================================================================
System uname: Linux-5.4.83-x86_64-AMD_Ryzen_5_3400G_with_Radeon_Vega_Graphics-with-glibc2.2.5
KiB Mem:    14256120 total,   5597052 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sat, 16 Jan 2021 23:02:52 +0000
Head commit of repository gentoo: 0351d86a983897c3ff172d2603c0480825b66ace

Head commit of repository ajak: 5c796f87a9f5ccdae863e8b21136beddd28aadcb

Timestamp of repository guru: Sat, 16 Jan 2021 11:02:44 +0000
Head commit of repository guru: ea37a01f8a9b64408cdca835ab3f75be18b83ee5

Timestamp of repository holgersson-overlay: Fri, 15 Jan 2021 18:09:52 +0000
Head commit of repository holgersson-overlay: 19a8d2bcc2c56170a27e7777d5b1866e14329f0b

Timestamp of repository pentoo: Sat, 16 Jan 2021 13:02:49 +0000
Head commit of repository pentoo: bed0720dab729453cd3a7a6ceccc3d9f200a334e

Timestamp of repository steam-overlay: Tue, 12 Jan 2021 10:37:54 +0000
Head commit of repository steam-overlay: bd1215e0cf901abeb8494cba77cf12a098ae58bc

sh bash 5.1_p4
ld GNU ld (Gentoo 2.35.1 p2) 2.35.1
distcc 3.3.3 x86_64-pc-linux-gnu [disabled]
ccache version 4.1 [disabled]
app-shells/bash:          5.1_p4::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.0-r1::gentoo
dev-lang/python:          2.7.18-r5::gentoo, 3.7.9-r1::gentoo, 3.8.7::gentoo, 3.9.1::gentoo
dev-util/ccache:          4.1::gentoo
dev-util/cmake:           3.19.3::gentoo
sys-apps/baselayout:      2.7-r1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.3-r1::gentoo
sys-devel/binutils:       2.35.1-r1::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.3.2-r1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://anongit.gentoo.org/git/repo/sync/gentoo.git
    priority: -1000

ajak
    location: /var/db/repos/ajak
    sync-type: git
    sync-uri: https://gitlab.com/ajak/ajak
    masters: gentoo

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo

holgersson-overlay
    location: /var/db/repos/holgersson-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/holgersson-overlay.git
    masters: gentoo

pentoo
    location: /var/db/repos/pentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/pentoo.git
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver1 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/grub.d/10_linux /usr/bin/startx /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=znver1 --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=512 -O2 -pipe"
DISTDIR="/var/cache/distfiles/"
EMERGE_DEFAULT_OPTS="--quiet=y --binpkg-respect-use=y"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8 -l8"
PKGDIR="/var/cache/binpkgs/"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa amd64 berkdb bluetooth bzip2 cli crypt dbus dri examples fortran gdbm gtk iconv ipv6 libglvnd libtirpc multilib ncurses nls notmuch nptl opengl openmp pam pcre policykit pulseaudio readline seccomp split-usr ssl systemd tcpd udev unicode wayland xattr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="joystick libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" QEMU_SOFTMMU_TARGETS="*" QEMU_USER_TARGETS="*" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-17 08:28:45 UTC
have you tested with sway-9999?
Comment 3 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-01-17 17:36:32 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #2)
> have you tested with sway-9999?

Just tested, does not fix.
Comment 4 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-17 21:40:24 UTC
VIDEO_CARDS="nvidia nouveau amdgpu radeon radeonsi"

Which driver are you actually using?  I just updated to 21.0.0_rc1 (running wlroots/sway 9999).  Working fine on AMDGPU.
Comment 5 John Helmert III archtester Gentoo Infrastructure gentoo-dev Security 2021-01-18 02:38:19 UTC
(In reply to Matthew Thode ( prometheanfire ) from comment #4)
> VIDEO_CARDS="nvidia nouveau amdgpu radeon radeonsi"
> 
> Which driver are you actually using?  I just updated to 21.0.0_rc1 (running
> wlroots/sway 9999).  Working fine on AMDGPU.

The crash occurs with the nouveau driver, I only use sway with that. The nvidia driver is blacklisted when I run sway. I don't (currently) use any AMD driver on this machine, those flags are there primarily for binpkg consumers.
Comment 6 Harri Nieminen (Moiman) 2021-01-18 10:00:17 UTC
Fixed with https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8546
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2021-01-18 14:57:02 UTC
if that's the case it sounds like it's not a sway issue, but a mesa one, gonna close this bug out then.