creating and immediately destroying an SDL window crashes gnome-shell with signal 5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-shell (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Running this Python script (requires python-sdl2 or python3-sdl2) immediately crashes gnome-shell.
import sdl2
sdl2.SDL_Init(0)
window = sdl2.SDL_
b'Hello, world!',
sdl2.
640, 480, 0)
sdl2.SDL_
sdl2.SDL_Quit()
If gnome-shell was run from a terminal, its console output is
(gnome-
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
(Details: serial 3567 error_code 3 request_code 18 (core protocol) minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the GDK_SYNCHRONIZE environment
variable to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)
Trace/breakpoint trap (core dumped)
ProblemType: Crash
DistroRelease: Ubuntu 17.10
Package: gnome-shell 3.26.1-0ubuntu1
ProcVersionSign
Uname: Linux 4.13.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu2
Architecture: amd64
CurrentDesktop: GNOME
Date: Wed Oct 11 00:56:53 2017
DisplayManager: gdm3
EcryptfsInUse: Yes
ExecutablePath: /usr/bin/
InstallationDate: Installed on 2016-02-19 (599 days ago)
InstallationMedia: Ubuntu-GNOME 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160218)
ProcCmdline: /usr/bin/
Signal: 5
SourcePackage: gnome-shell
StacktraceTop:
() at /usr/lib/
() at /usr/lib/
_XReply () at /usr/lib/
XIGetClientPointer () at /usr/lib/
() at /usr/lib/
Title: gnome-shell crashed with signal 5
UpgradeStatus: Upgraded to artful on 2017-05-02 (161 days ago)
UserGroups: adm audio bumblebee cdrom dip docker libvirt libvirtd lpadmin mock plugdev sambashare sbuild sudo wireshark
I tried to debug this with GDK_SYNCHRONIZE=1, but that makes the crash disappear.