-
-
Notifications
You must be signed in to change notification settings - Fork 658
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wezterm crash when cannot found default_prog without any tips on macos #3928
Comments
in
while:
It typically takes about an hour before commits are available as nightly builds for all platforms. Linux builds are the fastest to build and are often available within about 20 minutes. Windows and macOS builds take a bit longer. Please take a few moments to try out the fix and let me know how that works out. You can find the nightly downloads for your system in the wezterm installation docs. If you prefer to use packages provided by your distribution or package manager of choice and don't want to replace that with a nightly download, keep in mind that you can download portable packages (eg: a If you are eager and can build from source then you may be able to try this out more quickly. |
I foun this action already complete. and I download it from https://wezfurlong. |
Is that what you see when it is set to |
that is :
when I press report, I can see some memory info: https://gist.github.com/cathaysia/5c7152efc40f7d3cda508c6d40b11001 I build wezterm from source, then debug it by lldb. But I cannot step into sourcem, just some backtrace here: $ lldb ./target/debug/wezterm ✔
(lldb) target create "./target/debug/wezterm"
Current executable set to '/Users/xxx/wezterm/target/debug/wezterm' (arm64).
(lldb) run
Process 91681 launched: '/Users/xxx/wezterm/target/debug/wezterm' (arm64)
Process 91681 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=1, subcode=0x4a03000)
frame #0: 0x0000000101095068 wezterm`_armv8_sve_probe
wezterm`:
-> 0x101095068 <+0>: eor z0.d, z0.d, z0.d
0x10109506c <+4>: ret
wezterm`:
0x101095070 <+0>: xar z0.d, z0.d, z0.d, #0x20
0x101095074 <+4>: ret
Target 0: (wezterm) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=1, subcode=0x4a03000)
* frame #0: 0x0000000101095068 wezterm`_armv8_sve_probe
frame #1: 0x00000001010954b8 wezterm`OPENSSL_cpuid_setup at armcap.c:367:9 [opt]
frame #2: 0x00000001a8e341e0 dyld`invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const::$_0::operator()() const + 168
frame #3: 0x00000001a8e75e94 dyld`invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 340
frame #4: 0x00000001a8e691a4 dyld`invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 528
frame #5: 0x00000001a8e142d8 dyld`dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 296
frame #6: 0x00000001a8e681cc dyld`dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 192
frame #7: 0x00000001a8e75958 dyld`dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 516
frame #8: 0x00000001a8e30864 dyld`dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 448
frame #9: 0x00000001a8e30c18 dyld`dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 220
frame #10: 0x00000001a8e3426c dyld`dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const::$_1::operator()() const + 112
frame #11: 0x00000001a8e30d98 dyld`dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 304
frame #12: 0x00000001a8e54984 dyld`dyld4::APIs::runAllInitializersForMain() + 468
frame #13: 0x00000001a8e192d0 dyld`dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3480
frame #14: 0x00000001a8e17e18 dyld`start + 1964
(lldb) |
If you set |
no, just like default_prog={"zsh"}
Yes, this is I'm use currently.
No, this zsh is come from macos. |
Interestingly, wezterm works when I set |
So |
yes, and I can create tab with zsh, just cannot boot a new wezterm.
…________________________________
From: Wez Furlong ***@***.***>
Sent: Monday, July 10, 2023 12:51:32 PM
To: wez/wezterm ***@***.***>
Cc: DragonBillow ***@***.***>; Author ***@***.***>
Subject: Re: [wez/wezterm] wezterm crash when cannot found default_prog without any tips on macos (Issue #3928)
So /bin/zsh works but zsh does not?
―
Reply to this email directly, view it on GitHub<#3928 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AKBJ6AI3Y4ASPMXFFTHSY2TXPOC5JANCNFSM6AAAAAAZ34U2FU>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
re: lldb, I see the same thing here, but I don't have a crash or any other problems launching wezterm. Since you have build a debug build, can you run the debug build of wezterm outside of lldb and see if you get a better looking stack trace from the macos report dialog? |
No, the report just like before: https://gist.github.com/cathaysia/7fc53a0cd4d9d0e97f4a2ea4563b8ab0 If lldb cannot be used to debug wezterm. I'm afraid there is no other means of debugging available. because gdb is not available on aarch64-darwin |
the debugger issue is with openssl: |
Likely blocked from updating to a version with a fix by: |
Ok, I'll try again when this PR is merged. It seems that the problem is related to Openssl. In addition, I remember that when these libraries of ice use webgpu, will wezterm consider replacing openssl with other implementations in the future (such as vulkan, diectx3D, etc.)? |
openssl is required by the ssh libraries used in wezterm (libssh, and libssh2), so it is unlikely to go away in the foreseeable future. |
This issue has been fixed in the latest commit(914f18b), it's not clear why. I'll take the time to investigate. |
This problem cannot be reproduced now, and I don't know why. But I guess it's a problem with macos itself. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
No response
WezTerm version
WezTerm-macos-20230408-112425-69ae8472
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
I set
then wezterm crash immediately and without any tips.
To Reproduce
No response
Configuration
Expected Behavior
give a tips about the reason or fallback to the default shell.
Logs
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: