AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  Logrotate is crashing with SIGSEV

    Posted Tue June 24, 2008 08:23 AM

    Originally posted by: SystemAdmin


    Hello

    I have old logrotate compiled by UCLA AIX PDSLIB (closed already). This is the only compiled logrotate I was able to find. It was compiled for 5.1 and is crashing on my 5.2 and 5.3 with SIGSEV :

    $ logrotate -d -v -s /tmp/logrotate.tst ./m
    reading config file ./m
    reading config info for /ah*/lg/*.log
    reading config info for /ah*/lg/*.lg
    Handling 2 logs
    rotating pattern: /ah*/lg/*.log after 1 days (10 rotations)
    empty log files are not rotated old logs are removed
    rotating file /ahtest/lg/test.log
    log does not need rotating
    Segmentation fault (core dumped)

    Truss :

    statx("/ahtest/lg/test.log", 0x2FF227E8, 76, 0) = 0
    log does not need rotating
    kwrite(2, " l o g d o e s n o t".., 27) = 27
    kfcntl(2, F_GETFL, 0x2FF22FFC) = 67110914
    Received signal #11, SIGSEGV default
    And it also does not pick up all logs matching patter as described in conf file (maybe because it was SIGSEV'ed already) :

    /ah*/lg/*.log
    /ah*/lg/*.lg
    Is there a workaround for the problem ? I also would appreciate if AIX would provide compiled logrotate in "AIX Toolbox for Linux Applications" - why logrotate is not yet there ?...

    Maybe there are alternatives for AIX with all same abilities as original logrotate ?

    Thank you for clarification.

    With best regards
    Martynas
    #AIX-Forum


  • 2.  Re: Logrotate is crashing with SIGSEV

    Posted Wed June 25, 2008 02:28 PM

    Originally posted by: SystemAdmin


    Doing a quick google search it looks like you are not the first person to run into this problem:
    http://unix.ittoolbox.com/groups/technical-functional/ibm-aix-l/logrotate-for-aix-53l-1720384?cv=expanded#

    syslogd has the capability to rotate logs: http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.files/doc/aixfiles/syslog.conf.htm
    However, I don't know if that satisfies your needs.

    This thread has a script for rotating logs that someone ported to AIX: http://unix.derkeiler.com/Newsgroups/comp.unix.aix/2004-08/0646.html

    I hope this helps.....
    #AIX-Forum


  • 3.  Re: Logrotate is crashing with SIGSEV

    Posted Wed June 25, 2008 05:44 PM

    Originally posted by: steevojb


    Hi,

    Is the source code not available for you to compile ? This would be the better option

    IBM do not tend to provide updated apps to via the linux toolbox

    HTH

    Steve
    #AIX-Forum


  • 4.  Re: Logrotate is crashing with SIGSEV

    Posted Wed June 25, 2008 06:00 PM

    Originally posted by: SystemAdmin


    Looks like you might be able to get the code for version 3.5.9 of the package from here:
    http://www-aix-old.gsi.de/~bio/DOCS/AIX/aixpdslib.seas.ucla.edu/packages/logrotate.html

    That site also (reportedly) lints to binaries for AIX 4.1, 4.2, and 5.1 on that site.
    #AIX-Forum


  • 5.  Re: Logrotate is crashing with SIGSEV

    Posted Tue July 01, 2008 03:25 AM

    Originally posted by: SystemAdmin


    Hello

    Thanks for advises. I downloaded sources and compiled. No SIGSEV any longer.

    With best regards
    Martynas
    #AIX-Forum