OnlyOffice Desktop Editor 7.4 crashes at startup on Linux Mint 21.1 when Belgian EID software is installed

I want to report a bug.
I have 64-bit DEB package onlyoffice-desktopeditors 7.4.0-163 installed on my Linux Mint 21.1.
I installed this package from the repository
deb https://download.onlyoffice.com/repo/debian squeeze main

My system also contains the Belgian EID software (to be able to use the Belgian EID card for authentication on government websites). This software contains several packages, all installed from the repository files.eid.belgium.be/debian sections vanessa - main

One of the packages is
libbeidpkcs11-0:amd64 5.1.11v5.1.11-0u2204-1 PKCS#11 library for Belgian Electronic Identity Card

That Belgian EID software is working correctly.

When I start the onlyoffice-desktopeditors executable, it shows for some seconds the main window with the circling dots and then vanishes. The command line shows that the program crashed and that a core file was created.
Linux Mint, as a Ubuntu derivative, is using apport to handle the core dump. I can provide the resulting apport crash file, but it has a size of 9 MB.

The previous version of onlyoffice-desktop (7.3.3-50~stretch) was working perfectly.

I ran the real executable in GDB, with reference to the debug info of official packages:
$ export DEBUGINFOD_URLS=“https://debuginfod.ubuntu.com
$ DIR=/opt/onlyoffice/desktopeditors
$ export LD_LIBRARY_PATH=$DIR
$ gdb $DIR/DesktopEditors

after the crash of the executable, I can get the corresponding stack trace:

(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140736389432896) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140736389432896) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140736389432896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff3d82476 in __GI_raise (sig=sig@entry=6) at …/sysdeps/posix/raise.c:26
#4 0x00007ffff3d687f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007fffe502768e in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#6 0x00007fffe503d8db in __gcc_personality_v0 () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#7 0x00007ffff5f5afa3 in ?? () from /opt/onlyoffice/desktopeditors/converter/libicuuc.so.58
#8 0x00007ffff5f5b65a in ?? () from /opt/onlyoffice/desktopeditors/converter/libicuuc.so.58
#9 0x00007ffff5f4f17c in __cxa_throw () from /opt/onlyoffice/desktopeditors/converter/libicuuc.so.58
#10 0x00007fff9c0f12c6 in ?? () from /usr/lib/x86_64-linux-gnu/libbeidpkcs11.so.0
#11 0x00007fff9c10db18 in ?? () from /usr/lib/x86_64-linux-gnu/libbeidpkcs11.so.0
#12 0x00007fff9c113e34 in ?? () from /usr/lib/x86_64-linux-gnu/libbeidpkcs11.so.0
#13 0x00007fff9c0f6443 in C_Initialize () from /usr/lib/x86_64-linux-gnu/libbeidpkcs11.so.0
#14 0x00007fffe24f81a8 in secmod_ModuleInit (mod=mod@entry=0x7fffac05a410, reload=reload@entry=0x7fffbe7fa0e8,
alreadyLoaded=alreadyLoaded@entry=0x7fffbe7fa01c) at …/pk11wrap/pk11load.c:244
#15 0x00007fffe24f8df2 in secmod_LoadPKCS11Module (mod=mod@entry=0x7fffac05a410, oldModule=oldModule@entry=0x7fffbe7fa0e8) at …/pk11wrap/pk11load.c:551
#16 0x00007fffe24ff1e5 in SECMOD_LoadModule (modulespec=0x7fffac00c390 “library=”/usr/lib/x86_64-linux-gnu/libbeidpkcs11.so.0" name=“Belgium eID”",
parent=0x7fffac00ba70, recurse=1) at …/pk11wrap/pk11pars.c:1946
#17 0x00007fffe24ff578 in SECMOD_LoadModule (
modulespec=0x7fffac014ed0 "name=“NSS Internal Module” parameters=“configdir=‘sql:/home/de/.pki/nssdb’ certPrefix=’’ keyPrefix=’’ secmod=‘secmod.db’ flags=optimizeSpace updatedir=’’ updateCertPrefix=’’ updateKeyPrefix=’’ updatei”…, parent=, recurse=)
at …/pk11wrap/pk11pars.c:1982
#18 0x00007fffe24c5e37 in nss_InitModules (configdir=configdir@entry=0x7fffac00c1e0 “sql:/home/de/.pki/nssdb”,
certPrefix=certPrefix@entry=0x7fffe259b155 “”, keyPrefix=keyPrefix@entry=0x7fffe259b155 “”, secmodName=secmodName@entry=0x7fffe259b4fe “secmod.db”,
updateDir=updateDir@entry=0x7fffe259b155 “”, updCertPrefix=updCertPrefix@entry=0x7fffe259b155 “”, updKeyPrefix=,
updateID=, updateName=, configName=, configStrings=, pwRequired=,
readOnly=, noCertDB=, noModDB=, forceOpen=, optimizeSpace=,
isContextInit=) at /build/nss-9QiWTI/nss-3.68.2/nss/lib/nss/nssinit.c:464
#19 0x00007fffe24c62f1 in nss_Init (configdir=0x7fffac00c1e0 “sql:/home/de/.pki/nssdb”, certPrefix=certPrefix@entry=0x7fffe259b155 “”,
keyPrefix=keyPrefix@entry=0x7fffe259b155 “”, secmodName=secmodName@entry=0x7fffe259b4fe “secmod.db”, updateDir=updateDir@entry=0x7fffe259b155 “”,
updCertPrefix=updCertPrefix@entry=0x7fffe259b155 “”, updKeyPrefix=0x7fffe259b155 “”, updateID=0x7fffe259b155 “”, updateName=0x7fffe259b155 “”,
initContextPtr=0x0, initParams=0x0, readOnly=0, noCertDB=0, noModDB=0, forceOpen=0, noRootInit=0, optimizeSpace=1, noSingleThreadedModules=0,
allowAlreadyInitializedModules=0, dontFinalizeModules=0) at /build/nss-9QiWTI/nss-3.68.2/nss/lib/nss/nssinit.c:689
#20 0x00007fffe24ca85d in NSS_InitReadWrite (configdir=) at /build/nss-9QiWTI/nss-3.68.2/nss/lib/nss/nssinit.c:832
#21 0x00007fffed50ecde in ?? () from /opt/onlyoffice/desktopeditors/libcef.so
#22 0x0000000000000001 in ?? ()
#23 0x0000003100000006 in ?? ()
#24 0x0000000000000000 in ?? ()

Any idea what I can do to fix or avoid this crash, apart from removing the Belgian EID software?

As already mentioned, the core file is available on request.

hi, @EDevriendt

Hello, while we are investigating the issue, in this case, we can suggest using the previous version of the editor (7.3.3-50)

I installed the debug symbol package of the libbeidpkcs library.
This gives some more info where the cause of the crash might be.

(gdb) bt
#0 __pthread_kill_implementation (no_tid=0, signo=6, threadid=140736389432896) at ./nptl/pthread_kill.c:44
#1 __pthread_kill_internal (signo=6, threadid=140736389432896) at ./nptl/pthread_kill.c:78
#2 __GI___pthread_kill (threadid=140736389432896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3 0x00007ffff3d82476 in __GI_raise (sig=sig@entry=6) at …/sysdeps/posix/raise.c:26
#4 0x00007ffff3d687f3 in __GI_abort () at ./stdlib/abort.c:79
#5 0x00007fffe502768e in ?? () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#6 0x00007fffe503d8db in __gcc_personality_v0 () from /lib/x86_64-linux-gnu/libgcc_s.so.1
#7 0x00007ffff5f5afa3 in ?? () from /opt/onlyoffice/desktopeditors/converter/libicuuc.so.58
#8 0x00007ffff5f5b65a in ?? () from /opt/onlyoffice/desktopeditors/converter/libicuuc.so.58
#9 0x00007ffff5f4f17c in __cxa_throw () from /opt/onlyoffice/desktopeditors/converter/libicuuc.so.58
#10 0x00007fffac0f12c6 in eIDMW::CConfig::GetStringInt (location=, csName=L"log_level", csSection=…, bExpand=) at common/configuration.cpp:193
#11 0x00007fffac10db18 in eIDMW::CConfig::GetStringInt (bExpand=false, csSection=…, csName=…) at common/configuration.cpp:202
#12 eIDMW::CConfig::GetString (csName=L"log_level", czSection=L"logging", csDefaultValue=L"info", bExpand=false) at common/configuration.cpp:235
#13 0x00007fffac113e34 in eidmw_config_get_log_level.constprop.0 (defaultLevel=0x7fffac1224a0 L"info") at common/configuration.cpp:471
#14 0x00007fffac0f6443 in log_init (pszLogFile=0x7fffac11c512 “/var/log/beidpkcs11/p11.log”, uiLogLevel=0) at /build/eid-mw-Rx75zv/eid-mw-5.1.11v5.1.11-0u2204/cardcomm/pkcs11/src/pkcs11log.c:158
#15 C_Initialize (pReserved=0x7fffe25cf9a0) at /build/eid-mw-Rx75zv/eid-mw-5.1.11v5.1.11-0u2204/cardcomm/pkcs11/src/general.c:63
#16 0x00007fffe24f81a8 in ?? () from /lib/x86_64-linux-gnu/libnss3.so
#17 0x00007fffe24f8df2 in ?? () from /lib/x86_64-linux-gnu/libnss3.so
#18 0x00007fffe24ff1e5 in SECMOD_LoadModule () from /lib/x86_64-linux-gnu/libnss3.so
#19 0x00007fffe24ff578 in SECMOD_LoadModule () from /lib/x86_64-linux-gnu/libnss3.so
#20 0x00007fffe24c5e37 in ?? () from /lib/x86_64-linux-gnu/libnss3.so
#21 0x00007fffe24c62f1 in ?? () from /lib/x86_64-linux-gnu/libnss3.so
#22 0x00007fffe24ca85d in NSS_InitReadWrite () from /lib/x86_64-linux-gnu/libnss3.so
#23 0x00007fffed50ecde in ?? () from /opt/onlyoffice/desktopeditors/libcef.so
#24 0x0000000000000000 in ?? ()

Perhaps using a snap image will be convenient for you?

Linux Mint does not have the snap subsystem enabled.
I might try a Flatpak or else an AppImage.

Hey @EDevriendt

Please specify if we have the opportunity to check the installation of this program to test the problem?

ONLYOFFICE desktop is available in different formats and platforms:
https://www.onlyoffice.com/en/download-desktop.aspx

snap

AppImage

Flatpak

I removed OnlyOffice as installed from the package repository, and I installed it as Flatpak from Flathub.
Now it does not crash anymore and is working correctly.

If you want to try to reproduce the crash, you can download the Belgian EID software from this site: Download | eID software

1 Like

OK, I’m glad we found an opportunity to continue using ONLYOFFICE desktop :handshake:

We are going to try to resolve the issue.

Thanks, I am curious what you will find out.

If you don’t mind, I will join this thread too.
We have tried to reproduce the situation with described scenario, but without any result. The Desktop editors app works as expected. I’m not sure if we can do something else at the moment. We will keep this thread open in case if other users come with the same situation and provide us with new information that might help us to figure out the situation.
Anyway, we are glad that the situation is resolved at the moment. Please feel free to contact us if you face any issues.

Thanks for the effort you took to try to reproduce.
One thing I forgot to mention is that I run Linux Mint 20.2 as well as OnlyOffice with user interface in Dutch (nl_BE.UTF-8).
Anyhow, it works now as Flatpak.
If I find some time I might try again with the deb packages and try to change the language to see if that helps.

Thank you. We are glad that the situation is solved (via flatpak) at the moment. But if you are able to reproduce the issue and provide us with new information, we will run our tests again to figure it out.

OK, I was able to reproduce it in a fresh Linux Mint 20.2 Virtual Machine.
You can find the compressed VMware virtual machine and a README file here:
https://drive.google.com/drive/folders/12eLG15lHSa9RvYifkvI4-2he_u1jPTuF?usp=sharing

The LinuxMintBEID-EN.zip file contains the VM.
README-LinuxMint-BEID-OnlyOffice-crash.txt contains a description of how the VM was made, as well as a procedure to reproduce the crash.

Note that I chose to install the English version of Linux Mint and OnlyOffice in the VM for your comfort. The language of the system does not seem to be important for the crashes.

I also have sent this VM to the maintainers of the Belgian EID software, so that they can examine it too.

Thank you so much for detailed description in the READ_ME file! We are looking into it, I will update this thread when we have something to share.

I want to say thank you for provided data. We reproduced the situation and found a bug. We have started working on it.
Thank you one more time!

1 Like

You are welcome!

Please let me know when the fix is released, so that I can switch back to normal packages instead of the flatpak.

1 Like

Sure, we will update this thread when we have something to share.

I see that version 7.5 is released. Does it by any chance contain the fix for this issue?

Sorry, the mentioned bug hasn’t been fixed yet. The work is still in progress. I will contact you immediately once we release a fix.