Skip to content

Fix createdump 'stack smashing detected' error on arm64 - #108166

Merged
mikem8361 merged 1 commit into
dotnet:mainfrom
mikem8361:issue108023
Sep 24, 2024
Merged

Fix createdump 'stack smashing detected' error on arm64#108166
mikem8361 merged 1 commit into
dotnet:mainfrom
mikem8361:issue108023

Conversation

@mikem8361

Copy link
Copy Markdown
Contributor

The changes from PR #91865 were reverted by PR #95433.

This change restores the fix from PR #91865 by changing the size back to SpecialDiagInfoSize but uses the 4 parameter MemoryRegion constructor that doesn't assert the address/size is on a PAGE_SIZE alignment (PR #95433).

Issue: #108023

The changes from PR dotnet#91865 were reverted by PR dotnet#95433.
This change restores the fix from PR dotnet#91865 by changing the size back to SpecialDiagInfoSize
but uses the 4 parameter MemoryRegion constructor that doesn't assert the address/size is on
a PAGE_SIZE alignment (PR dotnet#95433).
Issue: dotnet#108023
@mikem8361mikem8361 self-assigned this Sep 23, 2024
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@mikem8361

Copy link
Copy Markdown
ContributorAuthor

@omajid, is there anyway you could validate this fixes your issue (#108023)?

@mikem8361
mikem8361 merged commit c461910 into dotnet:mainSep 24, 2024
@mikem8361
mikem8361 deleted the issue108023 branch September 24, 2024 04:03
@mikem8361

Copy link
Copy Markdown
ContributorAuthor

/backport to release/9.0-staging

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/9.0-staging: https://github.com/dotnet/runtime/actions/runs/11006765531

@github-actions

Copy link
Copy Markdown
Contributor

@mikem8361 an error occurred while backporting to release/9.0-staging, please check the run log for details!

Error: The specified backport target branch release/9.0-staging wasn't found in the repo.

@mikem8361

Copy link
Copy Markdown
ContributorAuthor

/backport to release/9.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/9.0: https://github.com/dotnet/runtime/actions/runs/11019172723

@omajid

Copy link
Copy Markdown
Member

I can confirm this PR makes things work for me again:

$ uname -m
aarch64
$ cat /etc/os-release NAME="Red Hat Enterprise Linux"
VERSION="8.10 (Ootpa)"
ID="rhel"
ID_LIKE="fedora"
VERSION_ID="8.10"
PLATFORM_ID="platform:el8"
PRETTY_NAME="Red Hat Enterprise Linux 8.10 (Ootpa)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:redhat:enterprise_linux:8::baseos"
HOME_URL="https://www.redhat.com/"
DOCUMENTATION_URL="https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8"
BUG_REPORT_URL="https://issues.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Red Hat Enterprise Linux 8"
REDHAT_BUGZILLA_PRODUCT_VERSION=8.10
REDHAT_SUPPORT_PRODUCT="Red Hat Enterprise Linux"
REDHAT_SUPPORT_PRODUCT_VERSION="8.10"
$ ~/dotnet-sdk/dotnet --info
.NET SDK:
Version: 9.0.100-rc.2.24474.1
Commit: 1f747cd885
Workload version: 9.0.100-manifests.934ebbcd
MSBuild version: 17.12.0-preview-24469-05+1f747cd88
Runtime Environment:
OS Name: rhel
OS Version: 8
OS Platform: Linux
RID: rhel.8.10-arm64
Base Path: /home/omajid/dotnet-sdk/sdk/9.0.100-rc.2.24474.1/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version: 9.0.0-rtm.24473.2
Architecture: arm64
Commit: static
.NET SDKs installed:
9.0.100-rc.2.24474.1 [/home/omajid/dotnet-sdk/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 9.0.0-rtm.24473.16 [/home/omajid/dotnet-sdk/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 9.0.0-rtm.24473.2 [/home/omajid/dotnet-sdk/shared/Microsoft.NETCore.App]
Other architectures found:
None
Environment variables:
Not set
global.json file:
Not found
Learn more:
https://aka.ms/dotnet/info
Download .NET:
https://aka.ms/dotnet/download
$ ~/dotnet-sdk/shared/Microsoft.NETCore.App/9.0.0-rtm.24473.2/createdump 357990
[createdump] Gathering state for process 357990 dotnet
[createdump] Writing minidump with heap to file /tmp/coredump.357990
[createdump] Written 339873792 bytes (5186 pages) to core file
[createdump] Target process is alive
[createdump] Dump successfully written in 360ms

sirntar pushed a commit to sirntar/runtime that referenced this pull request Sep 30, 2024
The changes from PR dotnet#91865 were reverted by PR dotnet#95433.
This change restores the fix from PR dotnet#91865 by changing the size back to SpecialDiagInfoSize
but uses the 4 parameter MemoryRegion constructor that doesn't assert the address/size is on
a PAGE_SIZE alignment (PR dotnet#95433).
Issue: dotnet#108023
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Oct 25, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@mikem8361@omajid@hoyosjs