Red Hat Bugzilla – Bug 170904
logrotate segfaults on what appears to be a valid config file
Last modified: 2007-11-30 17:11:15 EST
Created attachment 120012 [details]
Description of problem:
logrotate segfaults with:
/etc/cron.daily/logrotate: line 3: 4376 Segmentation fault
Version-Release number of selected component (if applicable):
Happens every day.
Steps to Reproduce:
1. Do nothing, let cron/anacron run logrotate.
Should work as it used to.
Attaching config file and strace output.
GNU gdb Red Hat Linux (126.96.36.199-1.81rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host libthread_db
(gdb) set args /etc/logrotate.conf
Starting program: /usr/sbin/logrotate /etc/logrotate.conf
Reading symbols from shared object read from target memory...done.
Loaded system supplied DSO at 0x8e7000
Program received signal SIGSEGV, Segmentation fault.
0x00b7c026 in free () from /lib/libc.so.6
#0 0x00b7c026 in free () from /lib/libc.so.6
#1 0x0804ce6d in main (argc=2, argv=0xbfdac244) at logrotate.c:90
#2 0x00b2d50f in __libc_start_main () from /lib/libc.so.6
#3 0x08049851 in _start ()
Created attachment 120013 [details]
check logrotate-3.7.2-7 please,
Yeah, appears much better. Thanks.
*** Bug 170955 has been marked as a duplicate of this bug. ***