Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI Apps Segfault on Ubuntu 22.04+ #1293

Open
1 of 2 tasks
vesk4000 opened this issue Oct 25, 2024 · 1 comment
Open
1 of 2 tasks

GUI Apps Segfault on Ubuntu 22.04+ #1293

vesk4000 opened this issue Oct 25, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vesk4000
Copy link

vesk4000 commented Oct 25, 2024

Is your feature request related to a problem:

Hi, this isn't a feature request/enhancement, but there seems to be something broken with the issue templates -- there's no bug report template. I was actually confused, so at first I reported this on the main WSL repo, but since this is quite clearly something graphics related I decided to also report it here.

Windows Version

Microsoft Windows [Version 10.0.22631.4317]

WSL Version

2.3.24.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

5.15.153.1-microsoft-standard-WSL2

Distro Version

Ubuntu 22.04.5 LTS, Ubuntu 24.04.1 LTS

Other Software

No response

Repro Steps

Install Ubuntu 22.04 or Ubuntu 24.04 (via the Microsoft store, the terminal, or by importing a custom WSL Ubuntu distribution).
Run

sudo apt update
sudo apt upgrade
sudo apt install mesa-utils
glxgears

Expected Behavior

I expect a window to open showing three gears. In fact, this works WSL for Ubuntu 20.04.6 LTS:

Image

Actual Behavior

It segfaults:

Segmentation fault (core dumped)

This happens when I try to run any (GPU-accelerated) app that I can think of. I've tried many different drivers and mesa PPA's, but none of them do the trick.

Diagnostic Logs

WslLogs-2024-10-21_19-12-01.zip

nvidia-smi
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 565.51.01              Driver Version: 565.90         CUDA Version: 12.7     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1650        On  |   00000000:01:00.0 Off |                  N/A |
| N/A   37C    P8              2W /   25W |       0MiB /   4096MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+

 ldd /usr/bin/glxgears
        linux-vdso.so.1 (0x00007fffb8dd9000)
        libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f7ce0097000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7cdffb0000)
        libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f7cdfe70000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7cdfc47000)
        libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f7cdfb8f000)
        libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f7cdfb5b000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f7ce012d000)
        libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7cdfb2f000)
        libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7cdfb29000)
        libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f7cdfb21000)
        libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f7cdfb09000)
        libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f7cdfafc000)

Running with GDB gives:

(gdb) run
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /usr/bin/glxgears
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe1293640 (LWP 803)]

Thread 1 "glxgears" received signal SIGSEGV, Segmentation fault.
0x00007fffffff9c30 in ?? ()

Image

@vesk4000 vesk4000 added the enhancement New feature or request label Oct 25, 2024
@R-Bower
Copy link

R-Bower commented Jan 3, 2025

fwiw, I had tons of segfault issues on my i9-13950HX, but it wasn't limited to GUIs, and it wasn't happening consistently. I fixed them by disabling the power saving settings in my laptop's BIOS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants