[GH-ISSUE #1091] s3fs core due to fd_manager_lock #589

Closed
opened 2026-03-04 01:47:00 +03:00 by kerem · 2 comments
Owner

Originally created by @liuyongqing on GitHub (Jul 13, 2019).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1091

Version of s3fs being used (s3fs --version)

s3fs 1.84, master branch source code compile

Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)

fuse 2.9.4

Kernel information (uname -r)

Linux 7e812c9e54b6 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

GNU/Linux Distribution, if applicable (cat /etc/os-release)

ubuntu 16.04

Details about issue

the coredump call backtrace is:
image

the crash was triggered by:

  1. thread A call FdManager::Open and create a FdEntity
  2. thread B call FdManager::Open and get thread A created FdEntity and trying to call ent->Open
  3. thread A call FdManager::Close and deleted the FdEntity
  4. thread B continue ent->Open execute and then crashed due to "double free or corruption (out)"
Originally created by @liuyongqing on GitHub (Jul 13, 2019). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1091 #### Version of s3fs being used (s3fs --version) s3fs 1.84, master branch source code compile #### Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse) fuse 2.9.4 #### Kernel information (uname -r) Linux 7e812c9e54b6 4.4.0-130-generic #156-Ubuntu SMP Thu Jun 14 08:53:28 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux #### GNU/Linux Distribution, if applicable (cat /etc/os-release) ubuntu 16.04 ### Details about issue the coredump call backtrace is: ![image](https://user-images.githubusercontent.com/5205797/61167134-52759780-a56c-11e9-9c46-74060f341059.png) the crash was triggered by: 1. thread A call FdManager::Open and create a FdEntity 2. thread B call FdManager::Open and get thread A created FdEntity and trying to call ent->Open 3. thread A call FdManager::Close and deleted the FdEntity 4. thread B continue ent->Open execute and then crashed due to "double free or corruption (out)"
kerem closed this issue 2026-03-04 01:47:01 +03:00
Author
Owner

@liuyongqing commented on GitHub (Jul 13, 2019):

@ggtakec

<!-- gh-comment-id:511090282 --> @liuyongqing commented on GitHub (Jul 13, 2019): @ggtakec
Author
Owner

@ggtakec commented on GitHub (Jul 14, 2019):

@liuyongqing Thank you for the report. Earlier, your PR was merged.
Please let us know if you notice any problems in the future.

<!-- gh-comment-id:511231139 --> @ggtakec commented on GitHub (Jul 14, 2019): @liuyongqing Thank you for the report. Earlier, your PR was merged. Please let us know if you notice any problems in the future.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/s3fs-fuse#589
No description provided.