Skip to content

Handle relative exepath on OpenBSD after the sysctl#130478

Open
am11 wants to merge 5 commits into
dotnet:mainfrom
am11:patch-55
Open

Handle relative exepath on OpenBSD after the sysctl#130478
am11 wants to merge 5 commits into
dotnet:mainfrom
am11:patch-55

Conversation

@am11

@am11 am11 commented Jul 10, 2026

Copy link
Copy Markdown
Member

See #124911 (comment), ktrace/kdump shows realpath is failing because sysctl returned relative path dotnet. Look it up in PATH and try to resolve as a best effort. OpenBSD doesn't offer proper API for it like FreeBSD/Solaris and others. :/

@github-actions github-actions Bot added the area-PAL-coreclr only for closed issues label Jul 10, 2026
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Jul 10, 2026
@am11 am11 mentioned this pull request Jul 10, 2026
@am11 am11 added the os-openbsd OpenBSD OS, currently not officially supported label Jul 10, 2026
@am11 am11 requested review from janvorli and jkotas July 10, 2026 11:44
@am11

am11 commented Jul 11, 2026

Copy link
Copy Markdown
Member Author

cc @elinor-fung, it was spotted by the usage in dotnet host. Earlier, I was running tests and under debugger; in both cases the executors resolve absolute path to host before the execution so it didn't showed up. Now that we have end to end SDK working on openbsd-x64, when running dotnet new etc. ran into Failed to resolve full path of the current executable [].

@janvorli janvorli left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-PAL-coreclr only for closed issues community-contribution Indicates that the PR has been added by a community member os-openbsd OpenBSD OS, currently not officially supported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants