Description of problem: cjdns.service: Main process exited, code=dumped, status=4/ILL Version-Release number of selected component (if applicable): cjdns-20.2-2.fc27.x86_64 How reproducible: CPU dependent Steps to Reproduce: 1. build SRPM on Intel(R) Core(TM) i3-2120 CPU @ 3.30GHz 2. install and run resulting rpms on Intel(R) Xeon(R) CPU X3440 @ 2.53GHz 3. Actual results: Illegal insn core dump Expected results: Normal operation Additional info: Other combinations of build and install CPUs also fail. The package always works when rebuilt on the CPU where it will run. Apparently, the embedded cnacl library tries to do some CPU dependent optimizations by default during compile.
I'm hopeful that removing the -march=native from the node_build will resolve this. The bundled cnacl also chooses a "plan", many of which will crash on other CPUs. I'm guessing amd64 is a portable plan for x64_64, but not sure. I'm pretty sure the amd64_AVX plan is not portable. Workaround for those running into this problem: rebuild SRPM on the target system (or one with a similar CPU).
Changing -march=native to -mtune=generic is part of the issue. Another problem is the "plan" chosen by the embedded cnacl build system. The official Fedora build ran on an AVX processor for the x86_64 build, and the plan was: System is [amd64_AVX] Using premade plan at [node_build/plans/amd64_AVX_plan.json] After talking with upstream, I'm pretty confident that solving both these problems will result in portable binaries - at least for x86_64.
cjdns-20.2-4.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-6f3beea73f
cjdns-20.2-4.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-b20343e9da
cjdns-20.2-4.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-095a53435e
cjdns-20.2-4.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-095a53435e
cjdns-20.2-4.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-6f3beea73f
cjdns-20.2-4.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-b20343e9da
cjdns-20.2-4.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
cjdns-20.2-4.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.
cjdns-20.2-4.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.