WSL: Emacs crashes when I use "M-x list-packages"

Hello,

I’m using Windows 10 Creators Update, version 10.0.15063, and a fresh WSL install (Ubuntu 16.04.2). I’ve installed Emacs with:

sudo apt install emacs-nox

When I use

M-x list-packages

the packages list is shown, however any key I press Emacs is put in background and crashes. This basically means, that it is impossible to check the packages list and select what I want to install.

About this issue

  • Original URL
  • State: closed
  • Created 10 years ago
  • Reactions: 5
  • Comments: 44 (5 by maintainers)

Most upvoted comments

@ijean it doesn’t really crash, but it receives a SIGTTIN signal. If you type fg you can see that Emacs is still running, but the output is garbled. IMHO this issue is terminal-related

@marcogroppo - Yes I’m using I’m using Ubuntu 16.04 and Windows build 16251 (internal build). The terminal related changes I mention above should be in a Windows Insider build soon.

No other steps are required to trigger the bug. You’re able to get further than I am, so it would appear that fixes it.

Yes, Emacs 27.0.50 running on build16278 this is now resolved. I suspect this can be closed now.

@Jonjoe - I found some issues older than this but same to, and an interesting sentence

WSL installs Ubuntu 14.04 [*] and installing the full emacs24 package does not show the issue (notice that also the full package, a GTK3 build, starts in terminal mode, no GUI).

in https://lists.gnu.org/archive/html/emacs-devel/2016-12/msg00725.html but did not test it yet.

In my case, I had compiled emacs to support gtk2 on gentoo on WSL, and it does not make this problem even though in text terminal mode with -nw option. But, emacs24-nox and emacs25-nox (and more?) on ubuntu on WSL have this issue. And… I could not find any workaround except using X version of emacs yet.

please only report issues with the latest insider build (161xx), I guess the fixes will NEVER be backported to 15063.