From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; cs-CZ; rv:1.8.1.13) Gecko/20080325 Fedora/2.0.0.13-1.fc8 Firefox/2.0.0.13 Description of problem: During processing of a configuration file logrotate doesn't check whether the included file isn't the same. It leads to segmentation fault. During processing of a configuration file logrotate doesn't check whether the included directory isn't the same as the directory of that file. It leads to logrotate infinite loop. Version-Release number of selected component (if applicable): logrotate-3.7.1-8 How reproducible: Always Steps to Reproduce: 1. write "include /etc/logrotate.d/syslog" on the 1st line of /etc/logrotate.d/syslog file 2. /etc/cron.daily/logrotate Actual Results: /etc/cron.daily/logrotate: line 3: 8634 Segmentation fault /usr/sbin/logrotate /etc/logrotate.conf Expected Results: Some message which warns you about recursive includes and skipping the file. Additional info:
The segmentation fault seems to have the same cause as in the bug #440202. However the detection of recursive includes might be an useful feature.
Created attachment 401041 [details] recursion depth counter backported from newer logrotate
fixed in logrotate-3.7.1-11.RHEL4
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0334.html