Bug 679983 - bus error with logrotate
Summary: bus error with logrotate
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 14
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-24 02:12 UTC by Jacques Rodary
Modified: 2014-01-21 23:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-24 15:12:54 UTC
Type: ---


Attachments (Terms of Use)

Description Jacques Rodary 2011-02-24 02:12:02 UTC
Description of problem:/etc/logrotate.d/yum is empty, so logrotate command gives a bus error.


Version-Release number of selected component (if applicable):3.2.28-5.fc14.noarch


How reproducible:run "logrotate /etc/logrotate.conf" (e.g. as a daily cron job)


Steps to Reproduce:
1.
2.
3.
  
Actual result: Erreur du bus (core dumped) 



Expected results:no error


Additional info: I copied the file from an old backup

Comment 1 James Antill 2011-02-24 15:12:54 UTC
That file isn't zero length:

% cat /etc/logrotate.d/yum
/var/log/yum.log {
    missingok
    notifempty
    size 30k
    yearly
    create 0600 root root
}

...but it's marked as a config. file, so the sysadmin. can change it. Logrotate shouldn't crash on zero length files anyway.

Comment 2 Jacques Rodary 2011-03-03 10:56:38 UTC
But it does with this report : 

/etc/cron.daily/logrotate: line 3: 20333 Bus error               (core dumped) /usr/sbin/logrotate /etc/logrotate.conf > /dev/null 2>&1

I found the cause running "logrotate -v /etc/logrotate.conf" which crashed after rotating "/var/log/wpa_supplicant.log".


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