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

edit_xml insert_tree hanging forever

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.5
    • Component/s: Promise type: xml
    • Labels:
      None
    • Platform:
      Linux

      Description

      A very simple edit_xml bundle is /sometimes/ hanging, and Ctrl-C is giving the following backtrace:
      <pre>
      (gdb) bt
      #0 0x00007ffff5e9977a in ?? () from /lib/x86_64-linux-gnu/libc.so.6
      #1 0x000000000042a39b in XmlNodesCompareNodes (pp=<optimized out>, a=..., node2=<optimized out>, node1=<optimized out>) at files_editxml.c:1982
      #2 XmlNodesCompare (node1=0x9cdda0, node2=0x9cdda0, a=..., pp=0x961e40) at files_editxml.c:1879
      #3 0x000000000042a493 in XmlVerifyNodeInNodeExact (node1=0x9cdda0, node2=<optimized out>, a=..., pp=0x961e40) at files_editxml.c:2334
      #4 0x000000000042a3a9 in XmlNodesCompareNodes (pp=<optimized out>, a=..., node2=<optimized out>, node1=<optimized out>) at files_editxml.c:1982
      #5 XmlNodesCompare (node1=0x9cdc60, node2=0x9cdc60, a=..., pp=0x961e40) at files_editxml.c:1879
      #6 0x000000000042a493 in XmlVerifyNodeInNodeExact (node1=0x9cdc60, node2=<optimized out>, a=..., pp=0x961e40) at files_editxml.c:2334
      #7 0x000000000042a6a7 in XmlNodesSubset (pp=<optimized out>, a=..., node2=<optimized out>, node1=<optimized out>) at files_editxml.c:2184
      #8 XmlVerifyNodeInNodeSubset (node1=0x9cdb20, node2=<optimized out>, a=..., pp=0x961e40) at files_editxml.c:2364
      #9 0x000000000042d373 in VerifyTreeInsertions (edcontext=<optimized out>, pp=<optimized out>, a=..., ctx=<optimized out>) at files_editxml.c:1247
      #10 KeepEditXmlPromise (ctx=0x55f740, pp=0x961e40, param=0x967950) at files_editxml.c:242
      #11 0x00007ffff7c391bf in ExpandPromiseAndDo (param=<optimized out>, ActOnPromise=<optimized out>, containers=0x0, lists=<optimized out>, pp=<optimized out>, ctx=<optimized out>)
      at expand.c:207
      #12 ExpandPromise (ctx=0x55f740, pp=<optimized out>, ActOnPromise=0x42c670 <KeepEditXmlPromise>, param=0x967950) at expand.c:161
      #13 0x000000000042736e in ScheduleEditXmlOperations (ctx=0x55f740, bp=0x893130, a=..., parentp=<optimized out>, edcontext=0x967950) at files_editxml.c:182
      #14 0x00000000004100d2 in ScheduleEditOperation (ctx=0x55f740, filename=<optimized out>, a=..., pp=0x83d270) at verify_files.c:670
      #15 0x00000000004110b3 in VerifyFilePromise (ctx=0x55f740, path=0x957350 "/var/www/cfengineJobs/bootstrap-packages-community-3.6.x.xml", pp=0x83d270) at verify_files.c:397
      #16 0x000000000043c899 in LocateFilePromiserGroup (ctx=0x55f740, wildpath=0x957350 "/var/www/cfengineJobs/bootstrap-packages-community-3.6.x.xml", pp=0x83d270,
      fnptr=0x410610 <VerifyFilePromise>) at promiser_regex_resolver.c:61
      #17 0x0000000000411717 in FindFilePromiserObjects (pp=<optimized out>, ctx=<optimized out>) at verify_files.c:722
      #18 FindAndVerifyFilesPromises (ctx=0x55f740, pp=0x83d270) at verify_files.c:702
      #19 0x000000000040cf77 in ParallelFindAndVerifyFilesPromises (pp=<optimized out>, ctx=<optimized out>) at cf-agent.c:1673
      #20 KeepAgentPromise (ctx=0x55f740, pp=0x83d270, param=<optimized out>) at cf-agent.c:1457
      #21 0x00007ffff7c391bf in ExpandPromiseAndDo (param=<optimized out>, ActOnPromise=<optimized out>, containers=0x0, lists=<optimized out>, pp=<optimized out>, ctx=<optimized out>)
      at expand.c:207
      #22 ExpandPromise (ctx=0x55f740, pp=<optimized out>, ActOnPromise=0x40cbf0 <KeepAgentPromise>, param=0x0) at expand.c:161
      #23 0x000000000040ca0f in ScheduleAgentOperations (ctx=0x55f740, bp=0x8784a0) at cf-agent.c:1254
      #24 0x000000000041c608 in VerifyMethod (ctx=0x55f740, call=..., a=..., pp=0x8effa0) at verify_methods.c:128
      #25 0x000000000041cb0f in VerifyMethodsPromise (ctx=0x55f740, pp=0x8effa0) at verify_methods.c:67
      #26 0x000000000040cfa4 in KeepAgentPromise (ctx=0x55f740, pp=0x8effa0, param=<optimized out>) at cf-agent.c:1472
      #27 0x00007ffff7c391bf in ExpandPromiseAndDo (param=<optimized out>, ActOnPromise=<optimized out>, containers=0x0, lists=<optimized out>, pp=<optimized out>, ctx=<optimized out>)
      at expand.c:207
      #28 ExpandPromise (ctx=0x55f740, pp=<optimized out>, ActOnPromise=0x40cbf0 <KeepAgentPromise>, param=0x0) at expand.c:161
      #29 0x000000000040ca0f in ScheduleAgentOperations (ctx=0x55f740, bp=0x806580) at cf-agent.c:1254
      #30 0x000000000041c608 in VerifyMethod (ctx=0x55f740, call=..., a=..., pp=0x93f270) at verify_methods.c:128
      #31 0x000000000041cb0f in VerifyMethodsPromise (ctx=0x55f740, pp=0x93f270) at verify_methods.c:67
      #32 0x000000000040cfa4 in KeepAgentPromise (ctx=0x55f740, pp=0x93f270, param=<optimized out>) at cf-agent.c:1472
      #33 0x00007ffff7c391bf in ExpandPromiseAndDo (param=<optimized out>, ActOnPromise=<optimized out>, containers=0x0, lists=<optimized out>, pp=<optimized out>, ctx=<optimized out>)
      at expand.c:207
      #34 ExpandPromise (ctx=0x55f740, pp=<optimized out>, ActOnPromise=0x40cbf0 <KeepAgentPromise>, param=0x0) at expand.c:161
      #35 0x000000000040ca0f in ScheduleAgentOperations (ctx=0x55f740, bp=0x805210) at cf-agent.c:1254
      #36 0x000000000040d283 in KeepPromiseBundles (ctx=0x55f740, policy=0x7abb10, config=0x55f500) at cf-agent.c:1169
      #37 0x000000000040d5a7 in KeepPromises (ctx=0x55f740, policy=0x7abb10, config=0x55f500) at cf-agent.c:680
      #38 0x000000000040ea37 in main (argc=<optimized out>, argv=0x7fffffffe698) at cf-agent.c:260
      </pre>

        Attachments

          Activity

            People

            • Assignee:
              a10038 jimis (Dimitrios Apostolou)
              Reporter:
              a10038 jimis (Dimitrios Apostolou)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day
                  1d
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified