mintty / wsltty

Mintty as a terminal for Bash on Ubuntu on Windows / WSL
Other
3.11k stars 104 forks source link

wslbridge2 segfault #328

Closed godlygeek closed 1 year ago

godlygeek commented 1 year ago

After upgrading my WSL today using wsl --upgrade, I can no longer run wsltty for any distribution. If I run C:\Users\mwozniski\AppData\Local\wsltty\bin\mintty.exe --hold=always --WSL="Ubuntu-20.04" so that the wsltty window doesn't immediately disappear, I see /bin/wslbridge2: Segmentation fault.

I see that a wslbridge2.exe.stackdump has appeared in my USERPROFILE directory, containing:

Exception: STATUS_ACCESS_VIOLATION at rip=7FFC8DB52533
rax=0000000000000000 rbx=00000000FFFFB940 rcx=00007FFC8DB00000
rdx=0000000000800040 rsi=00007FFC43A1E498 rdi=0000000000800040
r8 =00007FFC43A1DC44 r9 =00007FFC8DB52526 r10=0000000000800040
r11=00007FFC43A1DC44 r12=0000000000000801 r13=00007FFC43A1E448
r14=00000000FFFFC0E0 r15=00007FFC43A1E460
rbp=00007FFC43A1DC44 rsp=00000000FFFFB6C0
program=C:\Users\mwozniski\AppData\Local\wsltty\bin\wslbridge2.exe, pid 1923, thread main
cs=0033 ds=002B es=002B fs=0053 gs=002B ss=002B
Stack trace:
Frame        Function    Args
7FFC43A1DC44  7FFC8DB52533 (7FFC8D3416C8, 000007AE400, 001007AE400, 00000000000)
7FFC43A1DC44  7FFC8DB19786 (000FFFFBF00, 0000079FB00, 7FFC00000058, 000FFFFB940)
00000000001  7FFC8DBE0685 (000FFFFBEE0, 00000000000, 000FFFFBEE0, 7FFC00000001)
000FFFFBEE0  7FFC8DBDC2CB (000FFFFBF10, 00000000000, 0000000022C, 000FFFFBB70)
000FFFFBEE0  7FFC8D1B0C28 (0000000000D, 000FFFFC068, 000FFFFC390, 00000000000)
000FFFFC390  7FFC8D22FD72 (00800013918, 00000000000, 000FFFFC0D0, 000FFFFBF48)
000FFFFC390  00100401319 (001004222E0, 0018032308C, 8080808080808080, 00000000000)
000FFFFC390  00100420967 (000FFFFCC20, 000FFFFCD30, 0018034EBFD, 000FFFFCDF0)
000FFFFCD30  00180049B8D (00000000000, 00000000000, 00000000000, 00000000000)
000FFFFFFF0  00180047746 (00000000000, 00000000000, 00000000000, 00000000000)
000FFFFFFF0  001800477F4 (00000000000, 00000000000, 00000000000, 00000000000)
End of stack trace

My wsltty is version v3.6.1.2 (installed via choco).

wsl --version reports:

WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.19043.2364
godlygeek commented 1 year ago

Oh! I seem to have had two different wsltty installs, in different paths. Turns out the upgraded one installed by chocolatey is working fine, and the segfault only occurred with the other, older install.

PEBKAC