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

Log exception messages on .NET 6+ when dynamic library loading fails #204

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

lyonsil
Copy link
Contributor

@lyonsil lyonsil commented Aug 19, 2024

On macOS the only way to get detailed error information about library loading is through the exception message. According to the man page for dlopen, the way to get detailed error information is through calling dlerror. We can't do that directly in .NET on macOS because the libdl doesn't exist anymore. So .NET has to do it for us under the covers and pass the results through the exception message. We've been throwing that away.

This isn't an urgent fix by any means, but it is something we should include in our logging.

Copy link

github-actions bot commented Aug 19, 2024

Test Results

       5 files  ±0     403 suites  ±0   6s ⏱️ ±0s
   431 tests ±0     427 ✔️ ±0    4 💤 ±0  0 ±0 
2 193 runs  ±0  2 095 ✔️ ±0  98 💤 ±0  0 ±0 

Results for commit 18fdf35. ± Comparison against base commit b0f288d.

♻️ This comment has been updated with latest results.

@lyonsil lyonsil merged commit 34b3bf6 into master Aug 29, 2024
7 checks passed
@lyonsil lyonsil deleted the log-exception-message branch August 29, 2024 14:06
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.

3 participants