- changed status to resolved
Monit crashes with sigill on architectures that do not support control-flow enforcement technology (-fcf-protection=full)
Running monit on a system with AMD Geode LX, the programm crashes with an illegal instruction exception.
localhost ~ # gdb monit
GNU gdb (Gentoo 10.1 vanilla) 10.1
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "i486-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://bugs.gentoo.org/.>
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/.>For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from monit...
(No debugging symbols found in monit)
(gdb) set disassemble-next-line on
(gdb) r
Starting program: /usr/bin/monit
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".Program received signal SIGILL, Illegal instruction.
0x0040db26 in ?? ()
=> 0x0040db26: f3 0f 1e fb endbr32
The reason is the endbr32 instruction, which is not supported on this CPU (pre PentiumPro). The instruction is added by gcc when compiling using “-fcf-protection=full”.
Comments (1)
-
repo owner - Log in to comment
fix Issue
#987: Monit crashes with sigill on architectures that do not support control-flow enforcement technology (-fcf-protection=full)→ <<cset 46a04de8845d>>