logrotate crashes with the error: free(): invalid pointer: 0x000000000f9cda10 on RHEL-5
Issue
- logrotate crashes regularly with a SIGABRT after update to logrotate 3.7.4-9.el5_5.1 as of RHBA-2010:0772-1
- The following error message is seen and logfiles are not rotated:
*** glibc detected *** /usr/sbin/logrotate: free(): invalid pointer: 0x000000000f9cda10 ***
======= Backtrace: =========
/lib64/libc.so.6[0x3a80c7230f]
/lib64/libc.so.6(cfree+0x4b)[0x3a80c7276b]
/usr/sbin/logrotate[0x405bbf]
/usr/sbin/logrotate[0x408db1]
/usr/sbin/logrotate[0x405113]
/lib64/libc.so.6(__libc_start_main+0xf4)[0x3a80c1d994]
/usr/sbin/logrotate[0x401eb9]
======= Memory map: ========
00400000-0040b000 r-xp 00000000 fd:07 1508910 /usr/sbin/logrotate
0060b000-0060c000 rw-p 0000b000 fd:07 1508910 /usr/sbin/logrotate
0f9cd000-0f9ee000 rw-p 0f9cd000 00:00 0 [heap]
3a80800000-3a8081c000 r-xp 00000000 fd:07 3677474 /lib64/ld-2.5.so
3a80a1b000-3a80a1c000 r--p 0001b000 fd:07 3677474 /lib64/ld-2.5.so
3a80a1c000-3a80a1d000 rw-p 0001c000 fd:07 3677474 /lib64/ld-2.5.so
3a80c00000-3a80d4e000 r-xp 00000000 fd:07 3677476 /lib64/libc-2.5.so
3a80d4e000-3a80f4d000 ---p 0014e000 fd:07 3677476 /lib64/libc-2.5.so
3a80f4d000-3a80f51000 r--p 0014d000 fd:07 3677476 /lib64/libc-2.5.so
3a80f51000-3a80f52000 rw-p 00151000 fd:07 3677476 /lib64/libc-2.5.so
3a80f52000-3a80f57000 rw-p 3a80f52000 00:00 0
3a81000000-3a81002000 r-xp 00000000 fd:07 3677480 /lib64/libdl-2.5.so
3a81002000-3a81202000 ---p 00002000 fd:07 3677480 /lib64/libdl-2.5.so
3a81202000-3a81203000 r--p 00002000 fd:07 3677480 /lib64/libdl-2.5.so
3a81203000-3a81204000 rw-p 00003000 fd:07 3677480 /lib64/libdl-2.5.so
3a81c00000-3a81c15000 r-xp 00000000 fd:07 3677676 /lib64/libselinux.so.1
3a81c15000-3a81e15000 ---p 00015000 fd:07 3677676 /lib64/libselinux.so.1
3a81e15000-3a81e17000 rw-p 00015000 fd:07 3677676 /lib64/libselinux.so.1
3a81e17000-3a81e18000 rw-p 3a81e17000 00:00 0
3a82000000-3a8203b000 r-xp 00000000 fd:07 3677674 /lib64/libsepol.so.1
3a8203b000-3a8223b000 ---p 0003b000 fd:07 3677674 /lib64/libsepol.so.1
3a8223b000-3a8223c000 rw-p 0003b000 fd:07 3677674 /lib64/libsepol.so.1
3a8223c000-3a82246000 rw-p 3a8223c000 00:00 0
3a82c00000-3a82c0d000 r-xp 00000000 fd:07 3677653 /lib64/libgcc_s-4.1.2-20080825.so.1
3a82c0d000-3a82e0d000 ---p 0000d000 fd:07 3677653 /lib64/libgcc_s-4.1.2-20080825.so.1
3a82e0d000-3a82e0e000 rw-p 0000d000 fd:07 3677653 /lib64/libgcc_s-4.1.2-20080825.so.1
3a83c00000-3a83c07000 r-xp 00000000 fd:07 1509141 /usr/lib64/libpopt.so.0.0.0
3a83c07000-3a83e07000 ---p 00007000 fd:07 1509141 /usr/lib64/libpopt.so.0.0.0
3a83e07000-3a83e08000 rw-p 00007000 fd:07 1509141 /usr/lib64/libpopt.so.0.0.0
2ac2f4267000-2ac2f4268000 rw-p 2ac2f4267000 00:00 0
2ac2f4270000-2ac2f4274000 rw-p 2ac2f4270000 00:00 0
2ac2f4274000-2ac2f84bc000 r--s 00000000 fd:02 8618011 /var/run/nscd/dbyU4pjq (deleted)
2ac2f84bc000-2ac2f86b5000 r--s 00000000 fd:02 8618016 /var/run/nscd/dbjVozT1 (deleted)
7fffc2928000-7fffc293d000 rw-p 7ffffffe9000 00:00 0 [stack]
ffffffffff600000-ffffffffffe00000 ---p 00000000 00:00 0 [vdso]
/etc/cron.daily/logrotate: line 3: 21474 Aborted /usr/sbin/logrotate /etc/logrotate.conf
Environment
- Red Hat Enterprise Linux 5
- logrotate-3.7.4-9.el5_5.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.