far2l
far2l copied to clipboard
far2l exits with -1 and leaves terminal broken
(gdb) bt
#0 __GI_exit (status=-1) at exit.c:139
#1 0x00007ffff48626c8 in xercesc_3_2::DefaultPanicHandler::panic(xercesc_3_2::PanicHandler::PanicReasons) () from /usr/lib64/libxerces-c-3.2.so
#2 0x00007ffff4a1380e in xercesc_3_2::MsgCatalogLoader::MsgCatalogLoader(char16_t const*) () from /usr/lib64/libxerces-c-3.2.so
#3 0x00007ffff4863c61 in xercesc_3_2::XMLPlatformUtils::loadAMsgSet(char16_t const*) () from /usr/lib64/libxerces-c-3.2.so
#4 0x00007ffff4887701 in xercesc_3_2::XMLInitializer::initializeXMLException() () from /usr/lib64/libxerces-c-3.2.so
#5 0x00007ffff4887fed in xercesc_3_2::XMLInitializer::initializeStaticData() () from /usr/lib64/libxerces-c-3.2.so
#6 0x00007ffff4ba2b0c in SetStartupInfoW (fei=0x7fffffffbec0) at /mnt/data2/far2l/colorer/src/pcolorer2/pcolorer.cpp:115
#7 0x00000000005bd9ac in PluginW::SetStartupInfo (this=0xa37cf0, bUnloaded=@0x7fffffffc1e7: false) at /mnt/data2/far2l/far2l/PluginW.cpp:548
#8 0x00000000005bd0ac in PluginW::Load (this=0xa37cf0) at /mnt/data2/far2l/far2l/PluginW.cpp:356
#9 0x00000000005b0e12 in PluginManager::LoadPlugin (this=0x7fffffffcff8, strModuleName=..., UncachedLoad=false) at /mnt/data2/far2l/far2l/plugins.cpp:253
#10 0x00000000005b17da in PluginManager::LoadPlugins (this=0x7fffffffcff8) at /mnt/data2/far2l/far2l/plugins.cpp:448
#11 0x000000000048bb83 in ControlObject::Init (this=0x7fffffffc590) at /mnt/data2/far2l/far2l/ctrlobj.cpp:126
#12 0x0000000000584c19 in MainProcess (strEditViewArg=..., strDestName1=..., strDestName2=..., StartLine=-1, StartChar=-1) at /mnt/data2/far2l/far2l/main.cpp:283
#13 0x000000000058520f in MainProcessWithInterThreadCallsDispatching (strEditViewArg=..., DestName1=..., DestName2=..., StartLine=-1, StartChar=-1)
at /mnt/data2/far2l/far2l/main.cpp:358
#14 0x0000000000586159 in FarAppMain (argc=1, argv=0x94f670) at /mnt/data2/far2l/far2l/main.cpp:636
#15 0x0000000000690516 in WinPortMainTTY (std_in=3, std_out=4, far2l_tty=false, esc_expiration=0, notify_pipe=6, argc=1, argv=0x94f670,
AppMain=0x5854c7 <FarAppMain(int, char**)>, result=0x7fffffffd470) at /mnt/data2/far2l/WinPort/src/Backend/TTY/TTYBackend.cpp:863
#16 0x000000000068788d in WinPortMain (full_exe_path=0x950ee0 "/mnt/data2/far2l/build/install/far2l", argc=1, argv=0x94f670, AppMain=0x5854c7 <FarAppMain(int, char**)>)
at /mnt/data2/far2l/WinPort/src/Backend/WinPortMain.cpp:442
#17 0x0000000000586862 in main (argc=1, argv=0x7fffffffd7a8) at /mnt/data2/far2l/far2l/main.cpp:797
Also, debugging is almost impossible Something breaks terminal output, so i do not see any error messages and sigwinch wrapper makes impossible to attach debugger or strace if child process crashes on startup
Please do export FAR2L_STD=/path/to/log/file
and run far2l and then see content of that log file. Most likely colorer database is missing or broken somehow
Environment was not updated after installing xerces-c resulting in crash (it uses database path from env) after updating environment all works, but i spent about a hour to debug this. Maybe it's possible to set panic handler for it (see backtrace) and show error to terminal?