Bug#924762: emacs: commandline with extended characters kills the X server

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#924762: emacs: commandline with extended characters kills the X server

ziegler
Package: emacs
Version: 1:26.1+1-3.2
Severity: grave
Tags: upstream

Dear Maintainer,

the command "emacs FILENAME", with extended characters in FILENAME,
causes the X-server to crash immediately.

xdm.log contains:

  Sun Mar 17 01:43:04 2019 xdm info (pid 7547): sourcing
  /etc/X11/xdm/Xreset
  XIO:  fatal IO error 4 (Interrupted system call) on X server ":0"
        after 19 requests (13 known processed) with 0 events remaining.
        (II) Server terminated successfully (0). Closing log file.


To reproduce, type "emacs $(echo -e \\xE4)" in an X-terminal.

This does not happen in the console.

Also, if emacs --daemon is running," emacsclient -c FILENAME" works
fine.

I put Severity:grave, because of the potential data loss.

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (990, 'testing'), (50, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 5.0.2-00092-ge9de71fc75e3 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_USER
Locale: LANG=de_DE, LC_CTYPE=de_DE (charmap=ISO-8859-1), LANGUAGE=de_DE (charmap=ISO-8859-1)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages emacs depends on:
ii  emacs-gtk  1:26.1+1-3.2

emacs recommends no packages.

emacs suggests no packages.

-- no debconf information

Reply | Threaded
Open this post in threaded view
|

Bug#924762: further information

ziegler
The problem occurs also with the current kernel
linux-image-4.19.0-4-amd64.

Reply | Threaded
Open this post in threaded view
|

Bug#924762: further information

ziegler
In reply to this post by ziegler
Normally I have LANG=De_de and the kernel parameter
vt.default_utf8=0. E4 codes Umlaut-a in ISO 8859-1.
The bug occured in a real world situation (the file was
"mär19"). To reproduce on other keyboards: "touch $(echo -e
\\xE4)" and  "nano $(echo -e \xE4)" work. "ls" shows the
filename correctly.

For another test, I changed set LANG=C in
/etc/default/locale and rebootet withou the kernel paramter
vt.default_utf8=0. This did not influence the bug.

I have tried older versions of /usr/bin/emacs-gtk (without
installing the whole package) down to 1.25.2+1-11. They show
the same bug.

meld is also a gtk-editor. But "meld $(echo -e \xE4)"
works fine.
Reply | Threaded
Open this post in threaded view
|

Bug#924762: further information: window manager

ziegler
In reply to this post by ziegler
I use xfce4 as a window-manager. The bug does NOT occur
under icewm.

Reply | Threaded
Open this post in threaded view
|

Bug#924762: further information: window manager

Dominique Dumont
In reply to this post by ziegler
On Sun, 17 Mar 2019 16:38:23 +0100 [hidden email] wrote:
> I use xfce4 as a window-manager. The bug does NOT occur
> under icewm.

This looks like a bad interaction between emacs and xfce4, I'd guess then
emacs is sending the file name to xfc4 to set the widget title.

Could you try to reproduce the bug while passing "-T foo" option to emacs ?
This will set the widget title to "foo" instead of "mär19"

HTH

Reply | Threaded
Open this post in threaded view
|

Bug#924762: emacs -T

ziegler
In reply to this post by ziegler
On the other hand,
also

  emacs -T ä foo

crashes the C-server.

Martin
Reply | Threaded
Open this post in threaded view
|

Processed: Re: Bug#924762: a bug in xfce4? / triage

Debian Bug Tracking System
In reply to this post by ziegler
Processing control commands:

> reassign -1 xfce4
Bug #924762 [emacs] emacs: commandline with extended characters kills the X server
Bug reassigned from package 'emacs' to 'xfce4'.
No longer marked as found in versions emacs/1:26.1+1-3.2.
Ignoring request to alter fixed versions of bug #924762 to the same values previously set
> severity -1 normal
Bug #924762 [xfce4] emacs: commandline with extended characters kills the X server
Severity set to 'normal' from 'grave'

--
924762: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=924762
Debian Bug Tracking System
Contact [hidden email] with problems