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 000055c4d2403868 sp 
00007ffd605fa390 error 4 in centengine[55c4d22e0000+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.
...
        0x00005555555ef050 - 0x0000555555721701 is .text
...




(gdb) find /b 0x00005555555ef050, 0x0000555555721701, 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
0x55555571183e 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+126>
1 pattern found.


(gdb) b *(0x55555571183e + 42)
Breakpoint 3 at 0x555555711868: file ./src/retention/dump.cc, line 127.
(gdb) info b
Num     Type           Disp Enb Address            What
3       breakpoint     keep y   0x0000555555711868 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 0x55555571183e,0x55555571183e+62
Dump of assembler code from 0x55555571183e to 0x55555571187c:
   0x000055555571183e 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+126>:        89 c2                   mov   
 %eax,%edx
   0x0000555555711840 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+128>:        4c 89 ee                mov   
 %r13,%rsi
   0x0000555555711843 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+131>:        4c 89 e7                mov   
 %r12,%rdi
   0x0000555555711846 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+134>:        e8 35 d0 ed ff          callq 
 0x5555555ee880 
<_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@plt>
   0x000055555571184b 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+139>:        ba 01 00 00 00          mov   
 $0x1,%edx
   0x0000555555711850 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+144>:        48 8d 35 03 94 01 00    lea   
 0x19403(%rip),%rsi        # 0x55555572ac5a
   0x0000555555711857 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+151>:        4c 89 e7                mov   
 %r12,%rdi
   0x000055555571185a 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+154>:        e8 21 d0 ed ff          callq 
 0x5555555ee880 
<_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_l@plt>
   0x000055555571185f 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+159>:        48 8b 5b 18             mov   
 0x18(%rbx),%rbx
   0x0000555555711863 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+163>:        48 85 db                test  
 %rbx,%rbx
   0x0000555555711866 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+166>:        74 58                   je    
 0x5555557118c0 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+256>
>> 0x0000555555711868 
>> <com::centreon::engine::retention::dump::customvariables(std::ostream&, 
>> customvariablesmember_struct const&)+168>:        48 83 3b 00             
>> cmpq   $0x0,(%rbx)
   0x000055555571186c 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+172>:        74 f1                   je    
 0x55555571185f 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+159>
   0x000055555571186e 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+174>:        ba 01 00 00 00          mov   
 $0x1,%edx
   0x0000555555711873 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+179>:        48 8d 35 07 9a 01 00    lea   
 0x19a07(%rip),%rsi        # 0x55555572b281
   0x000055555571187a 
<com::centreon::engine::retention::dump::customvariables(std::ostream&, 
customvariablesmember_struct const&)+186>:        48 89 ef                mov   
 %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-dbgsym        18.10.0-4                   amd64        
debug symbols for centreon-engine
ii  libcentreon-clib              18.10.0-2                   amd64        
Network, system, applicative supervision and monitoring - core libraries



https://sources.debian.org/src/centreon-engine/18.10.0-4/src/retention/dump.cc/#L127

Reply via email to