Segmentation fault in sun4i-drm_drm.so
- OS: Buildroot
- GPU: Lima 400 (Allwinner H3)
- Kernel version: 5.12.6 (this repo)
- Mesa version: Mesa 21.1.1
- Xserver version: X.Org X Server 1.20.11
- Board: Orange Pi PC Plus
When running glxgears
, app throws Segmentation fault.
But kmscube
works just fine (smooth 60 FPS).
Logs:
Configs:
- defconfig
- buildroot defconfig (stripped)
- Only X11 config:
Section "Module"
Load "vgahw"
Load "fb"
Load "shadowfb"
Load "shadow"
Load "glamoregl"
EndSection
EDIT:
I built mesa3d with full debug symbols, and it looks like it's calling assert before:
Starting program: /usr/bin/glxgears
_lima_resource_create_with_modifiers: pres=0x1ba1af8 width=524288 height=1 depth=1 target=0 bind=10 usage=3 tile=0 last_level=0
glxgears: ../src/gallium/frontends/dri/dri2.c:563: dri2_allocate_textures: Assertion `drawable->textures[statt]' failed.
Thread 1 "glxgears" received signal SIGABRT, Aborted.
0xb6a703e0 in raise () from /lib/libc.so.6
(gdb) bt full
#0 0xb6a703e0 in raise () from /lib/libc.so.6
No symbol table info available.
#1 0xb6a5a86c in abort () from /lib/libc.so.6
No symbol table info available.
#2 0xb6a69568 in ?? () from /lib/libc.so.6
No symbol table info available.
Backtrace stopped: previous frame identical to this frame (corrupt stack?)