Skip to content

Prevent SEGFAULT when stub-library is being accessed#89

Merged
tomsmeding merged 2 commits into
tmcdonell:masterfrom
michael-swan:patch-1
Jun 20, 2026
Merged

Prevent SEGFAULT when stub-library is being accessed#89
tomsmeding merged 2 commits into
tmcdonell:masterfrom
michael-swan:patch-1

Conversation

@michael-swan

@michael-swan michael-swan commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Sometimes the libcuda.so living in the cudatoolkit's lib/stubs/ directory will get intentionally or unintentionally linked into a program in place of the real user-space driver. If this occurs, any calls to this Haskell library will cause a SEGFAULT on cuGetErrorString, which wrongly gives the impression that this library is simply broken and doesn't instruct users where to actually look to fix their issue.

@tomsmeding tomsmeding merged commit 3bd40ff into tmcdonell:master Jun 20, 2026
14 of 15 checks passed
@tomsmeding

Copy link
Copy Markdown
Collaborator

Thank you! Did not test in detail but the change seems sound.

Do you think this should be a point release, or can we wait until more patches are in?

@michael-swan

Copy link
Copy Markdown
Contributor Author

No worries on an urgent release. My use-case involves building with nix so it's easy to pull in an upstream change at an exact commit.

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.

2 participants