mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[PR #1092] [MERGED] fix coredump caused by fd_manager_lock locking #1806
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#1806
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/s3fs-fuse/s3fs-fuse/pull/1092
Author: @liuyongqing
Created: 7/13/2019
Status: ✅ Merged
Merged: 7/14/2019
Merged by: @ggtakec
Base:
master← Head:master📝 Commits (1)
4e351c5fix coredump caused by fd_manager_lock locking📊 Changes
1 file changed (+44 additions, -45 deletions)
View changed files
📝
src/fdcache.cpp(+44 -45)📄 Description
issue link
https://github.com/s3fs-fuse/s3fs-fuse/issues/1091
Details
FdManager::Open function should hold FdManager::fd_manager_lock until the function execute finished.
In the current master version of s3fs,FdManager::Open hold FdManager::fd_manager_lock in a pair of bracket, and call FdEntity::Open without FdManager::fd_manager_lock lock, this will cause coredump in multithreading, details are as follows:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.