[Bug]: erroneously creating an AstNode causes a segfault #25937
Labels
area: Python bindings
For things related to chapel-py, chpl-language-server, chplcheck, etc.
type: Bug
The following python code for
chapel-py
results in a sefaultThis is not semantically valid code, since you cannot create AstNodes from
chapel-py
. But it is allowed by the interpreter and results in a segfault. This is because the internal context object fora
is never initialized, but the interpreter does try to deinitialize it, causing a segfault.I hit this while writing a chplcheck rule, where I erroneously created an advanced rule as
@driver.advanced_rule(AstNode)
, which is not correct and resulted in an unexpected node being "created"The text was updated successfully, but these errors were encountered: