Build: #1 was successful Rebuilt by Ville Suoranta

Stages & jobs

  1. Default Stage

  2. Test

Build result summary

Details

Completed
Queue duration
< 1 second
Duration
49 minutes
Labels
None
Revision
3000ee0fe103736833f139a6c7dbdf3eca4abb82
Total tests
696
Number of retries
1

Tests

Code commits

Author Commit Message Commit date
Rui Xue <rx.astro@gmail.com> Rui Xue <rx.astro@gmail.com> 3000ee0fe103736833f139a6c7dbdf3eca4abb82 CAS-14622: Fix ncores-dependent tclean segmentation fault in `BriggsCubeWeightor`
The SynthesisImager uses `BriggsCubeWeightor` to compute weights for the image cube. During this calculation, `BriggsCubeWeightor::cube2Matrix` extracts raw storage pointers `pcube` and `pflags` from `casacore::Array::getStorage(deleteIt)`.

Previously, the code incremented these exact pointers (`*pflags = *pcube++`) during array traversal. At the end of the function, the incremented pointers were passed directly to `freeStorage()` and `putStorage()`.

When array memory isn't contiguous (which occurs when data is sliced across MPI ranks), `getStorage()` allocates a temporary buffer and sets `deleteIt = true`. Passing the shifted pointer into `freeStorage()` invokes `delete[]` on an invalid memory address, causing heap corruption and a Segmentation fault randomly depending on the data slicing.

This commit resolves the issue by securely caching the original pointers returned from `getStorage` into distinct variables. The traversal loops now use separate copies of these pointers, enabling the original allocation addresses to be correctly evaluated and freed by `freeStorage()` and `putStorage()`.

Jira issues

IssueDescriptionStatus
Unknown Issue TypeCAS-14622Could not obtain issue details from Jira

Shared artifacts

Artifact File size
ManyLinux228 Casatestutils 144 KB
ManyLinux228 Python 3.12 Tool wheel 75 MB

Error log

    Error occurred while running Task 'Pull manylinux228 casalith image(4)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli.

    (27 Mar 2026, 12:06:27 AM, Agents: cbt-el7-7.cv.nrao.edu (2))