Bug 679983

Summary: bus error with logrotate
Product: [Fedora] Fedora Reporter: Jacques Rodary <jrodary>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 14CC: ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-24 15:12:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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".