Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23620

Segmentation fault error when copying subtree

    Details

      Description

      Using the ezsubtreecopy.php script to copy a node with object relations to objects in the trash will cause the following error:

      Copying subtree:
      Segmentation fault (core dumped)
      


      Steps to reproduce:

      1. Make a copy of the folder content class, and call it "myFolder"
      2. Add an "object relations" attribute to your "myFolder" class
      3. Them, create 3 myFolder content objects: ObjectA, ObjectB and ObjectC
      4. Edit the ObjectA object, and add relation to ObjectB and ObjectC
      5. Edit the ObjectB object, and add relation to ObjectA and ObjectC
      6. Edit the ObjectC object, and add relation to ObjectA and ObjectB
      7. Now, send ObjectB and ObjectC to trash
      8. Use the ezsubtreecopy.php script to copy ObjectA to any location:

      ./bin/php/ezsubtreecopy.php --src-node-id=123 --dst-node-id=2 --all-versions --keep-creator --keep-time
      

      Note: The value of --src-node-id must be the node id of the ObjectA object, and value of --dst-node-id must be the destination node.

      The script will run during the maximum allowed execution time, and then the following error will be thrown:

      Segmentation fault (core dumped)
      

        Activity

        Ricardo Correia (Inactive) created issue -
        Ricardo Correia (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Paulo Lopes (Inactive) made changes -
        Status Confirmed [ 10037 ] InputQ [ 10001 ]
        André Rømcke made changes -
        Rank Ranked lower
        Gunnstein Lye logged work - 17/Nov/14 11:30 AM
        Gunnstein Lye made changes -
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ]
        Gunnstein Lye made changes -
        Status InputQ [ 10001 ] Development [ 3 ]
        Show
        Gunnstein Lye added a comment - - edited PR: https://github.com/ezsystems/ezpublish-legacy/pull/1113 Merged in master: https://github.com/ezsystems/ezpublish-legacy/commit/09ca4a4f980a14ac4f07c7715df0d50dbcabef21
        Gunnstein Lye made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 5 hours [ 18000 ]
        Worklog Id 51789 [ 51789 ]
        Gunnstein Lye made changes -
        Status Development [ 3 ] Development review [ 10006 ]
        Gunnstein Lye logged work - 18/Nov/14 11:00 AM - edited
        • Time Spent:
          1 hour
           

          .

        Gunnstein Lye made changes -
        Status Development review [ 10006 ] Development Review done [ 10028 ]
        Gunnstein Lye made changes -
        Affects Version/s 5.4.0-rc1 [ 13883 ]
        Affects Version/s 5.2 [ 12582 ]
        Affects Version/s 5.3 [ 11282 ]
        Gunnstein Lye made changes -
        Fix Version/s 5.1 Maintenance [ 12301 ]
        Fix Version/s 5.2 Maintenance [ 12782 ]
        Fix Version/s 5.3.4 [ 13879 ]
        Fix Version/s 5.4.1 [ 13886 ]
        Gunnstein Lye logged work - 19/Nov/14 9:00 AM
        • Time Spent:
          15 minutes
           
          <No comment>
        Gunnstein Lye made changes -
        Time Spent 5 hours [ 18000 ] 6 hours [ 21600 ]
        Worklog Id 51796 [ 51796 ]
        Gunnstein Lye made changes -
        Worklog Id 51796 [ 51796 ]
        Gunnstein Lye made changes -
        Time Spent 6 hours [ 21600 ] 6 hours, 15 minutes [ 22500 ]
        Worklog Id 51800 [ 51800 ]
        Gunnstein Lye made changes -
        Status Development Review done [ 10028 ] Documentation done [ 10011 ]
        Pedro Resende (Inactive) made changes -
        Status Documentation done [ 10011 ] QA [ 10008 ]
        Assignee Gunnstein Lye [ gunnstein.lye@ez.no ] Pedro Resende [ pedro.resende@ez.no ]
        Hide
        Pedro Resende (Inactive) added a comment -

        Tested and approved by Q.A.

        Show
        Pedro Resende (Inactive) added a comment - Tested and approved by Q.A.
        Pedro Resende (Inactive) made changes -
        Assignee Pedro Resende [ pedro.resende@ez.no ]
        Status QA [ 10008 ] Closed [ 6 ]
        Resolution Fixed [ 1 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 65126 ] EZ* Development Workflow [ 85513 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 85513 ] EZEE Development Workflow [ 124352 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Confirmed Confirmed
        7m 13s 1 ricardo.correia@ez.no 11/Nov/14 1:01 PM
        Confirmed Confirmed InputQ InputQ
        5m 45s 1 Paulo Lopes (Inactive) 11/Nov/14 1:07 PM
        InputQ InputQ Development Development
        5d 22h 51m 1 Gunnstein Lye 17/Nov/14 11:58 AM
        Development Development Development Review Development Review
        4h 25m 1 Gunnstein Lye 17/Nov/14 4:24 PM
        Development Review Development Review Development Review done Development Review done
        20h 54m 1 Gunnstein Lye 18/Nov/14 1:18 PM
        Development Review done Development Review done Documentation Review done Documentation Review done
        20h 2m 1 Gunnstein Lye 19/Nov/14 9:21 AM
        Documentation Review done Documentation Review done QA QA
        1d 6m 1 pedro.resende@ez.no 20/Nov/14 9:28 AM
        QA QA Closed Closed
        5h 26m 1 pedro.resende@ez.no 20/Nov/14 2:54 PM

          People

          • Assignee:
            Unassigned
            Reporter:
            Ricardo Correia (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 6 hours, 15 minutes
              6h 15m