* Your Windows build number: (Type `ver` at a Windows Command Prompt)
Microsof…t Windows [Version 10.0.18917.1000] with Ubuntu 18.04, WSL 2.
VcXsrv X Server Version 1.20.1.4
* What you're doing and what's happening: (Copy&paste the full set of _specific_ command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)
Trying to run z80pack, a Z-80 CPU simulator.
Before update to WSL 2, z80pack would open a graphical representation of an IMSAI computer. Now, I get the following error:
FrontPanel Simulator v2.1 Copyright (C) 2007-2015 by John Kichury
Can't connect to display ":0"
Segmentation fault
* What's wrong / what should be happening instead:
A picture of an IMSAI computer should appear in a separate window.
* Strace of the failing command, if applicable: (If `some_command` is failing, then run `strace -o some_command.strace -f some_command some_args`, and link the contents of `some_command.strace` in a [gist](https://gist.github.com/) here).
```
tom@TOM-HOME-PC:~/z80pack/imsaisim$ strace ./cpm22
execve("./cpm22", ["./cpm22"], 0x7ffd01082fd0 /* 23 vars */) = 0
brk(NULL) = 0x55675a8f8000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/tls/x86_64/x86_64", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/tls/x86_64", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/tls/x86_64", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/tls", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/x86_64/x86_64", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/x86_64", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel/x86_64", 0x7ffe267a5690) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/home/tom/z80pack/frontpanel/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
stat("/home/tom/z80pack/frontpanel", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
openat(AT_FDCWD, "tls/x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "x86_64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=63323, ...}) = 0
mmap(NULL, 63323, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fd3e1cea000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2030544, ...}) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd3e1ce8000
mmap(NULL, 4131552, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd3e16e2000
mprotect(0x7fd3e18c9000, 2097152, PROT_NONE) = 0
mmap(0x7fd3e1ac9000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e7000) = 0x7fd3e1ac9000
mmap(0x7fd3e1acf000, 15072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd3e1acf000
close(3) = 0
arch_prctl(ARCH_SET_FS, 0x7fd3e1ce9540) = 0
mprotect(0x7fd3e1ac9000, 16384, PROT_READ) = 0
mprotect(0x55675a19a000, 8192, PROT_READ) = 0
mprotect(0x7fd3e1cfa000, 4096, PROT_READ) = 0
munmap(0x7fd3e1cea000, 63323) = 0
getuid() = 1000
getgid() = 1000
getpid() = 33
rt_sigaction(SIGCHLD, {sa_handler=0x556759f91200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fd3e1720f20}, NULL, 8) = 0
geteuid() = 1000
brk(NULL) = 0x55675a8f8000
brk(0x55675a919000) = 0x55675a919000
getppid() = 31
stat("/home/tom/z80pack/imsaisim", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
stat(".", {st_mode=S_IFDIR|0777, st_size=4096, ...}) = 0
openat(AT_FDCWD, "./cpm22", O_RDONLY) = 3
fcntl(3, F_DUPFD, 10) = 10
close(3) = 0
fcntl(10, F_SETFD, FD_CLOEXEC) = 0
geteuid() = 1000
getegid() = 1000
rt_sigaction(SIGINT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGINT, {sa_handler=0x556759f91200, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fd3e1720f20}, NULL, 8) = 0
rt_sigaction(SIGQUIT, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGQUIT, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fd3e1720f20}, NULL, 8) = 0
rt_sigaction(SIGTERM, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=SIG_DFL, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fd3e1720f20}, NULL, 8) = 0
read(10, "#!/bin/sh\n\nrm -f disks/drivea.ds"..., 8192) = 108
stat("/home/tom/bin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/home/tom/bin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/bin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/sbin/rm", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/bin/rm", {st_mode=S_IFREG|0755, st_size=63704, ...}) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd3e1ce9810) = 34
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 34
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=34, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 34
stat("/home/tom/bin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/home/tom/bin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/local/sbin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/local/bin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/sbin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/usr/bin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/sbin/ln", 0x7ffe267a5cd0) = -1 ENOENT (No such file or directory)
stat("/bin/ln", {st_mode=S_IFREG|0755, st_size=67808, ...}) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd3e1ce9810) = 35
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 35
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=35, si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
rt_sigreturn({mask=[]}) = 35
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd3e1ce9810) = 36
wait4(-1,
##### ### ##### ### ##### ### # #
# # # # # # # # # # # ## ##
# # # # # # # # # # # # # #
##### # # ##### # # ##### ##### # # # #
# # # # # # # # # # # #
# # # # # # # # # # # # #
##### ### ##### ### ##### ### # #
Release 1.36, Copyright (C) 1987-2017 by Udo Munk
IMSAI 8080 Simulation Release 1.17, Copyright (C) 2008-2017 by Udo Munk
CPU speed is 2 MHz
RAM size is 54 KB
Loader statistics for file bootrom.hex:
START : d800H
END : df7fH
LOADED: 0780H (1920)
FrontPanel Simulator v2.1 Copyright (C) 2007-2015 by John Kichury
Can't connect to display ":0"
[{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0, NULL) = 36
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=36, si_uid=1000, si_status=SIGSEGV, si_utime=3, si_stime=0} ---
rt_sigreturn({mask=[]}) = 36
write(2, "Segmentation fault\n", 19Segmentation fault
) = 19
read(10, "", 8192) = 0
exit_group(139) = ?
+++ exited with 139 +++
```