KBI 310176 Linux/Unix Rule Engine May Fail If Control File Is Corrupted


Version

Argent Extended Technology – All Versions

Date

14 January 2010

Summary

An Invalid Control file line in the UNIX/Linux Rule Engine Control File can cause one or more of the UNIX/Linux Rule Engine (ag_re_main, ag_re_upload, ag_re_runscript) processes to quit unexpectedly and produce a segmentation fault.

Technical Background

When this happens, errors may be logged to the UNIX/Linux Rule Engine log file (debug level 2):

08 JAN 2010 14:16:37.937 FEDORA6-X64TEST argent Invalid Control file line ‘

‘ in File ‘UNIX_RULE_ENGINE_FEDORA6-X64TEST.CTRL’

08 JAN 2010 14:16:37.939 FEDORA6-X64TEST argent Parse Control Line:

08 JAN 2010 14:16:37.940 FEDORA6-X64TEST argent Invalid Control file line ‘

‘ in File ‘UNIX_RULE_ENGINE_FEDORA6-X64TEST.CTRL’

08 JAN 2010 14:24:27.369 FEDORA6-X64TEST argent Process ‘ag_re_main’ died unexpectedly. Attempt to restart it

and to /var/log/messages

Jan 8 14:15:13 FEDORA6-X64TEST kernel: ag_re_main[23793]: segfault at 0000000000000000 rip 0000000000407a5e rsp 00007fff73c0f340 error 4

Jan 8 14:16:27 FEDORA6-X64TEST kernel: ag_re_main[23962]: segfault at 0000000000000000 rip 0000000000407a5e rsp 00007fff6789fa70 error 4

Resolution

  1. Instruct the UNIX/Linux Rule Engine to re-sync the Control File (as ‘root’ user):

    # /opt/Argent/UNIX/ag_re -sync

    The CTRL file will be regenerated, retrieved and reparsed by the UNIX/Linux Rule Engine.

  2. Set the registry entry AUTO_EXPORT_MOTHER_CONTROL_INFO to a non-zero value (i.e. 300), the UNIX/Linux Rule Engine will automatically be recreated (every 5 minutes, if 300 is used).
  3. Restarting the Argent Guardian Scheduling Engine also forces the UNIX/Linux Rule Engine Control File to be recreated.

See Also:

How Do I Install A Linux Rule Engine