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

Setting spatial order to 0 in psfex results in a Segmentation fault

    Details

      Description

      When using psfex to model the PSF, if the config parameter controlling the order of the spatial variation of the fit is set to 0, a Segmentation fault occurs. This should be avoided by either fixing the code or explicitly disallowing this setting, whichever is most appropriate.

      The there is a check that the value for this parameter is >=0 here:
      https://github.com/lsst/meas_extensions_psfex/blob/master/python/lsst/meas/extensions/psfex/psfexPsfDeterminer.py#L43-L48
      so if the latter option is opted for, the check could just be for >0.

      How to reproduce with obs_subaru HSC data:
      Include the following config setting

      config.charImage.measurePsf.psfDeterminer["psfex"].spatialOrder = 0
      

      e.g. with a file config.txt with the above line in it.
      Then run:

      processCcd.py /datasets/hsc/repo/ --rerun private/yourRepo --id visit=1228 ccd=49 -C config.txt
      

      Traceback looks like:

      Caught signal 11, backtrace follows:
      /software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/utils/16.0-15-ga29f190+1/lib/libutils.so(+0x13734) [0x7f93ab7b2734]
      /usr/lib64/libc.so.6(+0x362f0) [0x7f93b43732f0]
      /software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/meas_extensions_psfex/16.0-11-g9bb73b2+1/lib/libmeas_extensions_psfex.so(load_samples+0x88) [0x7f933bb6eeb8]
      /software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/psfex/16.0+18/lib/libpsfex.so(makeit_body+0x385) [0x7f933b89e6b5]
      /software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/meas_extensions_psfex/16.0-11-g9bb73b2+1/lib/libmeas_extensions_psfex.so(lsst::meas::extensions::psfex::makeit(std::vector<std::shared_ptr<lsst::meas::extensions::psfex::Field>, std::allocator<std::shared_ptr<lsst::meas::extensions::psfex::Field> > >&, std::vector<std::shared_ptr<lsst::meas::extensions::psfex::Set>, std::allocator<std::shared_ptr<lsst::meas::extensions::psfex::Set> > > const&)+0x18b) [0x7f933bb6f22b]
      /software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/meas_extensions_psfex/16.0-11-g9bb73b2+1/python/lsst/meas/extensions/psfex/field.so(+0x1e45ff) [0x7f933bf5f5ff]
      /software/lsstsw/stack_20181012/stack/miniconda3-4.5.4-fcd27eb/Linux64/meas_extensions_psfex/16.0-11-g9bb73b2+1/python/lsst/meas/extensions/psfex/field.so(+0x1de375) [0x7f933bf59375]
      python((null)+0x154) [0x55ee9c8469e4]
      python(_PyCFunction_FastCallDict+0x154) [0x55ee9c8469e4]
      ...
      /usr/lib64/libc.so.6((null)+0xf5) [0x7f93b435f445]
      /usr/lib64/libc.so.6(__libc_start_main+0xf5) [0x7f93b435f445]
      python(+0x1c847b) [0x55ee9c8ff47b]
      Segmentation fault
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              lauren Lauren MacArthur
              Watchers:
              Eli Rykoff, Jim Bosch, Lauren MacArthur, Robert Lupton
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel