Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-22486

afwTable will seg-fault if you add a new record to a table with schema=None

    Details

    • Type: Bug
    • Status: To Do
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: afw
    • Labels:
      None
    • Templates:
    • Team:
      Data Release Production

      Description

      The following code will cause a segfault on w_2019_48 and earlier:

      import lsst.afw.table as afwTable
      cat = afwTable.SourceCatalog(None)
      rec = cat.addNew()
      

      For whatever reason, if you give schema=None to any catalog constructor then it does not check that the schema is valid / contains the minimal fields (which raises an exception as expected).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              erykoff Eli Rykoff
              Watchers:
              Dan Taranu, Eli Rykoff, Jim Bosch
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel