Skip to content

Handle relative exepath on OpenBSD after the sysctl#130478

Merged
jkotas merged 8 commits into
dotnet:mainfrom
am11:patch-55
Jul 14, 2026
Merged

Handle relative exepath on OpenBSD after the sysctl#130478
jkotas merged 8 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!

@jkotas

jkotas commented Jul 14, 2026

Copy link
Copy Markdown
Member

/ba-g known issue that was just fixed in main

Comment thread src/native/minipal/getexepath.h Outdated
@jkotas
jkotas enabled auto-merge (squash) July 14, 2026 15:10
@am11

am11 commented Jul 14, 2026

Copy link
Copy Markdown
Member Author

Wasm failures are unrelated to this change.

@jkotas

jkotas commented Jul 14, 2026

Copy link
Copy Markdown
Member

/ba-g Unrelated wasm failures

@jkotas
jkotas merged commit e60457f into dotnet:main Jul 14, 2026
172 of 176 checks passed
@am11
am11 deleted the patch-55 branch July 14, 2026 23:18
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 15, 2026
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.

4 participants