Bug#948491: centengine crashes regulary

2020-01-10 Thread Bernhard Übelacker
Dear Maintainer,
I guess I found the issue here.
It looks like centengine is crashing with an unmodified
default configuration after 60 minutes running.

By changing "retention_update_interval" from 60 to 1 this could
be lowered to 1 minute.

Further it looks like having null pointers in "custom_variables"
member is not unusual.

But because 'dump::customvariables' receives the 'obj' by reference,
the compiler removes in an optimized build the null check,
I guess because it assumes that a reference has to be valid by definition.

Attached patch changes the argument by reference to a pointer.
A package build with that patch checks like expected for null and
leaves the function.

Upstream seems to have changed obj.custom_variables to a container type,
which might therefore not suffer from this problem anymore.

Kind regards,
Bernhard


(gdb) print obj.custom_variables 
$3 = (customvariablesmember_struct *) 0x0

  
https://sources.debian.org/src/centreon-engine/18.10.0-4/src/retention/dump.cc/#L127
(gdb) list 121,133
121 std::ostream& dump::customvariables(
122 std::ostream& os,
123 customvariablesmember_struct const& obj) {
124   for (customvariablesmember const* member();
125member;
126member = member->next)
127 if (member->variable_name)
128   os << "_" << member->variable_name << "="
129  << member->has_been_modified << ","
130  << (member->variable_value ? member->variable_value : "")
131  << "\n";
132   return (os);
133 }

  
https://sources.debian.org/src/centreon-engine/18.10.0-4/src/retention/dump.cc/#L454
(gdb) list 389,455
389 std::ostream& dump::service(std::ostream& os, service_struct const& 
obj) {
...
454   dump::customvariables(os, *obj.custom_variables);
455   os << "}\n";


(gdb) bt
#0  com::centreon::engine::retention::dump::customvariables (os=..., obj=...) 
at ./src/retention/dump.cc:127
#1  0x559743899013 in com::centreon::engine::retention::dump::host (os=..., 
obj=...) at ./src/retention/dump.cc:264
#2  0x55974389a62b in com::centreon::engine::retention::dump::hosts 
(os=...) at ./src/retention/dump.cc:278
#3  com::centreon::engine::retention::dump::save (path=...) at 
./src/retention/dump.cc:359
#4  0x55974386126b in _exec_event_retention_save (event=) at 
./src/events/timed_event.cc:176
#5  0x559743860b5d in handle_timed_event (event=event@entry=0x559744b5ea90) 
at ./src/events/timed_event.cc:752
#6  0x55974385becb in com::centreon::engine::events::loop::_dispatching 
(this=0x559744b396a0) at ./src/events/loop.cc:233
#7  0x55974385c9e9 in com::centreon::engine::events::loop::run 
(this=0x559744b396a0) at ./src/events/loop.cc:90
#8  0x559743784774 in main (argc=, argv=) at 
./src/main.cc:410



Unmodified Debian: || With 
patch applied:
...7c0 <+0>: push   %r14   || ...530 
<+0>: push   %r14
...7c2 <+2>: lea0x290a5(%rip),%r14# 0x5597438c086e ||
...7c9 <+9>: push   %r13   || ...532 
<+2>: push   %r13
...7cb <+11>:push   %r12   || ...534 
<+4>: push   %r12
...7cd <+13>:push   %rbp   || ...536 
<+6>: push   %rbp
...7ce <+14>:mov%rdi,%rbp  || ...537 
<+7>: mov%rdi,%rbp
...7d1 <+17>:push   %rbx   || ...53a 
<+10>:push   %rbx
   || ...53b 
<+11>:test   %rsi,%rsi <<< null check
   || ...53e 
<+14>:je 0x560648b46630 <...customvariables...+256><<< jump
...7d2 <+18>:mov%rsi,%rbx  || ...544 
<+20>:mov%rsi,%rbx
...7d5 <+21>:jmpq   0x559743897868 <...customvariables...+168> ||   
   ...
 ...   ||   
   ...
...868 <+168>:   cmpq   $0x0,(%rbx)   <<< crash||   
   ...
 ...   || ...630 
<+256>:   pop%rbx
   || ...631 
<+257>:   mov%rbp,%rax
   || ...634 
<+260>:   pop%rbp
   || ...635 
<+261>:   pop%r12
   || ...637 
<+263>:   pop%r13
  ...639 
<+265>:   pop%r14
 

Bug#948491: centengine crashes regulary

2020-01-10 Thread Pascal Vibet - ADACIS
No problem.

I send result in centengine-debug.txt

Regards

Le ven. 10 janv. 2020 à 12:01, Bernhard Übelacker  a
écrit :

> Hello Pascal,
> now I see one thing that would be even better:
>
>   coredumpctl gdb
> info reg
> thread apply all bt full
>
> Sorry for not saying this sooner.
>
> Kind regards,
> Bernhard
>
>
sudo coredumpctl gdb
   PID: 27474 (centengine)
   UID: 108 (centreon-engine)
   GID: 114 (centreon-engine)
Signal: 11 (SEGV)
 Timestamp: Fri 2020-01-10 12:17:01 CET (35min ago)
  Command Line: /usr/sbin/centengine /etc/centreon-engine/centengine.cfg
Executable: /usr/sbin/centengine
 Control Group: /system.slice/centengine.service
  Unit: centengine.service
 Slice: system.slice
   Boot ID: 068a3a77b53f4210a7823cda9709b7a9
Machine ID: 603b330df8caf777338241c98800e15e
  Hostname: x-centreon-loc-01
   Storage: 
/var/lib/systemd/coredump/core.centengine.108.068a3a77b53f4210a7823cda9709b7a9.27474.157865502100.lz4
   Message: Process 27474 (centengine) of user 108 dumped core.

Stack trace of thread 27474:
#0  0x556c06643868 
_ZN3com8centreon6engine9retention4dump15customvariablesERSoRK28customvariablesmember_struct
 (centengine)
#1  0x556c0664629b 
_ZN3com8centreon6engine9retention4dump7serviceERSoRK14service_struct 
(centengine)
#2  0x556c06646653 
_ZN3com8centreon6engine9retention4dump8servicesERSo (centengine)
#3  0x556c0660d26b _exec_event_retention_save (centengine)
#4  0x556c0660cb5d handle_timed_event (centengine)
#5  0x556c06607ecb 
_ZN3com8centreon6engine6events4loop12_dispatchingEv (centengine)
#6  0x556c066089e9 
_ZN3com8centreon6engine6events4loop3runEv (centengine)
#7  0x556c06530774 main (centengine)
#8  0x7f50e905c09b __libc_start_main (libc.so.6)
#9  0x556c065312aa _start (centengine)

Stack trace of thread 27477:
#0  0x7f50e90fe720 __nanosleep (libc.so.6)
#1  0x7f50e9129874 usleep (libc.so.6)
#2  0x7f50e87a92d5 
_ZN3com8centreon6broker10processing8failover3runEv (cbmod.so)
#3  0x7f50e7fb2726 n/a (libQtCore.so.4)
#4  0x7f50e955ffa3 start_thread (libpthread.so.0)
#5  0x7f50e91314cf __clone (libc.so.6)

Stack trace of thread 27476:
#0  0x7f50e9126819 __poll (libc.so.6)
#1  0x7f50e5bc14cb poll (externalcmd.so)
#2  0x7f50e955ffa3 start_thread (libpthread.so.0)
#3  0x7f50e91314cf __clone (libc.so.6)

Stack trace of thread 27475:
#0  0x7f50e9126819 __poll (libc.so.6)
#1  0x7f50e9535778 _ZN3com8centreon15process_manager4_runEv 
(libcentreon_clib.so)
#2  0x7f50e953bfff 
_ZN3com8centreon11concurrency6thread8_executeEPv (libcentreon_clib.so)
#3  0x7f50e955ffa3 start_thread (libpthread.so.0)
#4  0x7f50e91314cf __clone (libc.so.6)

GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/centengine...Reading symbols from 
/usr/lib/debug/.build-id/cb/8977dc4da718ea120bcd5c48dfa7cf9c7e25d5.debug...done.
done.
[New LWP 27474]
[New LWP 27477]
[New LWP 27476]
[New LWP 27475]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/usr/sbin/centengine 
/etc/centreon-engine/centengine.cfg'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  com::centreon::engine::retention::dump::customvariables (os=..., obj=...) 
at ./src/retention/dump.cc:127
127 ./src/retention/dump.cc: Aucun fichier ou dossier de ce type.
[Current thread is 1 (Thread 0x7f50e9025c80 (LWP 27474))]
(gdb) info reg
rax0x7ffd3223d890  140725444663440
rbx0x0 0
rcx0xa 10
rdx0x556c066b7fb8  93922452537272
rsi0x0 0
rdi

Bug#948491: centengine crashes regulary

2020-01-10 Thread Bernhard Übelacker
Hello Pascal,
now I see one thing that would be even better:

  coredumpctl gdb
info reg
thread apply all bt full

Sorry for not saying this sooner.

Kind regards,
Bernhard



Bug#948491: centengine crashes regulary

2020-01-09 Thread Pascal Vibet - ADACIS
I sorry for delay to respond.

I do what you want to do:

janv. 10 06:44:50 centreon-01 sudo[15910]:   pvibet : TTY=pts/0 ;
PWD=/home/pvibet ; USER=root ; TSID=JX ; COMMAND=/usr/bin/systemctl
restart centengine.service
janv. 10 06:44:50 centreon-01 sudo[15910]: pam_unix(sudo:session): session
opened for user root by pvibet(uid=0)
janv. 10 06:44:50 centreon-01 systemd[1]: Started Centreon Engine.
janv. 10 06:44:50 centreon-01 sudo[15910]: pam_unix(sudo:session): session
closed for user root
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Reading main configuration file '/etc/centreon-engine/centengine.cfg'.
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/hostTemplates.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/hosts.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/serviceTemplates.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/services.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/commands.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/contactgroups.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/contacts.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/hostgroups.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/servicegroups.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/timeperiods.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/escalations.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/dependencies.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/connectors.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/meta_commands.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/meta_timeperiod.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/meta_host.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Processing object config file '/etc/centreon-engine/meta_services.cfg'
janv. 10 06:44:50 centreon-01 centengine[15914]: [1578635090] [15914]
Reading resource file '/etc/centreon-engine/resource.cfg'
janv. 10 06:44:50 centreon-01 centreon-engine[15914]: [1578635090] [15914]
Centreon Engine 18.10.0 starting ... (PID=15914)
janv. 10 06:44:50 centreon-01 centreon-engine[15914]: [1578635090] [15914]
Local time is Fri Jan 10 06:44:50 2020
LOG VERSION: 2.0
janv. 10 06:44:50 centreon-01 centreon-engine[15914]: [1578635090] [15914]
Event broker module '/usr/lib/centreon-broker/cbmod.so' initialized
successfully
janv. 10 06:44:50 centreon-01 centreon-engine[15914]: [1578635090] [15914]
Event broker module '/usr/lib/centreon-engine/externalcmd.so' initialized
successfully
janv. 10 06:44:50 centreon-01 centreon-engine[15914]: [1578635090] [15914]
INITIAL HOST STATE: srv.local.lan;UP;HARD;1;OK - 192.168.1.45: rta 0,592ms,
lost 0%

(...)

janv. 10 07:44:50 centreon-01 kernel: centengine[15914]: segfault at 0 ip
5580663a0868 sp 7ffdec3e5bb0 error 4 in
centengine[55806627d000+134000]
janv. 10 07:44:50 centreon-01 kernel: Code: 89 c2 4c 89 ee 4c 89 e7 e8 35
d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 89 e7 e8 21 d0 ed ff 48 8b
5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00 00 48 8d 35 07 9a 01
00 48 89 ef e8
janv. 10 07:44:50 centreon-01 systemd[1]: Started Process Core Dump (PID
18427/UID 0).
janv. 10 07:44:50 centreon-01 systemd[1]: centengine.service: Main process
exited, code=dumped, status=11/SEGV
janv. 10 07:44:50 centreon-01 systemd[1]: centengine.service: Failed with
result 'core-dump'.
janv. 10 07:44:51 centreon-01 systemd-coredump[18428]: Process 15914
(centengine) of user 108 dumped core.

 Stack trace of
thread 15914:
 #0
 0x5580663a0868
_ZN3com8centreon6engine9retention4dump15customvariablesERSoRK28customvariablesmember_struct

Bug#948491: centengine crashes regulary

2020-01-09 Thread Bernhard Übelacker


Am 09.01.20 um 22:18 schrieb Pascal Vibet - ADACIS:
> @Bernhard : I install 'systemd-coredump' and 'centreon-engine-dbgsym'
> packages. I restart centengine. What information do you need? When
> centengine process crashes ? Or i run a program in same time ? What do
> you want me to do?

Great. Just wait for the next crash and then look at the end of
the command "journalctl --no-pager".
There should be a line with the known 'segfault at'.
This line and the following at nearly the same time would be
interesting, if you could forward them to this bug?

Kind regards,
Bernhard



Bug#948491: centengine crashes regulary

2020-01-09 Thread Pascal Vibet - ADACIS
@Bernhard : I install 'systemd-coredump' and 'centreon-engine-dbgsym'
packages. I restart centengine. What information do you need? When
centengine process crashes ? Or i run a program in same time ? What do you
want me to do?

Regards

Le jeu. 9 janv. 2020 à 17:12, Bernhard Übelacker  a
écrit :

> Dear Maintainer,
> I just tried to get some more info from the
> dmesg line, which seems to point to:
>file ./src/retention/dump.cc, line 127. [1]
>
>
> @Pascal: More information could maybe retrieved from the journal
> if 'systemd-coredump' could be installed, even better if additionally
> package 'centreon-engine-dbgsym' would be installed [1].
>
>
> Kind regards,
> Bernhard
>
>
> [1]
> https://sources.debian.org/src/centreon-engine/18.10.0-4/src/retention/dump.cc/#L127
> [2]
> https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols
>


Bug#948491: centengine crashes regulary

2020-01-09 Thread Bernhard Übelacker
Dear Maintainer,
I just tried to get some more info from the
dmesg line, which seems to point to:
   file ./src/retention/dump.cc, line 127. [1]


@Pascal: More information could maybe retrieved from the journal
if 'systemd-coredump' could be installed, even better if additionally
package 'centreon-engine-dbgsym' would be installed [1].


Kind regards,
Bernhard


[1] 
https://sources.debian.org/src/centreon-engine/18.10.0-4/src/retention/dump.cc/#L127
[2] https://wiki.debian.org/HowToGetABacktrace#Installing_the_debugging_symbols



dmesg submitter:
[ 5321.507438] centengine[26832]: segfault at 0 ip 55c4d2403868 sp 
7ffd605fa390 error 4 in centengine[55c4d22e+134000]
[ 5321.507456] Code: 89 c2 4c 89 ee 4c 89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 
8d 35 03 94 01 00 4c 89 e7 e8 21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 
00 74 f1 ba 01 00 00 00 48 8d 35 07 9a 01 00 48 89 ef e8
  0  1  2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7  8  
9 20  1  2  3  4  5  6  7  8  9 30  1  2  3  4  5  6  7  8  9 40  1  42




# Buster/stable amd64 qemu VM 2020-01-09


apt update
apt dist-upgrade


apt install systemd-coredump gdb centreon-engine centreon-engine-dbgsym


gdb -q --args /usr/sbin/centengine

set width 0
set pagination off
b main
run
dele 1



(gdb) info target
...
Local exec file:
`/usr/sbin/centengine', file type elf64-x86-64.
...
0x555ef050 - 0x55721701 is .text
...




(gdb) find /b 0x555ef050, 0x55721701, 0x89, 0xc2, 0x4c, 0x89, 
0xee, 0x4c, 0x89, 0xe7, 0xe8, 0x35, 0xd0, 0xed, 0xff, 0xba, 0x01, 0x00, 0x00, 
0x00, 0x48, 0x8d, 0x35, 0x03, 0x94, 0x01, 0x00, 0x4c, 0x89, 0xe7, 0xe8, 0x21, 
0xd0, 0xed, 0xff, 0x48, 0x8b, 0x5b, 0x18, 0x48, 0x85, 0xdb, 0x74, 0x58, 0x48, 
0x83, 0x3b, 0x00, 0x74, 0xf1, 0xba, 0x01, 0x00, 0x00, 0x00, 0x48, 0x8d, 0x35, 
0x07, 0x9a, 0x01, 0x00, 0x48, 0x89, 0xef, 0xe8
0x5571183e 

1 pattern found.


(gdb) b *(0x5571183e + 42)
Breakpoint 3 at 0x55711868: file ./src/retention/dump.cc, line 127.
(gdb) info b
Num Type   Disp Enb AddressWhat
3   breakpoint keep y   0x55711868 in 
com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&) at ./src/retention/dump.cc:127



89 c2 4c 89 ee 4c 89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 
89 e7 e8 21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00 
00 48 8d 35 07 9a 01 00 48 89 ef e8
 0  1  2  3  4  5  6  7  8  9 10  1  2  3  4  5  6  7  8  9 20  1  2  3  4  5  
6  7  8  9 30  1  2  3  4  5  6  7  8  9 40  1   2

0x89, 0xc2, 0x4c, 0x89, 0xee, 0x4c, 0x89, 0xe7, 0xe8, 0x35, 0xd0, 0xed, 0xff, 
0xba, 0x01, 0x00, 0x00, 0x00, 0x48, 0x8d, 0x35, 0x03, 0x94, 0x01, 0x00, 0x4c, 
0x89, 0xe7, 0xe8, 0x21, 0xd0, 0xed, 0xff, 0x48, 0x8b, 0x5b, 0x18, 0x48, 0x85, 
0xdb, 0x74, 0x58, 0x48, 0x83, 0x3b, 0x00, 0x74, 0xf1, 0xba, 0x01, 0x00, 0x00, 
0x00, 0x48, 0x8d, 0x35, 0x07, 0x9a, 0x01, 0x00, 0x48, 0x89, 0xef, 0xe8



(gdb) disassemble /r 0x5571183e,0x5571183e+62
Dump of assembler code from 0x5571183e to 0x5571187c:
   0x5571183e 
:89 c2   mov   
 %eax,%edx
   0x55711840 
:4c 89 eemov   
 %r13,%rsi
   0x55711843 
:4c 89 e7mov   
 %r12,%rdi
   0x55711846 
:e8 35 d0 ed ff  callq 
 0x555ee880 
<_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@plt>
   0x5571184b 
:ba 01 00 00 00  mov   
 $0x1,%edx
   0x55711850 
:48 8d 35 03 94 01 00lea   
 0x19403(%rip),%rsi# 0x5572ac5a
   0x55711857 
:4c 89 e7mov   
 %r12,%rdi
   0x5571185a 
:e8 21 d0 ed ff  callq 
 0x555ee880 
<_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@plt>
   0x5571185f 
:48 8b 5b 18 mov   
 0x18(%rbx),%rbx
   0x55711863 
:48 85 dbtest  
 %rbx,%rbx
   0x55711866 
:74 58   je
 0x557118c0 

>> 0x55711868 
>> > customvariablesmember_struct const&)+168>:48 83 3b 00 
>> cmpq   $0x0,(%rbx)
   0x5571186c 
:74 f1   je
 0x5571185f 

   0x5571186e 
:ba 01 00 00 00  mov   
 $0x1,%edx
   0x55711873 
:48 8d 35 07 9a 01 00lea   
 0x19a07(%rip),%rsi# 0x5572b281
   0x5571187a 
:48 89 efmov   
 %rbp,%rdi
End of assembler dump.




root@debian:~# dpkg -l | grep centreon
ii  centreon-engine   18.10.0-4   amd64
Network, system, applicative supervision and monitoring - engine
ii  centreon-engine-dbgsym18.10.0-4   amd64
debug symbols for centreon-engine
ii  libcentreon-clib  

Bug#948491: centengine crashes regulary

2020-01-09 Thread Sébastien Delafond
On 09/01 14:24, Pascal Vibet - ADACIS wrote:
> I have an seg-fault in centengine process
> [...]

Hi Pascal,

thanks for opening this; could you report it upstream at
https://github.com/centreon/centreon-engine/issues/ ?

Cheers,

-- 
Seb



Bug#948491: centengine crashes regulary

2020-01-09 Thread Pascal Vibet - ADACIS
Package: centreon-engine
Version: 18.10.0-4
Severity: grave


I have an seg-fault in centengine process


sudo systemctl status centengine.service
● centengine.service - Centreon Engine
   Loaded: loaded (/lib/systemd/system/centengine.service; enabled;
vendor preset: enabled)
   Active: failed (Result: signal) since Thu 2020-01-09 10:28:37 CET; 9min ago
  Process: 26832 ExecStart=/usr/sbin/centengine
/etc/centreon-engine/centengine.cfg (code=killed, signal=SEGV)
 Main PID: 26832 (code=killed, signal=SEGV)

janv. 09 10:09:22 centreon-01 centreon-engine[26832]: [1578560962]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.45: rta
0,749ms, lost 0%01
janv. 09 10:11:52 centreon-01 centreon-engine[26832]: [1578561112]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.43: rta
0,850ms, lost 0%
janv. 09 10:14:27 centreon-01 centreon-engine[26832]: [1578561267]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.45: rta
0,922ms, lost 0%
janv. 09 10:16:57 centreon-01 centreon-engine[26832]: [1578561417]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.43: rta
0,754ms, lost 0%
janv. 09 10:19:32 centreon-01 centreon-engine[26832]: [1578561572]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.45: rta
0,663ms, lost 0%
janv. 09 10:22:02 centreon-01 centreon-engine[26832]: [1578561722]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.43: rta
0,741ms, lost 0%
janv. 09 10:24:37 centreon-01 centreon-engine[26832]: [1578561877]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.45: rta
0,567ms, lost 0%
janv. 09 10:27:07 centreon-01 centreon-engine[26832]: [1578562027]
[26832] HOST ALERT: srv.local.lan;UP;HARD;1;OK - 192.168.1.43: rta
0,819ms, lost 0%
janv. 09 10:28:37 centreon-01 systemd[1]: centengine.service: Main
process exited, code=killed, status=11/SEGV
janv. 09 10:28:37 centreon-01 systemd[1]: centengine.service: Failed
with result 'signal'.

sudo dmesg
(...)
[   78.330643] random: 7 urandom warning(s) missed due to ratelimiting
[ 5321.507438] centengine[26832]: segfault at 0 ip 55c4d2403868 sp
7ffd605fa390 error 4 in centengine[55c4d22e+134000]
[ 5321.507456] Code: 89 c2 4c 89 ee 4c 89 e7 e8 35 d0 ed ff ba 01 00
00 00 48 8d 35 03 94 01 00 4c 89 e7 e8 21 d0 ed ff 48 8b 5b 18 48 85
db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00 00 48 8d 35 07 9a 01 00 48 89
ef e8

And centengine crashes regulary









*:[75240.343141] centengine[26832]: segfault at 0 ip 5581d940b868
sp 7ffc5c825490 error 4 in
centengine[5581d92e8000+134000][75240.343165] Code: 89 c2 4c 89 ee 4c
89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 89 e7 e8
21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00
00 48 8d 35 07 9a 01 00 48 89 ef e8[78230.179697] centengine[29957]:
segfault at 0 ip 56273cc7b868 sp 7ffc746b24b0 error 4 in
centengine[56273cb58000+134000][78230.179718] Code: 89 c2 4c 89 ee 4c
89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 89 e7 e8
21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00
00 48 8d 35 07 9a 01 00 48 89 ef e8[81829.339926] centengine[31868]:
segfault at 0 ip 56389f77b868 sp 7ffef4389f80 error 4 in
centengine[56389f658000+134000][81829.339944] Code: 89 c2 4c 89 ee 4c
89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 89 e7 e8
21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00
00 48 8d 35 07 9a 01 00 48 89 ef e8[85290.785865] centengine[2182]:
segfault at 0 ip 55e3ab7cf868 sp 7fff3c33f800 error 4 in
centengine[55e3ab6ac000+134000][85290.785882] Code: 89 c2 4c 89 ee 4c
89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 89 e7 e8
21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00
00 48 8d 35 07 9a 01 00 48 89 ef e8[87850.778995] centengine[6300]:
segfault at 0 ip 555b4c86d868 sp 7fffbdbfe0f0 error 4 in
centengine[555b4c74a000+134000][87850.779023] Code: 89 c2 4c 89 ee 4c
89 e7 e8 35 d0 ed ff ba 01 00 00 00 48 8d 35 03 94 01 00 4c 89 e7 e8
21 d0 ed ff 48 8b 5b 18 48 85 db 74 58 <48> 83 3b 00 74 f1 ba 01 00 00
00 48 8d 35 07 9a 01 00 48 89 ef e8*