Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • L lalsuite
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 114
    • Issues 114
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 41
    • Merge requests 41
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • lscsoft
  • lalsuite
  • Issues
  • #596
Closed
Open
Issue created Aug 26, 2022 by Duncan Macleod@duncanmmacleodOwner

ComputeTransferTest fails in lal-7.2.1 with segmentation fault

I am seeing a segmentation fault when building lal-7.2.1 in conda-forge:

/home/conda/feedstock_root/build_artifacts/lal-split_1661519406855/work/gnuscripts/test-driver: line 107: 27789 Segmentation fault      (core dumped) "$@" > $log_file 2>&1
FAIL: ComputeTransferTest

The test that is failing is here:

    LALComputeTransfer( &status, NULL );
    TESTSTATUSERR( &status, CALIBRATIONH_ENULL );

This causes a segmentation fault on this line:

  df = calrec->transfer->deltaF;

I believe this is because conda-forge compiles things using -DNDEBUG, which means that the assert statement here:

  ASSERT( calrec, stat, CALIBRATIONH_ENULL, CALIBRATIONH_MSGENULL );

is not in the compiled code, so there's nothing to protect against passing in calrec as NULL and attempting to use it as normal. This used to be protected by if ( ! lalNoDebug ) which was removed in 1f5b97fe (!1930 (merged)), perhaps that should have been replaced by #ifndef NDEBUG?

cc @karl-wette @jolien-creighton

Edited Aug 26, 2022 by Duncan Macleod
Assignee
Assign to
Time tracking