Package: pterm
Version: 0.69-1
Severity: normal
Tags: upstream

pterm crashes immediately running under Wayland (gnome-shell).

The reason is that (since this verson is built against gtk+ 3)
gtk defaults to the Wayland backend, but pterm makes raw X11
anyway. If I force the use of the X11 backend with

GDK_BACKEND=x11 pterm

it works. Note that putty suffers from the same problem.

Either the GDK_BACKEND should be pinned temporarily or
the build should use

DEB_CPPFLAGS_MAINT_APPEND += -DNOT_X_WINDOWS

which seems to work. The latter might need -Wno-error=unused-function. Also,
there is a problem with the default font setting
"server:fixed" which doesn't work under Wayland.


Stack trace:

Thread 1 "pterm" received signal SIGSEGV, Segmentation fault.
0x00007f945d2fd65c in XGetDefault (dpy=0x55df6fa92900, prog=<optimized out>,
    name=0x55df6f178a37 "BugDHGEx2") at ../../src/GetDflt.c:218
218     ../../src/GetDflt.c: No such file or directory.
(gdb) where
#0  0x00007f945d2fd65c in XGetDefault (dpy=0x55df6fa92900, prog=<optimized
out>, name=0x55df6f178a37 "BugDHGEx2") at ../../src/GetDflt.c:218
#1  0x0000000000042521 in  ()
#2  0x000055df6f150810 in get_setting (key=key@entry=0x55df6f178a37
"BugDHGEx2") at unix/uxstore.c:347
#3  0x000055df6f150a18 in read_setting_i (handle=handle@entry=0x55df6faf55f0,
key=key@entry=0x55df6f178a37 "BugDHGEx2", defvalue=0) at unix/uxstore.c:421
#4  0x000055df6f126cd5 in gppi_raw (def=<optimized out>, name=0x55df6f178a37
"BugDHGEx2", handle=0x55df6faf55f0) at settings.c:146
#5  0x000055df6f126cd5 in load_open_settings
(sesskey=sesskey@entry=0x55df6faf55f0, conf=conf@entry=0x55df6fa85020) at
settings.c:860
#6  0x000055df6f12819c in load_settings (section=<optimized out>,
conf=0x55df6fa85020) at settings.c:699
#7  0x000055df6f11256f in main (argc=<optimized out>, argv=<optimized out>)
    at unix/gtkmain.c:605






-- System Information:
Debian Release: 9.0
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 
'experimental-debug'), (1, 'experimental')
Architecture: amd64
 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.11.0-rc8 (SMP w/4 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pterm depends on:
ii  libatk1.0-0          2.22.0-1
ii  libc6                2.24-10
ii  libcairo-gobject2    1.14.8-1
ii  libcairo2            1.14.8-1
ii  libgdk-pixbuf2.0-0   2.36.5-2
ii  libglib2.0-0         2.52.0-1
ii  libgtk-3-0           3.22.12-1
ii  libpango-1.0-0       1.40.5-1
ii  libpangocairo-1.0-0  1.40.5-1
ii  libx11-6             2:1.6.4-3

pterm recommends no packages.

Versions of packages pterm suggests:
ii  putty-doc  0.69-1+rsc

-- no debconf information

Reply via email to