We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4622

Summary: X11_ShowMessageBox() fails
Product: SDL Reporter: Markus Ewald <cygon>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.9   
Hardware: x86_64   
OS: Linux   

Description Markus Ewald 2019-05-05 10:11:09 UTC
SDL isn't able to display message boxes on any Linux+KDE system I've tried.

My main workstation, also experiencing the issue, is running Gentoo Linux 4.19.27 with KDE Plasma 5.14.5.

GDB shows that it's running into SDL_x11messagebox.c, X11_ShowMessageBox(). The calls to pipe() and fork() succeed. However, somewhat further along, line 858 as of version 2.0.9, the first call to read() from the pipe fails.

This may indicate that the forked process immediately exited.

- - - - -

I can reproduce this on all Linux machines I have access to (all running Gentoo).

It is reproducible in all cases by simply compiling the message box example from the SDL wiki: https://wiki.libsdl.org/SDL_ShowMessageBox

I've tried with Gentoo's official ebuild of SDL2, the libraries from Epic's Unreal Engine 4 dependency repo and SDL2 2.0.9 built by myself. Same issue in all cases.