Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid segfault when verilating NBAs inside fork-join #39

Closed
wants to merge 2 commits into from

Conversation

kiryk
Copy link

@kiryk kiryk commented Mar 17, 2023

The MR contains a testcase that makes Verilator segfault and a fix for that.

The segfault occurs, because V3Delay collects all sentree pointers from AstCAwaits. Some of these sentrees are nullptrs, so Verilator segaults when it tries to deep copy them in V3Delayed.cpp:460.

The solution is to skip the nullptrs.

@kiryk kiryk requested a review from kbieganski March 17, 2023 16:31
test_regress/t/t_timing_fork_nba.pl Show resolved Hide resolved
src/V3Delayed.cpp Outdated Show resolved Hide resolved
test_regress/t/t_timing_fork_nba.pl Outdated Show resolved Hide resolved
@kiryk kiryk force-pushed the kiryk/quick-fix-astcawait-null-sentree branch from c25bd60 to d45bc2b Compare March 20, 2023 13:28
@kiryk kiryk requested a review from kbieganski March 20, 2023 13:29
@kiryk kiryk closed this Jun 2, 2023
@kiryk kiryk deleted the kiryk/quick-fix-astcawait-null-sentree branch June 30, 2023 13:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants