Open strugee opened 3 years ago
I am currently facing the same problem , i ran objdump -h /var/www/html/custom_apps/documentserver_community/3rdparty/onlyoffice/documentserver/server/FileConverter/bin/libdoctrenderer.so to find out that the adress f9b000
is in the gcc_except_table so maybe this c++ lib had an exception and there is a bug in the binary generated by gcc for exception handling i will try to recompile the lib if possible (did not look into it yet) and see if the bug still happens
eventually i replaced the libdoctrenderer.so from the one found in the latest image of document server (6.2.0.123 as of today) and that exception (illegal instruction) went away, i did not do any serious check about api/abi compatibility though, in the end i did not succeed to have synchronisation back to nextcloud working even with that fix, since other errors showed up
Still in NC 20.0.10 :
May 21 19:42:01 intranet kernel: traps: x2t[31720] trap invalid opcode ip:6c0cc9584849 sp:778e45efc808 error:0 in libdoctrenderer.so[6c0cc8bd9000+f9b000]
May 21 19:42:01 intranet kernel: grsec: From <MyIP>: Illegal instruction occurred at 00006c0cc9584849 in /var/www/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/server/FileConverter/bin/x2t[x2t:31720] uid/euid:33/33 gid/egid:33/33, parent /usr/bin/php7.3[php:31663] uid/euid:33/33 gid/egid:33/33
I'm not sure I would replace the file by the latest one, I'm afraid this could cause some edge effects elsewhere
And I agree, it looks like this can be triggered by launching the cron job with
sudo -u www-data /usr/bin/php -f /var/www/nextcloud/cron.php
NC: 24.0.7 on RHEL 8.7 ===============
Dumps on almost every access to a onlyoffice doc:
systemd-coredump Process 592086 (x2t) of user 48 dumped core. CODE_FILE ../src/coredump/coredump.c CODE_FUNC submit_coredump CODE_LINE 822 COREDUMP_CGROUP /system.slice/php-fpm.service COREDUMP_CMDLINE ./x2t /tmp/oc_tmp_9lxP1Q-.xml COREDUMP_COMM x2t COREDUMP_CWD /var/www/html/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/server/FileConverter/bin COREDUMP_ENVIRON PWD=/var/www/html/nextcloud/apps/documentservercommunity/3rdparty/onlyoffice/documentserver/server/FileConverter/bin SHLVL=1 =./x2t COREDUMP_EXE /var/www/html/nextcloud/apps/documentserver_community/3rdparty/onlyoffice/documentserver/server/FileConverter/bin/x2t COREDUMP_GID 48 COREDUMP_HOSTNAME xxx.xxx.xxx COREDUMP_OPEN_FDS 0:pipe:[4956654] pos: 0 flags: 00 mnt_id: 14 1:pipe:[4956655] pos: 0 flags: 01 mnt_id: 14 2:pipe:[4956656] pos: 0 flags: 01 mnt_id: 14 4:/var/lib/sss/mc/passwd pos: 0 flags: 02100000 mnt_id: 379 7:socket:[4956652] pos: 0 flags: 02 mnt_id: 10 8:socket:[4956653] pos: 0 flags: 02 mnt_id: 10 10:socket:[4956588] pos: 0 flags: 02 mnt_id: 10 12:socket:[30482] pos: 0 flags: 02 mnt_id: 10 13:xxxxx COREDUMP_PROC_CGROUP 12:pids:/system.slice/php-fpm.service 11:hugetlb:/ 10:blkio:/ 9:freezer:/ 8:memory:/system.slice/php-fpm.service 7:cpuset:/ 6:devices:/system.slice/php-fpm.service 5:rdma:/ 4: cpu,cpuacct:/ 3:perf_event:/ 2:net_cls,net_prio:/ 1:name=systemd:/system.slice/php-fpm.service COREDUMP_PROC_LIMITS Limit Soft Limit Hard Limit Units Max cpu time unlimited unlimited seconds Max file size unlimited unlimited bytes Max data size 4294967296 4294967296 bytes Max stack size 8388608 unlimited bytes Max core file size 0 unlimited bytes Max resident set unlimited unlimited bytes Max processes 38970 38970 processes Max open files 1024 262144 files Max locked memory 65536 65536 bytes Max address space unlimited unlimited bytes Max file locks unlimited unlimited locks Max pending signals 38970 38970 signals Max msgqueue size 819200 819200 bytes Max nice priority 0 0 Max realtime priority 0 0 Max realtime timeout unlimited unlimited us COREDUMP_PROC_MAPS [keine Daten] COREDUMP_PROC_MOUNTINFO [keine Daten] COREDUMP_PROC_STATUS Name: x2t Umask: 0022 State: S (sleeping) Tgid: 592086 Ngid: 0 Pid: 592086 PPid: 592062 TracerPid: 0 Uid: 48 48 48 48 Gid: 48 48 48 48 FDSize: 64 Groups: 48 986 NStgid: 592086 NSpid: 592086 NSpgid: 1076 NSsid: 1076 VmPeak: 189848 kB VmSize: 186828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 42164 kB VmRSS: 38876 kB RssAnon: 15448 kB RssFile: 23428 kB RssShmem: 0 kB VmData: 15292 kB VmStk: 132 kB VmExe: 41916 kB VmLib: 43532 kB VmPTE: 308 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 1 THP_enabled: 1 Threads: 1 SigQ: 0/38970 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000000001000 SigCgt: 0000000180000000 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Speculation_Store_Bypass: vulnerable Cpus_allowed: ff Cpus_allowed_list: 0-7 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000, 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 3 nonvoluntary_ctxt_switches: 4 COREDUMP_RLIMIT 0 COREDUMP_ROOT / COREDUMP_SIGNAL 11 COREDUMP_SIGNAL_NAME SIGSEGV COREDUMP_SLICE system.slice COREDUMP_TIMESTAMP 1669807603000000 COREDUMP_UID 48 COREDUMP_UNIT php-fpm.service MESSAGE_ID fc2e22bc6ee647b6b90729ab34a250b1 PRIORITY 2 SYSLOG_IDENTIFIER systemd-coredump _BOOT_ID 89de6b3a10f145be8e3c34676bd42c48 _CAP_EFFECTIVE 1fff7fcffff _CMDLINE /usr/lib/systemd/systemd-coredump _COMM systemd-coredum _EXE /usr/lib/systemd/systemd-coredump _GID 0 _HOSTNAME xxx.xxx.xxx _MACHINE_ID 43adbc81541c40b89dacdaed716213d2 _PID 592088 _SOURCE_REALTIME_TIMESTAMP 1669807603727743 _TRANSPORT journal _UID 0 CURSOR s=0c6773b7e0374f0f80e90c1e26940f77;i=3dac0;b=89de6b3a10f145be8e3c34676bd42c48;m=4468f99306;t=5eeae61103f28;x=1a255862a01e76c3 MONOTONIC_TIMESTAMP 293818962694 __REALTIME_TIMESTAMP 1669807603728168
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!
Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.
My
dmesg
is full of lines like this:Additionally
systemd-coredump
has been collecting a ton of coredumps like this:There appear to be three coredumps generated every 5 minutes, which coincides with the frequency I run regular Nextcloud cronjobs on. My preview generation cronjob (which I recently turned on Office document support for) runs every 1 minute, but just in case it's related, here's the relevant section in
config.php
:Here's the output of
lscpu
:I'm on Nextcloud 20.0.8, documentserver_community 0.1.9, Debian buster.
uname -a
reportsLinux steevie 4.19.0-14-amd64 #1 SMP Debian 4.19.171-2 (2021-01-30) x86_64 GNU/Linux
.