Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1693

Segfault (Null pointer dereference) when select_end in delete_lines never matches

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.3
    • Labels:
      None

      Description

      First found in 3.6.1, but the information below is from SuSE "3.6.2~build5" rpms.

      1. cf-agent -Kf ./segfault.cf

      Program received signal SIGSEGV, Segmentation fault.
      0x0000000000423197 in DeletePromisedLinesMatching (result=0x7ffffffef08c, pp=0x6f1e20, a=...,
      end=0x0, begin=0x6fac70, start=0x6eb858, ctx=0x6606a0, edcontext=<optimized out>)
      at files_editline.c:983
      983 terminator = end->next;

      (gdb) p end
      $1 = (Item *) 0x0

        Attachments

        1. segfault.cf
          0.6 kB
        2. the_file
          0.1 kB

          Issue Links

            Activity

              People

              • Assignee:
                a10025 Volker Hilsheimer (Inactive)
                Reporter:
                aeszter Ansgar Esztermann
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: