The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

/etc/cron.daily/logrotate: line 4: 12425 Segmentation fault

Discussion in 'General Discussion' started by upsforum, Nov 30, 2013.

  1. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    I receive this message every day , I tried with strace and this is result:

    Code:
    root@vps2 [~]# strace /etc/cron.daily/logrotate
    execve("/etc/cron.daily/logrotate", ["/etc/cron.daily/logrotate"], [/* 27 vars */]) = 0
    brk(0)                                  = 0x19676000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba146e000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba146f000
    access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
    open("/etc/ld.so.cache", O_RDONLY)      = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=59671, ...}) = 0
    mmap(NULL, 59671, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b7ba1470000
    close(3)                                = 0
    open("/lib64/libtermcap.so.2", O_RDONLY) = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\17\240\7:\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=15584, ...}) = 0
    mmap(0x3a07a00000, 2108688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a07a00000
    mprotect(0x3a07a03000, 2093056, PROT_NONE) = 0
    mmap(0x3a07c02000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3a07c02000
    close(3)                                = 0
    open("/lib64/libdl.so.2", O_RDONLY)     = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20\16`\7:\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=23360, ...}) = 0
    mmap(0x3a07600000, 2109696, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a07600000
    mprotect(0x3a07602000, 2097152, PROT_NONE) = 0
    mmap(0x3a07802000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x3a07802000
    close(3)                                = 0
    open("/lib64/libc.so.6", O_RDONLY)      = 3
    read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\332!\7:\0\0\0"..., 832) = 832
    fstat(3, {st_mode=S_IFREG|0755, st_size=1726472, ...}) = 0
    mmap(0x3a07200000, 3506520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x3a07200000
    mprotect(0x3a0734f000, 2097152, PROT_NONE) = 0
    mmap(0x3a0754f000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14f000) = 0x3a0754f000
    mmap(0x3a07554000, 16728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x3a07554000
    close(3)                                = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba147f000
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba1480000
    arch_prctl(ARCH_SET_FS, 0x2b7ba147ff50) = 0
    mprotect(0x3a07802000, 4096, PROT_READ) = 0
    mprotect(0x3a0754f000, 16384, PROT_READ) = 0
    mprotect(0x3a0701c000, 4096, PROT_READ) = 0
    munmap(0x2b7ba1470000, 59671)           = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    open("/dev/tty", O_RDWR|O_NONBLOCK)     = 3
    close(3)                                = 0
    brk(0)                                  = 0x19676000
    brk(0x19697000)                         = 0x19697000
    open("/usr/lib/locale/locale-archive", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=56442544, ...}) = 0
    mmap(NULL, 56442544, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2b7ba1481000
    close(3)                                = 0
    getuid()                                = 0
    getgid()                                = 0
    geteuid()                               = 0
    getegid()                               = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    open("/proc/meminfo", O_RDONLY)         = 3
    fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba4a55000
    read(3, "MemTotal:      2058808 kB\nMemFre"..., 1024) = 777
    close(3)                                = 0
    munmap(0x2b7ba4a55000, 4096)            = 0
    rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGCHLD, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], 0}, 8) = 0
    rt_sigaction(SIGQUIT, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    rt_sigaction(SIGQUIT, {0x1, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    uname({sys="Linux", node="vps2.blooweb.net", ...}) = 0
    stat("/root", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
    stat(".", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0
    getpid()                                = 21644
    open("/usr/lib64/gconv/gconv-modules.cache", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=25464, ...}) = 0
    mmap(NULL, 25464, PROT_READ, MAP_SHARED, 3, 0) = 0x2b7ba4a55000
    close(3)                                = 0
    getppid()                               = 21643
    getpgrp()                               = 21643
    rt_sigaction(SIGCHLD, {0x436360, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    open("/etc/cron.daily/logrotate", O_RDONLY) = 3
    ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0x7fffab83f730) = -1 ENOTTY (Inappropriate ioctl for device)
    lseek(3, 0, SEEK_CUR)                   = 0
    read(3, "#!/bin/sh\nexport TMPDIR=/var/spo"..., 80) = 80
    lseek(3, 0, SEEK_SET)                   = 0
    getrlimit(RLIMIT_NOFILE, {rlim_cur=4*1024, rlim_max=4*1024}) = 0
    dup2(3, 255)                            = 255
    close(3)                                = 0
    fcntl(255, F_SETFD, FD_CLOEXEC)         = 0
    fcntl(255, F_GETFL)                     = 0x8000 (flags O_RDONLY|O_LARGEFILE)
    fstat(255, {st_mode=S_IFREG|0755, st_size=219, ...}) = 0
    lseek(255, 0, SEEK_CUR)                 = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    read(255, "#!/bin/sh\nexport TMPDIR=/var/spo"..., 219) = 219
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
    lseek(255, -129, SEEK_CUR)              = 90
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b7ba147ffe0) = 21645
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigaction(SIGINT, {0x436f50, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0, NULL) = 21645
    fstat(2, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba4a5c000
    open("/usr/share/locale/locale.alias", O_RDONLY) = 3
    fstat(3, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
    mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b7ba4a5d000
    read(3, "# Locale name alias data base.\n#"..., 4096) = 2528
    read(3, "", 4096)                       = 0
    close(3)                                = 0
    munmap(0x2b7ba4a5d000, 4096)            = 0
    open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
    write(2, "/etc/cron.daily/logrotate: line "..., 119/etc/cron.daily/logrotate: line 4: 21645 Segmentation fault      (core dumped) /usr/sbin/logro                                                                                            tate /etc/logrotate.conf
    ) = 119
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    --- SIGCHLD (Child exited) @ 0 (0) ---
    wait4(-1, 0x7fffab83f224, WNOHANG, NULL) = -1 ECHILD (No child processes)
    rt_sigreturn(0xffffffffffffffff)        = 0
    rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {0x436f50, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    read(255, "EXITVALUE=$?\nif [ $EXITVALUE != "..., 219) = 129
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], 8) = 0
    lseek(255, -7, SEEK_CUR)                = 212
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2b7ba147ffe0) = 21647
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
    rt_sigaction(SIGINT, {0x436f50, [], SA_RESTORER, 0x3a072302d0}, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 21647
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    --- SIGCHLD (Child exited) @ 0 (0) ---
    wait4(-1, 0x7fffab83f174, WNOHANG, NULL) = -1 ECHILD (No child processes)
    rt_sigreturn(0xffffffffffffffff)        = 0
    rt_sigaction(SIGINT, {SIG_DFL, [], SA_RESTORER, 0x3a072302d0}, {0x436f50, [], SA_RESTORER, 0x3a072302d0}, 8) = 0
    rt_sigprocmask(SIG_BLOCK, NULL, [], 8)  = 0
    read(255, "exit 0\n", 219)              = 7
    rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
    exit_group(0)
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    I reinstalled but get same error:
     
  4. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    /etc/cron.daily/logrotate:

    /etc/cron.daily/logrotate: line 3: 24185 Segmentation fault /usr/sbin/logrotate /etc/logrotate.conf
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket so we can take a closer look and rule out any cPanel-related issues?

    Submit A Ticket

    You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  6. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    ticket opened: 4416395
     
  7. upsforum

    upsforum Well-Known Member

    Joined:
    Jul 27, 2005
    Messages:
    446
    Likes Received:
    0
    Trophy Points:
    16
    I solved with ticket:

    There are a bunch of what appear to be core dump files located in /etc/logrotate.d :

    [15:38:47 vps2 root@4416395 /etc/logrotate.d]cPs# ls
    ./ core.1477 core.15465 core.15840 core.16370 core.1719 core.17931 iscsiuiolog mgetty ppp syslog
    ../ core.14961 core.1560 core.16077 core.16607 core.17518 core.21645 lfd mysql psacct wpa_supplicant
    0 core.15075 core.15652 core.16336 core.17037 core.17844 exim maldet.inotify named rpm yum

    any files core.* return this errore, removed and now work fine
     
Loading...

Share This Page