Bug#981722: DRM: Segfault on Etnaviv

Guido Günther agx at sigxcpu.org
Wed Feb 3 08:56:21 GMT 2021


Package: libsdl2-2.0-0
Version: 2.0.14+dfsg2-3
Severity: normal

Hi,
SDL2 currently segfaults on imx8 hardware with the DRM backend when trying to
use osk-sdl (currenty in NEW) when trying to use a cursor plane (so
other applications should hit this as well):

[Current thread is 1 (Thread 0xffffa4ab4600 (LWP 2285))]
(gdb) bt
#0  KMSDRM_ShowCursor (cursor=<optimized out>) at ./src/video/kmsdrm/SDL_kmsdrmmouse.c:317
#1  0x0000ffffa64d028c in KMSDRM_CreateWindow (_this=0xaaaab75463f0, window=0xaaaab755f490) at ./src/video/kmsdrm/SDL_kmsdrmvideo.c:1839
#2  0x0000ffffa64add14 in SDL_CreateWindow_REAL (title=0xaaaaaf22eb20 "OSK SDL", x=<optimized out>, y=<optimized out>, w=<optimized out>, h=<optimized out>, flags=1) at ./src/video/SDL_video.c:1594
#3  0x0000aaaaaf223890 in main ()

This is due to

   fb = KMSDRM_FBFromBO(video_device, dispdata->cursor_bo);

failing. The buster version works and above changes were reverted in
current hg so 2.0.15 is working as well but a backport is non trivial
since most of the code there got rolled back so backporting that would
be rather invasive.

Any suggestion how to best resolve that for bullseye (if at all)?

Cheers,
 -- Guido

-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-debug'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf, arm64

Kernel: Linux 5.10.0-1-amd64 (SMP w/4 CPU threads)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libsdl2-2.0-0 depends on:
ii  libasound2          1.2.4-1.1
ii  libc6               2.31-9
ii  libdrm2             2.4.103-2
ii  libgbm1             20.3.3-1
ii  libpulse0           14.1-1
ii  libwayland-client0  1.18.0-2~exp1.1
ii  libwayland-cursor0  1.18.0-2~exp1.1
ii  libwayland-egl1     1.18.0-2~exp1.1
ii  libx11-6            2:1.7.0-2
ii  libxcursor1         1:1.2.0-2
ii  libxext6            2:1.3.3-1.1
ii  libxi6              2:1.7.10-1
ii  libxinerama1        2:1.1.4-2
ii  libxkbcommon0       1.0.3-2
ii  libxrandr2          2:1.5.1-1
ii  libxss1             1:1.2.3-1
ii  libxxf86vm1         1:1.1.4-1+b2

libsdl2-2.0-0 recommends no packages.

Versions of packages libsdl2-2.0-0 suggests:
ii  xdg-utils  1.1.3-2

-- no debconf information



More information about the Pkg-sdl-maintainers mailing list