Skip to content

Conversation

@fabianschuiki
Copy link
Contributor

Fix an issue around class property handling where code would not properly catch failures in the getAncestorClassWithProperty() and some other functions, and would instead try to access the null result.

Also add a missing error message if a class property cannot be resolved.

This caused about half of the segfaults in the sv-tests suite 1.

Fix an issue around class property handling where code would not
properly catch failures in the `getAncestorClassWithProperty()` and some
other functions, and would instead try to access the null result.

Also add a missing error message if a class property cannot be resolved.

This caused about half of the segfaults in the sv-tests suite [1].

[1]: https://github.com/circt/circt-tests/blob/results/2025/2025-12-15-131140-main-82227de/sv-tests/segfaults.txt
@fabianschuiki fabianschuiki added bug Something isn't working ImportVerilog labels Dec 16, 2025
Copy link
Contributor

@Scheremo Scheremo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good to me!

@fabianschuiki fabianschuiki merged commit 220b5fb into main Dec 16, 2025
7 checks passed
@fabianschuiki fabianschuiki deleted the fschuiki/fix-class-property-segfault branch December 16, 2025 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ImportVerilog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants