Bug 718549 - [abrt] logrotate-3.7.9-2.fc14: readConfigFile: Process /usr/sbin/logrotate was killed by signal 7 (SIGBUS)
Summary: [abrt] logrotate-3.7.9-2.fc14: readConfigFile: Process /usr/sbin/logrotate wa...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: logrotate
Version: 14
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jan Kaluža
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:5aefeee72cb903461725a005098...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-07-03 21:08 UTC by Petr Bohac
Modified: 2011-08-02 01:54 UTC (History)
3 users (show)

Fixed In Version: logrotate-3.7.9-4.fc14
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-02 01:54:07 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (128.88 KB, text/plain)
2011-07-03 21:08 UTC, Petr Bohac
no flags Details

Description Petr Bohac 2011-07-03 21:08:47 UTC
abrt version: 1.1.18
architecture: x86_64
Attached file: backtrace, 131971 bytes
cmdline: /usr/sbin/logrotate /etc/logrotate.conf
component: logrotate
Attached file: coredump, 438272 bytes
crash_function: readConfigFile
executable: /usr/sbin/logrotate
kernel: 2.6.38.6
package: logrotate-3.7.9-2.fc14
rating: 4
reason: Process /usr/sbin/logrotate was killed by signal 7 (SIGBUS)
release: Fedora release 14 (Laughlin)
time: 1309292637
uid: 500

comment
-----
Evety time cron runs logrotate i recive folowing e-mail:

/etc/cron.daily/logrotate:

/etc/cron.daily/logrotate: line 3:  7808 Bus error               /usr/sbin/logrotate /etc/logrotate.conf > /dev/null 2>&1

How to reproduce
-----
1. just running "/usr/sbin/logrotate /etc/logrotate.conf > /dev/null 2>&1" in cron script

Comment 1 Petr Bohac 2011-07-03 21:08:52 UTC
Created attachment 511087 [details]
File: backtrace

Comment 2 Jan Kaluža 2011-07-11 11:19:11 UTC
Hi, sorry for delay, I wasn't online during last week.

Can you check what's the size of your config files in /etc/logrotate.d/ directory? Logrotate in F14 has known bug when config file is exactly 4096*N bytes long. It's fixed in F15, but the fix was too complex to be added into F14, but I think I could backport it now.

Comment 3 Petr Bohac 2011-07-11 23:32:43 UTC
Hello,
here is output of ls

$ ls -la
celkem 84
drwxr-xr-x.   2 root root   4096 10. čec 13.39 .
drwxr-xr-x. 171 root root  12288 11. čec 21.33 ..
-rw-r--r--.   1 root root     71 29. čen 11.48 cups
-rw-r--r--.   1 root root    188 18. srp  2005 denyhosts
-rw-r--r--.   1 root root    147 15. kvě 23.47 exim
-rw-r--r--.   1 root root    140 21. pro  2010 glusterfs
-rw-r--r--.   1 root root    185 27. říj  2010 httpd
-rw-r-----    1 root named   170  6. čec 22.49 named
-rw-r--r--.   1 root root    136 16. lis  2010 ppp
-rw-r--r--.   1 root root    213  7. dub 15.48 proftpd
-rw-r--r--.   1 root root    296 28. čen  2010 psacct
-rw-r--r--.   1 root root    106 12. pro  2010 rpmorphan
-rw-r--r--.   1 root root    115  1. dub 18.16 samba
-rw-r--r--.   1 root root    121 24. čen 20.49 setroubleshoot
-rw-r--r--.   1 root root    435  6. kvě 11.49 squid
-rw-r--r--.   1 root root      0  2. dub  2010 sssd
-rw-r--r--.   1 root root    228  9. zář  2010 syslog
-rw-r--r--.   1 root root    403 17. bře 12.33 tor
-rw-r--r--.   1 root root    100 13. kvě  2010 wpa_supplicant
-rw-r--r--.   1 root root    100 31. kvě 20.36 yum

Problem was empty file sssd. After removing it, everything works fine. Thanks for helping me.

Petr

Comment 4 Jan Kaluža 2011-07-12 05:32:19 UTC
Yes, that's also in 4096*N category :). I will try to backport the fix to F14, but it will need some time to test it properly.

Comment 5 Fedora Update System 2011-07-20 09:17:12 UTC
logrotate-3.7.9-4.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/logrotate-3.7.9-4.fc14

Comment 6 Fedora Update System 2011-07-22 19:27:59 UTC
Package logrotate-3.7.9-4.fc14:
* should fix your issue,
* was pushed to the Fedora 14 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing logrotate-3.7.9-4.fc14'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/logrotate-3.7.9-4.fc14
then log in and leave karma (feedback).

Comment 7 Fedora Update System 2011-08-02 01:54:02 UTC
logrotate-3.7.9-4.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.