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

Disabled stackoverflow tests with largeframe for RISCV64 #106383

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

SzpejnaDawid
Copy link
Contributor

@SzpejnaDawid SzpejnaDawid commented Aug 14, 2024

For bigger structures than the page size, the current way of calculating whether failureAddress is a part of the stack is not always proper. Because siginfo_t structure with failureAddress (si_addr field) comes from OS the problem must be related with SP or with the formula:

  (failureAddress - (sp - GetVirtualPageSize())) < 2 * GetVirtualPageSize()

which is used to check if SIGSEGV is a stack overflow.
IMO, this case is similar to ARM64 case.

cc @dotnet/samsung. Part of #84834.

For bigger structures than the page size, the current way of calculating
whether failureAddress is a part of the stack is not always proper.
Because siginfo_t structure with failureAddress (si_addr field) comes from OS
the problem must be related with SP or with the formula:
  (failureAddress - (sp - GetVirtualPageSize())) < 2 * GetVirtualPageSize()
which is used to check if SIGSEGV is a stack overflow.
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Aug 14, 2024
Copy link
Contributor

Tagging subscribers to this area: @mangod9
See info in area-owners.md if you want to be subscribed.

@clamp03 clamp03 added the arch-riscv Related to the RISC-V architecture label Aug 14, 2024
@clamp03
Copy link
Member

clamp03 commented Aug 20, 2024

Like #106540 (comment), please update the title.

Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@janvorli janvorli merged commit def2d14 into dotnet:main Aug 22, 2024
70 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-riscv Related to the RISC-V architecture area-VM-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants