-
Notifications
You must be signed in to change notification settings - Fork 13
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
[Bug] Unexpected termination when using external editor. #104
Comments
Hi, assuming this is easily reproduced, could you help reproduce the issue with extra verbose logging enabled? You can run nmail in offline mode to avoid having sensitive information logged (but better glance through the log before you share it): And then please send the log file Thanks! PS. FYI - I am not able to reproduce this problem (on Mac nor Ubuntu, tested emacs/nano/vim). |
Hello I have attached the log.txt here. |
Thanks, that was quick! I've downloaded the file now and will analyze it. Btw, I noted that the log file somehow has some addresses from your address book. Feel free to delete the attachment above if you don't want others to access them. |
That is done! |
I wanted to confirm something:
Does it mean it crashes immediately after save/quit of the external editor? Or does it crash once you try to send (CTRL-X) the email? |
it happens in both cases. From start it mostly works once, or crashes right after sent mail. Then it mostly works to edit, then when saving it crashes. |
Ok, thanks. Can I also check if you're using macOS standard |
I use iterm2, have not tried with standard Terminal. |
Hi, I think I know the root cause, I can reproduce a crash like that if I run nmail with certain locales, for example Swedish: Could you help run the command |
Hello here is the output of locale of my iterm2: |
Thanks 👍 |
This should be fixed with above commit. Please let me know if you're still encountering any issues. |
Im getting an error with "unexpected termination: 6" When using external editor.
It happens after I have written mail, and saves and quits. Both for nano and vim.
Normal inhouse mail writing seemes to be working fine.
´´
mbp@Sleipnir ~ nmail
unexpected termination: 6
0 0x00000106 229 4e7 Util::SignalCrashHandler(int)
1 0x07ff 81c 7c9 dfd _sigtramp
2 0x07fd d00 000 400
3 0x07ff 81c 6ff d24 abort
4 0x07ff 81c 770 082 abort_message
5 0x07ff 81c 761 1a5 demangling_terminate_handler()
6 0x07ff 81c 65d e19 _objc_terminate()
7 0x07ff 81c 76f 4a7 std::__terminate(void ()())
8 0x07ff 81c 771 d05 __cxa_get_exception_ptr
9 0x07ff 81c 771 ccc __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception)
a 0x00000106 17e 3b9 sqlite::errors::throw_sqlite_error(int const&, std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)
b 0x00000106 182 77d sqlite::database_binder::_prepare(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)
c 0x00000106 182 61c sqlite::database::operator<<(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&)
d 0x00000106 1a2 550 ImapCache::GetBodys(std::__1::basic_string<char, std::__1::char_traits, std::__1::allocator > const&, std::__1::set<unsigned int, std::__1::less, std::__1::allocator > const&, bool)
e 0x00000106 1b4 cea ImapIndex::HandleSyncEnqueue()
f 0x00000106 1b2 656 ImapIndex::Process()
10 0x00000106 1b7 04e void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_deletestd::__1::__thread_struct >, void (ImapIndex::)(), ImapIndex> >(void*)
11 0x07ff 81c 7b4 4e1 _pthread_start
12 0x07ff 81c 7af f6b thread_start
´´
Any clues on what's going on?
The text was updated successfully, but these errors were encountered: