Closed
Description
Environment
Debian GNU/Linux 10/11 x86_64
GNAT 12.1.2 (66b989b5)
Libadalang 22.0.0 (5f365aa4)
Bug description
After Libadalang.Rewriting.Apply
is done successfully, calls to Libadalang.Rewriting.Unit
are made to generate new source files.
However Storage_Error
is raised in Libadalang.Implementation.Inc_Ref
as it is called by Libadalang.Analysis.Wrap_Context
.
Changing Analysis_Context_Type.Ref_Count
type from Natural
to aliased GNATCOLL.Atomic.Atomic_Counter
, and updating Inc_Ref
and Dec_Ref
accordingly fixes the issue.
Note: This issue occurs randomly.
Metadata
Metadata
Assignees
Labels
No labels