ok, so here we go
but i don't see much more withour bt full, do i understand correctly ?
the command:
coredumpctl gdb 754
display/i $pc
info reg
disassemble $pc-0x50,$pc+0x50
thanks
coredumpctl gdb 754
quit
PID: 754 (logrotate)
UID: 0 (root)
GID: 0 (root)
Signal: 11 (SEGV)
Timestamp: Sun 2019-01-20 11:24:28 CET (1 day 5h ago)
Command Line: /usr/sbin/logrotate /etc/logrotate.conf
Executable: /usr/sbin/logrotate
Control Group: /system.slice/cron.service
Unit: cron.service
Slice: system.slice
Boot ID: a57707f859fe4471ae781dd31d2b75f7
Machine ID: 230c8c9b6d3840749a45bcf6e73d8a82
Hostname: syslog
Storage:
/var/lib/systemd/coredump/core.logrotate.0.a57707f859fe4471ae781dd31d2b75f7.754.1547979868000000000000.lz4
Message: Process 754 (logrotate) of user 0 dumped core.
Stack trace of thread 754:
#0 0x000055e3239db88a rotateLogSet (logrotate)
#1 0x000055e3239d298d main (logrotate)
#2 0x00007faf357fb2e1 __libc_start_main (libc.so.6)
#3 0x000055e3239d312a _start (logrotate)
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 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 "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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 /usr/sbin/logrotate...Reading symbols from
/usr/lib/debug/.build-id/4b/a3d893d18935ef292da47c51a97214648caf82.debug...done.
done.
[New LWP 754]
[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/logrotate /etc/logrotate.conf'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000055e3239db88a in rotateLogSet (log=0x55e323ec4ca0, force=0) at
logrotate.c:1880
1880 logrotate.c: Aucun fichier ou dossier de ce type.
display/i $pc
1: x/i $pc
=> 0x55e3239db88a <rotateLogSet+74>: callq 0x55e3239d6ec0 <message>
info reg
info reg
rax 0x0 0
rbx 0x55e323ec4ca0 94434048625824
rcx 0x0 0
rdx 0x55e323ec4650 94434048624208
rsi 0x55e3239dd734 94434043483956
rdi 0x2 2
rbp 0x7fff984ad610 0x7fff984ad610
rsp 0x7fff97c94a30 0x7fff97c94a30
r8 0x55e358a20040 94434932949056
r9 0x0 0
r10 0x0 0
r11 0x246 582
r12 0x55e3239d3100 94434043441408
r13 0x0 0
r14 0x0 0
r15 0x55e323ec4ca0 94434048625824
rip 0x55e3239db88a 0x55e3239db88a <rotateLogSet+74>
eflags 0x10246 [ PF ZF IF RF ]
cs 0x33 51
ss 0x2b 43
ds 0x0 0
es 0x0 0
fs 0x0 0
gs 0x0 0
disassemble $pc-0x50,$pc+0x50
Dump of assembler code from 0x55e3239db83a to 0x55e3239db8da:
0x000055e3239db83a: test %al,(%rax)
0x000055e3239db83c: add %al,(%rax)
0x000055e3239db83e: add %al,(%rax)
0x000055e3239db840 <rotateLogSet+0>: push %rbp
0x000055e3239db841 <rotateLogSet+1>: mov %rsp,%rbp
0x000055e3239db844 <rotateLogSet+4>: push %r15
0x000055e3239db846 <rotateLogSet+6>: push %r14
0x000055e3239db848 <rotateLogSet+8>: push %r13
0x000055e3239db84a <rotateLogSet+10>: push %r12
0x000055e3239db84c <rotateLogSet+12>: mov %esi,%r13d
0x000055e3239db84f <rotateLogSet+15>: push %rbx
0x000055e3239db850 <rotateLogSet+16>: lea 0x1edd(%rip),%rsi
# 0x55e3239dd734
0x000055e3239db857 <rotateLogSet+23>: mov %rdi,%r15
0x000055e3239db85a <rotateLogSet+26>: sub $0x58,%rsp
0x000055e3239db85e <rotateLogSet+30>: mov (%rdi),%rdx
0x000055e3239db861 <rotateLogSet+33>: mov %fs:0x28,%rax
0x000055e3239db86a <rotateLogSet+42>: mov %rax,-0x38(%rbp)
0x000055e3239db86e <rotateLogSet+46>: xor %eax,%eax
0x000055e3239db870 <rotateLogSet+48>: movslq 0x10(%rdi),%rax
0x000055e3239db874 <rotateLogSet+52>: mov $0x2,%edi
0x000055e3239db879 <rotateLogSet+57>: lea 0x12(,%rax,4),%rax
0x000055e3239db881 <rotateLogSet+65>: and $0xfffffffffffffff0,%rax
0x000055e3239db885 <rotateLogSet+69>: sub %rax,%rsp
0x000055e3239db888 <rotateLogSet+72>: xor %eax,%eax
=> 0x000055e3239db88a <rotateLogSet+74>: callq 0x55e3239d6ec0 <message>
0x000055e3239db88f <rotateLogSet+79>: test %r13d,%r13d
0x000055e3239db892 <rotateLogSet+82>: mov %rsp,%r12
0x000055e3239db895 <rotateLogSet+85>: jne 0x55e3239dbb70
<rotateLogSet+816>
0x000055e3239db89b <rotateLogSet+91>: cmpl $0x5,0x20(%r15)
0x000055e3239db8a0 <rotateLogSet+96>: ja 0x55e3239db8e0
<rotateLogSet+160>
0x000055e3239db8a2 <rotateLogSet+98>: mov 0x20(%r15),%eax
0x000055e3239db8a6 <rotateLogSet+102>: lea 0x35ab(%rip),%rdx
# 0x55e3239dee58
0x000055e3239db8ad <rotateLogSet+109>: movslq (%rdx,%rax,4),%rax
0x000055e3239db8b1 <rotateLogSet+113>: add %rdx,%rax
0x000055e3239db8b4 <rotateLogSet+116>: jmpq *%rax
0x000055e3239db8b6 <rotateLogSet+118>: nopw %cs:0x0(%rax,%rax,1)
0x000055e3239db8c0 <rotateLogSet+128>: mov 0x28(%r15),%rdx
0x000055e3239db8c4 <rotateLogSet+132>: lea 0x1ecc(%rip),%rsi
# 0x55e3239dd797
0x000055e3239db8cb <rotateLogSet+139>: mov $0x2,%edi
0x000055e3239db8d0 <rotateLogSet+144>: xor %eax,%eax
---Type <return> to continue, or q <return> to quit---
0x000055e3239db8d2 <rotateLogSet+146>: callq 0x55e3239d6ec0 <message>
0x000055e3239db8d7 <rotateLogSet+151>: nopw 0x0(%rax,%rax,1)
End of assembler dump.
----- Mail original -----
De: "Bernhard Übelacker" <[email protected]>
À: [email protected], [email protected]
Envoyé: Lundi 21 Janvier 2019 16:37:17
Objet: Bug#918106: logrotate: segfaults in rotateLogSet
Control: retitle 918106 logrotate: segfaults in rotateLogSet
Hello Marc,
I am sorry, but my advice to use 'bt full' makes
following commands to show the state of frame #1.
Therefore can you repeat the "coredumpctl gdb 754"
without the "bt full"?
Kind regards,
Bernhard