Bug 671926

Summary: Logrotate crash
Product: [Fedora] Fedora Reporter: Vaclav "sHINOBI" Misek <misek>
Component: logrotateAssignee: Jan Kaluža <jkaluza>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: jkaluza, tsmetana
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-02 10:28:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
/etc/logrotate.d/mgetty file none

Description Vaclav "sHINOBI" Misek 2011-01-22 23:06:51 UTC
Description of problem:
Logrotate crashes during processing.

Version-Release number of selected component (if applicable):
logrotate-3.7.9-5.fc15.x86_64

Steps to Reproduce:
1. /usr/sbin/logrotate /etc/logrotate.conf
2. core dump

  
Actual results:
# /usr/sbin/logrotate /etc/logrotate.conf
*** glibc detected *** /usr/sbin/logrotate: free(): invalid pointer: 0x0000000000e316e2 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3a7d279357]
/usr/sbin/logrotate[0x407b38]
/usr/sbin/logrotate[0x409ec4]
/usr/sbin/logrotate[0x40998f]
/usr/sbin/logrotate[0x409c8d]
/usr/sbin/logrotate[0x40a231]
/usr/sbin/logrotate[0x40637d]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3a7d21ee7d]
/usr/sbin/logrotate[0x4027a9]
======= Memory map: ========
00400000-0040d000 r-xp 00000000 00:12 3792813                            /usr/sbin/logrotate
0060d000-0060e000 rw-p 0000d000 00:12 3792813                            /usr/sbin/logrotate
00e2c000-00e4d000 rw-p 00000000 00:00 0                                  [heap]
3734a00000-3734a07000 r-xp 00000000 00:12 3129060                        /lib64/libacl.so.1.1.0
3734a07000-3734c07000 ---p 00007000 00:12 3129060                        /lib64/libacl.so.1.1.0
3734c07000-3734c08000 rw-p 00007000 00:12 3129060                        /lib64/libacl.so.1.1.0
3735600000-3735604000 r-xp 00000000 00:12 3129059                        /lib64/libattr.so.1.1.0
3735604000-3735803000 ---p 00004000 00:12 3129059                        /lib64/libattr.so.1.1.0
3735803000-3735804000 rw-p 00003000 00:12 3129059                        /lib64/libattr.so.1.1.0
3a0dc00000-3a0dc1d000 r-xp 00000000 00:12 3791033                        /lib64/libselinux.so.1
3a0dc1d000-3a0de1c000 ---p 0001d000 00:12 3791033                        /lib64/libselinux.so.1
3a0de1c000-3a0de1d000 r--p 0001c000 00:12 3791033                        /lib64/libselinux.so.1
3a0de1d000-3a0de1e000 rw-p 0001d000 00:12 3791033                        /lib64/libselinux.so.1
3a0de1e000-3a0de1f000 rw-p 00000000 00:00 0 
3a7ce00000-3a7ce21000 r-xp 00000000 00:12 3049264                        /lib64/ld-2.12.90.so
3a7d020000-3a7d021000 r--p 00020000 00:12 3049264                        /lib64/ld-2.12.90.so
3a7d021000-3a7d022000 rw-p 00021000 00:12 3049264                        /lib64/ld-2.12.90.so
3a7d022000-3a7d023000 rw-p 00000000 00:00 0 
3a7d200000-3a7d39b000 r-xp 00000000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d39b000-3a7d59b000 ---p 0019b000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d59b000-3a7d59f000 r--p 0019b000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d59f000-3a7d5a0000 rw-p 0019f000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d5a0000-3a7d5a6000 rw-p 00000000 00:00 0 
3a7da00000-3a7da02000 r-xp 00000000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7da02000-3a7dc02000 ---p 00002000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7dc02000-3a7dc03000 r--p 00002000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7dc03000-3a7dc04000 rw-p 00003000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7e200000-3a7e215000 r-xp 00000000 00:12 3049291                        /lib64/libgcc_s-4.5.1-20101130.so.1
3a7e215000-3a7e415000 ---p 00015000 00:12 3049291                        /lib64/libgcc_s-4.5.1-20101130.so.1
3a7e415000-3a7e416000 rw-p 00015000 00:12 3049291                        /lib64/libgcc_s-4.5.1-20101130.so.1
3a8be00000-3a8be08000 r-xp 00000000 00:12 3049631                        /lib64/libpopt.so.0.0.0
3a8be08000-3a8c008000 ---p 00008000 00:12 3049631                        /lib64/libpopt.so.0.0.0
3a8c008000-3a8c009000 rw-p 00008000 00:12 3049631                        /lib64/libpopt.so.0.0.0
7fdc70eca000-7fdc70ed5000 r-xp 00000000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fdc70ed5000-7fdc710d5000 ---p 0000b000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fdc710d5000-7fdc710d6000 r--p 0000b000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fdc710d6000-7fdc710d7000 rw-p 0000c000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fdc7110c000-7fdc76f9d000 r--p 00000000 00:12 3046588                    /usr/lib/locale/locale-archive
7fdc76f9d000-7fdc76fa2000 rw-p 00000000 00:00 0 
7fdc76fce000-7fdc76fcf000 r--p 00000000 00:12 30869                      /etc/logrotate.d/mgetty
7fdc76fcf000-7fdc76fd0000 r--p 00000000 00:12 3357091                    /etc/logrotate.conf
7fdc76fd0000-7fdc76fd7000 r--s 00000000 00:12 3045995                    /usr/lib64/gconv/gconv-modules.cache
7fdc76fd7000-7fdc76fd8000 rw-p 00000000 00:00 0 
7fff16503000-7fff16524000 rw-p 00000000 00:00 0                          [stack]
7fff165ae000-7fff165af000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

Additional info:
glibc-2.12.90-21.fc15.x86_64

Comment 1 Jan Kaluža 2011-01-24 09:50:25 UTC
Please get logrotate log from that (run logrotate with -v option). Also backtrace would be helpful.

Comment 2 Vaclav "sHINOBI" Misek 2011-01-26 16:34:13 UTC
# /usr/sbin/logrotate -v /etc/logrotate.conf
reading config file /etc/logrotate.conf
including /etc/logrotate.d
reading config file atop
reading config file bacula
reading config file boinc-client
reading config file chrony
reading config file cups
reading config file dirmngr
reading config file fail2ban
reading config file freenx-server
reading config file glusterd
reading config file glusterfs-fuse
reading config file httpd
reading config file iptraf
reading config file jetty
reading config file libvirtd.lxc
reading config file libvirtd.qemu
reading config file libvirtd.uml
reading config file mediatomb
reading config file mgetty
*** glibc detected *** /usr/sbin/logrotate: free(): invalid pointer: 0x0000000001382722 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3a7d279357]
/usr/sbin/logrotate[0x407b38]
/usr/sbin/logrotate[0x409ec4]
/usr/sbin/logrotate[0x40998f]
/usr/sbin/logrotate[0x409c8d]
/usr/sbin/logrotate[0x40a231]
/usr/sbin/logrotate[0x40637d]
/lib64/libc.so.6(__libc_start_main+0xfd)[0x3a7d21ee7d]
/usr/sbin/logrotate[0x4027a9]
======= Memory map: ========
00400000-0040d000 r-xp 00000000 00:12 3909663                            /usr/sbin/logrotate
0060d000-0060e000 rw-p 0000d000 00:12 3909663                            /usr/sbin/logrotate
0137d000-0139e000 rw-p 00000000 00:00 0                                  [heap]
3734a00000-3734a07000 r-xp 00000000 00:12 3129060                        /lib64/libacl.so.1.1.0
3734a07000-3734c07000 ---p 00007000 00:12 3129060                        /lib64/libacl.so.1.1.0
3734c07000-3734c08000 rw-p 00007000 00:12 3129060                        /lib64/libacl.so.1.1.0
3735600000-3735604000 r-xp 00000000 00:12 3129059                        /lib64/libattr.so.1.1.0
3735604000-3735803000 ---p 00004000 00:12 3129059                        /lib64/libattr.so.1.1.0
3735803000-3735804000 rw-p 00003000 00:12 3129059                        /lib64/libattr.so.1.1.0
3a0dc00000-3a0dc1d000 r-xp 00000000 00:12 3791033                        /lib64/libselinux.so.1
3a0dc1d000-3a0de1c000 ---p 0001d000 00:12 3791033                        /lib64/libselinux.so.1
3a0de1c000-3a0de1d000 r--p 0001c000 00:12 3791033                        /lib64/libselinux.so.1
3a0de1d000-3a0de1e000 rw-p 0001d000 00:12 3791033                        /lib64/libselinux.so.1
3a0de1e000-3a0de1f000 rw-p 00000000 00:00 0 
3a43600000-3a43615000 r-xp 00000000 00:12 3906717                        /lib64/libgcc_s-4.6.0-20110122.so.1
3a43615000-3a43814000 ---p 00015000 00:12 3906717                        /lib64/libgcc_s-4.6.0-20110122.so.1
3a43814000-3a43815000 rw-p 00014000 00:12 3906717                        /lib64/libgcc_s-4.6.0-20110122.so.1
3a7ce00000-3a7ce21000 r-xp 00000000 00:12 3049264                        /lib64/ld-2.12.90.so
3a7d020000-3a7d021000 r--p 00020000 00:12 3049264                        /lib64/ld-2.12.90.so
3a7d021000-3a7d022000 rw-p 00021000 00:12 3049264                        /lib64/ld-2.12.90.so
3a7d022000-3a7d023000 rw-p 00000000 00:00 0 
3a7d200000-3a7d39b000 r-xp 00000000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d39b000-3a7d59b000 ---p 0019b000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d59b000-3a7d59f000 r--p 0019b000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d59f000-3a7d5a0000 rw-p 0019f000 00:12 3049265                        /lib64/libc-2.12.90.so
3a7d5a0000-3a7d5a6000 rw-p 00000000 00:00 0 
3a7da00000-3a7da02000 r-xp 00000000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7da02000-3a7dc02000 ---p 00002000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7dc02000-3a7dc03000 r--p 00002000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a7dc03000-3a7dc04000 rw-p 00003000 00:12 3049279                        /lib64/libdl-2.12.90.so
3a8be00000-3a8be08000 r-xp 00000000 00:12 3049631                        /lib64/libpopt.so.0.0.0
3a8be08000-3a8c008000 ---p 00008000 00:12 3049631                        /lib64/libpopt.so.0.0.0
3a8c008000-3a8c009000 rw-p 00008000 00:12 3049631                        /lib64/libpopt.so.0.0.0
7fa056766000-7fa056771000 r-xp 00000000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fa056771000-7fa056971000 ---p 0000b000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fa056971000-7fa056972000 r--p 0000b000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fa056972000-7fa056973000 rw-p 0000c000 00:12 3045703                    /lib64/libnss_files-2.12.90.so
7fa0569a8000-7fa05c839000 r--p 00000000 00:12 3046588                    /usr/lib/locale/locale-archive
7fa05c839000-7fa05c83e000 rw-p 00000000 00:00 0 
7fa05c86a000-7fa05c86b000 r--p 00000000 00:12 30869                      /etc/logrotate.d/mgetty
7fa05c86b000-7fa05c86c000 r--p 00000000 00:12 3357091                    /etc/logrotate.conf
7fa05c86c000-7fa05c873000 r--s 00000000 00:12 3045995                    /usr/lib64/gconv/gconv-modules.cache
7fa05c873000-7fa05c874000 rw-p 00000000 00:00 0 
7fff9bd2a000-7fff9bd4b000 rw-p 00000000 00:00 0                          [stack]
7fff9bdff000-7fff9be00000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)

Comment 3 Vaclav "sHINOBI" Misek 2011-01-26 16:50:47 UTC
Unfortunately I can't install glibc debug (looks as unavailable)

(gdb) thread apply all bt full

Thread 1 (process 4307):
#0  0x0000003a7d2341b5 in raise () from /lib64/libc.so.6
No symbol table info available.
#1  0x0000003a7d235b66 in abort () from /lib64/libc.so.6
No symbol table info available.
#2  0x0000003a7d27197b in __libc_message () from /lib64/libc.so.6
No symbol table info available.
#3  0x0000003a7d279357 in _int_free () from /lib64/libc.so.6
No symbol table info available.
#4  0x0000000000407b38 in readConfigFile (configFile=0x60f710 "mgetty", 
    defConfig=0x7fffffffdcb0) at config.c:1443
        fd = <value optimized out>
        buf = 0x7ffff7ff4000 "#\n# Rotate mgetty log files.\n#\n\ntabooext + mgetty.log.tty*[-.]*\n/var/log/mgetty.log.tty /var/log/mgetty.log.unknown /var/log/mgetty.callback {\n\tnocompress\n\tmissingok\n}\n"
        endtag = <value optimized out>
        key = 0x613722 "mgetty.log.tty*[-.]*"
        foo = 0 '\000'
        length = <value optimized out>
        lineNum = <value optimized out>
        multiplier = <value optimized out>
        i = <value optimized out>
        k = <value optimized out>
        scriptStart = 0x0
        scriptDest = 0x0
        newlog = 0x7fffffffdcb0
        start = 0x7ffff7ff403e "*\n/var/log/mgetty.log.tty /var/log/mgetty.log.unknown /var/log/mgetty.callback {\n\tnocompress\n\tmissingok\n}\n"
        chptr = 0x613736 ""
        dirName = <value optimized out>
        group = <value optimized out>
        pw = <value optimized out>
        rc = <value optimized out>
        createOwner = "root\000\000\000\000w\000\000\000|\000\000\000\360\323\377\377\377\177\000\000\337\323\377\377\377\177\000\000\320\367`\000\000\000\000\000\300\373`\000\000\000\000\000@\372`\000\000\000\000\000\260\367`\000\000\000\000\000`\371`\000\000\000\000\000\300\021Z}:\000\000\000\004\000\000\000\000\000\000\000\037\000\000\000\000\000\000\000\021\000\000\000\000\000\000\000\360\324\377\377\377\177\000\000\022\000\000\000\000\000\000\000\342\316'}:\000\000\000\037\000\000\000\000\000\000\000\300\021Z}:\000\000\000\017\000\000\000\000\000\000\000\036\000\000\000\000\000\000\000\b\000\000\000\000\000\000\000\360\366`\000\000\000\000\000\004\000\000\000\000\000\000\000\037\000\000\000\000\000\000\000\021\000\000\000\000\000\000"
        createGroup = "root\000\000\000\000\340\373`\000\000\000\000\000\200r@\000\000\000\000\000\020\001\000\000\000\000\000\000\b\000\000\000\000\000\000\000\274j#}:\000\000\000\220\367`\000\000\000\000\000P\370`\000\000\000\000\000\240\373`\000\000\000\000\000\060\367`\000\000\000\000\000\200\373`\000\000\000\000\000\000\371`\000\000\000\000\000\020\370`\000\000\000\000\000`\373`\000\000\000\000\000\240\371`\000\000\000\000\000\300\371`\000\000\000\000\000p\370`\000\000\000\000\000\002\000\000\000\000\000\000\000\340\323\377\377\377\177", '\000' <repeats 42 times>, "@\000\000\000\000\000\000"
        createMode = 420
        sb = {st_dev = 19, st_ino = 30869, st_nlink = 1, st_mode = 33188, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 168, 
          st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1296032902, 
            tv_nsec = 81929429}, st_mtim = {tv_sec = 1274444628, tv_nsec = 0}, 
          st_ctim = {tv_sec = 1285107560, tv_nsec = 858214790}, __unused = {0, 
            0, 0}}
        sb2 = {st_dev = 3109556323014, st_ino = 0, st_nlink = 2718714299078, 
          st_mode = 4294955072, st_uid = 32767, st_gid = 710, __pad0 = 584, 
          st_rdev = 140737488343248, st_size = 689, st_blksize = 1, 
          st_blocks = 140737255347360, st_atim = {tv_sec = 251207933557, 
            tv_nsec = 4294967297}, st_mtim = {tv_sec = -1, tv_nsec = -1}, 
          st_ctim = {tv_sec = -1, tv_nsec = 4061753812}, __unused = {6355297, 
            140737488343248, 0}}
        globResult = {gl_pathc = 1, gl_pathv = 0x0, gl_offs = 0, 
          gl_flags = 16, gl_closedir = 0x7fffffffd420, gl_readdir = 0x60fcc8, 
          gl_opendir = 0x2, gl_lstat = 0x1, gl_stat = 0x60fc50}
        argv = 0x6136f0
        argc = 1
        argNum = <value optimized out>
        flags = <value optimized out>
        state = 2
        logerror = 0
        log = <value optimized out>
        recursion_depth = 1
        globerr_msg = 0x0
        fd_lock = {l_type = 0, l_whence = 0, l_start = 0, l_len = 0, l_pid = 0}
        __PRETTY_FUNCTION__ = "readConfigFile"
#5  0x0000000000409ec4 in readConfigPath (path=<value optimized out>, 
    defConfig=0x7fffffffdcb0) at config.c:435
        dp = <value optimized out>
        files_count = 31
        i = <value optimized out>
        namelist = 0x60fbe0
        p = <value optimized out>
        dirp = <value optimized out>
        sb = {st_dev = 19, st_ino = 30865, st_nlink = 1, st_mode = 16877, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 486, 
          st_blksize = 4096, st_blocks = 0, st_atim = {tv_sec = 1296032902, 
            tv_nsec = 59928865}, st_mtim = {tv_sec = 1295972170, 
            tv_nsec = 662265831}, st_ctim = {tv_sec = 1295972170, 
            tv_nsec = 662265831}, __unused = {0, 0, 0}}
        here = 8
        oldnumlogs = 18
        result = <value optimized out>
        defConfigBackup = {pattern = 0x0, files = 0x0, numFiles = 0, 
          oldDir = 0x0, criterium = ROT_WEEKLY, threshhold = 1048576, 
          minsize = 0, rotateCount = 4, rotateAge = 0, logStart = -1, 
          pre = 0x0, post = 0x0, first = 0x0, last = 0x0, logAddress = 0x0, 
          extension = 0x0, compress_prog = 0x6104a0 "/bin/gzip", 
          uncompress_prog = 0x6104e0 "/bin/gunzip", 
          compress_ext = 0x610500 ".gz", dateformat = 0x0, flags = 518, 
          shred_cycles = 0, createMode = 4294967295, createUid = 4294967295, 
          createGid = 4294967295, compress_options_list = 0x0, 
          compress_options_count = 0, list = {tqe_next = 0x0, tqe_prev = 0x0}}
        __PRETTY_FUNCTION__ = "readConfigPath"
#6  0x000000000040998f in readConfigFile (
    configFile=0x7fffffffe7a4 "/etc/logrotate.conf", defConfig=0x7fffffffdcb0)
    at config.c:1004
        fd = <value optimized out>
        buf = 0x7ffff7ff5000 "# see \"man logrotate\" for details\n# rotate log files weekly\nweekly\n\n# keep 4 weeks worth of backlogs\nrotate 4\n\n# create new (empty) log files after rotating old ones\ncreate\n\n# use date as a suffix of "...
        endtag = <value optimized out>
        key = 0x60f690 "/etc/logrotate.d"
        foo = 0 '\000'
        length = <value optimized out>
        lineNum = <value optimized out>
        multiplier = <value optimized out>
        i = <value optimized out>
        k = <value optimized out>
        scriptStart = <value optimized out>
        scriptDest = <value optimized out>
        newlog = 0x7fffffffdcb0
        start = 0x7ffff7ff517c "d\n\n# no packages own wtmp and btmp -- we'll rotate them here\n/var/log/wtmp {\n    monthly\n    create 0664 root utmp\n\tminsize 1M\n    rotate 1\n}\n\n/var/log/btmp {\n    missingok\n    monthly\n    create 0600"...
        chptr = 0x60f691 "etc/logrotate.d"
        dirName = <value optimized out>
        group = <value optimized out>
        pw = <value optimized out>
        rc = <value optimized out>
        createOwner = "@\332\377\377\377\177", '\000' <repeats 42 times>, "P\000\000\000\000\000\000\000\003\000\000\000\060\000\000\000[\000\000\000n\000\000\0---Type <return> to continue, or q <return> to quit---
00w\000\000\000|\000\000\000P\332\377\377\377\177\000\000?\332\377\377\377\177\000\000f\006\000\000\000\000\000\000մ\"}:\000\000\000\066\356\377\377\377\177\000\000\260\333\377\377\377\177\000\000\000\000\000\000\000\000\000\000\300\021Z}:\000\000\000\"\000\000\000\000\000\000\000\"\000\000\000\000\000\000\000\000\364`\000\000\000\000\000\000\333\377\377\377\177\000\000\060\334\377\377\377\177\000\000\342\316'}:\000\000\000\000\335\377\377\377\177\000"
        createGroup = '\000' <repeats 32 times>"\360, \000\000\000\000\000\000\000\r\000\000\000\063\000\000\000[\000\000\000n\000\000\000w\000\000\000|\000\000\000p\331\377\377\377\177\000\000_\331\377\377\377\177", '\000' <repeats 18 times>"\240, \000\000\000\000\000\000\000\b\000\000\000\062\000\000\000[\000\000\000n\000\000\000\300\021Z}:\000\000\000\300\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000u\001\000\000\000\000\000\000\f\000\000\000\000\000\000\000\020\000\000\000\000\000\000\000\342\316'}:\000\000\000P\340`\000\064\063\060\067\060\335\377\377\377\177\000\000\000\000\000\000\000\000\000"
        createMode = 3
        sb = {st_dev = 19, st_ino = 3357091, st_nlink = 1, st_mode = 33188, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 662, 
          st_blksize = 4096, st_blocks = 1, st_atim = {tv_sec = 1296032902, 
            tv_nsec = 57928815}, st_mtim = {tv_sec = 1277712296, tv_nsec = 0}, 
          st_ctim = {tv_sec = 1294351903, tv_nsec = 596431133}, __unused = {0, 
            0, 0}}
        sb2 = {st_dev = 20400, st_ino = 4096, st_nlink = 40, 
          st_mode = 1296025900, st_uid = 0, st_gid = 901323001, __pad0 = 0, 
          st_rdev = 1293029243, st_size = 0, st_blksize = 1293188874, 
          st_blocks = 273940552, st_atim = {tv_sec = 140737488347728, 
            tv_nsec = 140737488347856}, st_mtim = {tv_sec = 140737353901328, 
            tv_nsec = 0}, st_ctim = {tv_sec = 237118687799, 
            tv_nsec = 140737488345344}, __unused = {251203209074, 0, 
            251203217542}}
        globResult = {gl_pathc = 0, gl_pathv = 0x1003e0003, 
          gl_offs = 237118689952, gl_flags = -7600, 
          gl_closedir = 0x7fffffffe2d0, gl_readdir = 0x7ffff7fc6000, 
          gl_opendir = 0x1, gl_lstat = 0x3a7da00869, gl_stat = 0x7fffffffd9f0}
        argv = 0x7fffffffe2d0
        argc = 32767
        argNum = <value optimized out>
        flags = <value optimized out>
        state = <value optimized out>
        logerror = <value optimized out>
        log = <value optimized out>
        recursion_depth = 1
        globerr_msg = 0x0
        fd_lock = {l_type = 0, l_whence = 0, l_start = 0, l_len = 0, l_pid = 0}
        __PRETTY_FUNCTION__ = "readConfigFile"
#7  0x0000000000409c8d in readConfigPath (
    path=0x7fffffffe7a4 "/etc/logrotate.conf", defConfig=0x7fffffffdcb0)
    at config.c:456
        sb = {st_dev = 19, st_ino = 3357091, st_nlink = 1, st_mode = 33188, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, st_size = 662, 
          st_blksize = 4096, st_blocks = 1, st_atim = {tv_sec = 1296032902, 
            tv_nsec = 57928815}, st_mtim = {tv_sec = 1277712296, tv_nsec = 0}, 
          st_ctim = {tv_sec = 1294351903, tv_nsec = 596431133}, __unused = {0, 
            0, 0}}
        here = <value optimized out>
        oldnumlogs = 0
        result = 1
        defConfigBackup = {pattern = 0x0, files = 0x0, numFiles = 0, 
          oldDir = 0x0, criterium = ROT_SIZE, threshhold = 1048576, 
          minsize = 0, rotateCount = 0, rotateAge = 0, logStart = -1, 
          pre = 0x0, post = 0x0, first = 0x0, last = 0x0, logAddress = 0x0, 
          extension = 0x0, compress_prog = 0x0, uncompress_prog = 0x0, 
          compress_ext = 0x0, dateformat = 0x0, flags = 4, shred_cycles = 0, 
          createMode = 4294967295, createUid = 4294967295, 
          createGid = 4294967295, compress_options_list = 0x0, 
          compress_options_count = 0, list = {tqe_next = 0x0, tqe_prev = 0x0}}
        __PRETTY_FUNCTION__ = "readConfigPath"
#8  0x000000000040a231 in readAllConfigPaths (paths=<value optimized out>)
    at config.c:516
        result = 0
        file = 0x60f320
        defConfig = {pattern = 0x0, files = 0x0, numFiles = 0, oldDir = 0x0, 
          criterium = ROT_WEEKLY, threshhold = 1048576, minsize = 0, 
          rotateCount = 4, rotateAge = 0, logStart = -1, pre = 0x0, 
          post = 0x0, first = 0x0, last = 0x0, logAddress = 0x0, 
          extension = 0x0, compress_prog = 0x60f6b0 "/bin/gzip", 
          uncompress_prog = 0x60f6d0 "/bin/gunzip", 
          compress_ext = 0x60f6f0 ".gz", dateformat = 0x0, flags = 518, 
          shred_cycles = 0, createMode = 4294967295, createUid = 4294967295, 
          createGid = 4294967295, compress_options_list = 0x0, 
          compress_options_count = 0, list = {tqe_next = 0x0, tqe_prev = 0x0}}
#9  0x000000000040637d in main (argc=<value optimized out>, 
    argv=<value optimized out>) at logrotate.c:1739
        force = 0
        stateFile = 0x40a92d "/var/lib/logrotate.status"
        rc = 0
        arg = <value optimized out>
        files = 0x60f320
        optCon = 0x60f000
        log = <value optimized out>
        state_file_ok = 1
        options = {{longName = 0x40a947 "debug", shortName = 100 'd', 
            argInfo = 0, arg = 0x0, val = 100, 
            descrip = 0x40b128 "Don't do anything, just test (implies -v)", 
            argDescrip = 0x0}, {longName = 0x40a94d "force", 
            shortName = 102 'f', argInfo = 0, arg = 0x7fffffffdfdc, val = 0, 
            descrip = 0x40a953 "Force file rotation", argDescrip = 0x0}, {
            longName = 0x40aa6f "mail", shortName = 109 'm', argInfo = 1, 
            arg = 0x60d5a8, val = 0, 
            descrip = 0x40b158 "Command to send mail (instead of `/bin/mail')", argDescrip = 0x40a967 "command"}, {longName = 0x40a96f "state", 
            shortName = 115 's', argInfo = 1, arg = 0x7fffffffdfc0, val = 0, 
            descrip = 0x40a975 "Path of state file", 
            argDescrip = 0x40a988 "statefile"}, {
            longName = 0x40a992 "verbose", shortName = 118 'v', argInfo = 0, 
            arg = 0x0, val = 118, 
            descrip = 0x40b188 "Display messages during rotation", 
            argDescrip = 0x0}, {longName = 0x0, shortName = 0 '\000', 
            argInfo = 4, arg = 0x60d5c0, val = 0, 
            descrip = 0x40a99a "Help options:", argDescrip = 0x0}, {
            longName = 0x0, shortName = 0 '\000', argInfo = 0, arg = 0x0, 
            val = 0, descrip = 0x0, argDescrip = 0x0}}

Comment 4 Jan Kaluža 2011-01-31 10:15:16 UTC
Can you please paste your /etc/logrotate.d/mgetty config file?

Comment 5 Vaclav "sHINOBI" Misek 2011-02-01 07:28:24 UTC
Created attachment 476327 [details]
/etc/logrotate.d/mgetty file

Comment 6 Jan Kaluža 2011-02-01 08:23:44 UTC
Thanks, I've fixed it in logrotate repository (https://fedorahosted.org/logrotate/changeset/307). I will backport it to rawhide soon.

Comment 7 Jan Kaluža 2011-02-02 10:28:47 UTC
I've fixed it in logrotate-3.7.9-6.fc15.