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

object/gluster: use OpenDir for directories, avoid segmentation fault #5345

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

CodingPoeta
Copy link
Contributor

close #5211 #4043

This problem with libgfapi is caused by this PR gluster/glusterfs#3755.

glfd->entries should be initiated at first like in pub_glfs_opendir.
In pub_glfs_open, it's not initiated and returned without error, which leads to segmentation when calling readdir.

@davies davies merged commit a33d9bb into main Dec 5, 2024
42 checks passed
@davies davies deleted the fix-gluster branch December 5, 2024 05:11
@jiefenghuang jiefenghuang changed the title fix(obj-gluster): use OpenDir for directories, avoid segmentation fault object/gluster: use OpenDir for directories, avoid segmentation fault Jan 20, 2025
jiefenghuang pushed a commit that referenced this pull request Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Juicefs on GlusterFS 10.3 results in SIGSEGV and I/O corruption
2 participants