Repository navigation
Conversation
The ceph_open_snapdiff function signature changed [1] on Ceph main gaining a new 'diff_mask' parameter, and struct ceph_snapdiff_info gained a new `mask` field. This causes a SIGSEGV in TestSnapDiff due to argument misalignment when calling via dlsym. Use #ifdef CEPH_SNAPDIFF_MODE to select the correct function pointer cast at compile time, passing diff_mask=0 for the new API. The Go calling convention remains unchanged. [1] ceph/ceph@9c958c66f5c4 Signed-off-by: Anoop C S <[email protected]>
This was referenced Aug 6, 2026
Collaborator
|
Did they change a public API in a backwards incompatible way? Shouldn't we report this as an issue to them? This will break other users of the C api too right? |
Collaborator
|
I found the ceph pr and replied there too: ceph/ceph#68054 (comment) |
anoopcs9
marked this pull request as draft
August 6, 2026 18:14
Collaborator
Author
|
This workaround will no longer be needed once ceph/ceph#70912 is merged; therefore, closing the issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The ceph_open_snapdiff function signature changed on Ceph main (ceph/ceph@9c958c66f5c4) gaining a new
diff_maskparameter, and struct ceph_snapdiff_info gained a newmaskfield. This causes a SIGSEGV inTestSnapDiffdue to argument misalignment when calling via dlsym.Use
#ifdef CEPH_SNAPDIFF_MODEto select the correct function pointer cast at compile time, passing diff_mask=0 for the new API. The Go calling convention remains unchanged.fixes #1309