[GH-ISSUE #759] Segmentation Fault #438

Closed
opened 2026-03-04 01:45:34 +03:00 by kerem · 3 comments
Owner

Originally created by @everskies on GitHub (May 12, 2018).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/759

Version of s3fs being used (s3fs --version)

1.83

Version of fuse being used (pkg-config --modversion fuse)

2.9.4

System information (uname -r)

4.4.0-112-generic

Distro (cat /etc/issue)

Ubuntu 16.04

s3fs command line used (if applicable)

s3fs storage /home/s3 -f -d -o passwd_file=~/.passwd-s3fs -o url=https://url/ -o use_path_request_style -o nonempty -o allow_other

s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs)

[WAN] s3fs.cpp:append_objects_from_xml_ex(2575): contents_xp->nodesetval is empty.
[WAN] s3fs.cpp:append_objects_from_xml_ex(2575): contents_xp->nodesetval is empty.
[INF] s3fs.cpp:s3fs_open(2064): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][flags=32768]
[INF]       cache.cpp:DelStat(565): delete stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv]
[INF]       curl.cpp:HeadRequest(2713): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv]
[INF]       curl.cpp:PreHeadRequest(2662): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][bpath=][save=][sseckeypos=-1]
[INF]       curl.cpp:prepare_url(4256): URL is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv
[INF]       curl.cpp:prepare_url(4288): URL changed is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv
[INF]       curl.cpp:insertV4Headers(2405): computing signature [HEAD] [/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [] []
[INF]       curl.cpp:url_to_host(101): url is https://url
[INF]       curl.cpp:RequestPerform(2056): HTTP response code 200
[INF]       cache.cpp:AddStat(356): add stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv]
[INF]       fdcache.cpp:SetMtime(1026): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5][time=1525220691]
[INF]       curl.cpp:GetObjectRequest(3048): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][start=0][size=16]
[INF]       curl.cpp:PreGetObjectRequest(2988): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][start=0][size=16]
[INF]       curl.cpp:prepare_url(4256): URL is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv
[INF]       curl.cpp:prepare_url(4288): URL changed is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv
[INF]       curl.cpp:insertV4Headers(2405): computing signature [GET] [/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [] []
[INF]       curl.cpp:url_to_host(101): url is https:/url
[INF]       curl.cpp:GetObjectRequest(3063): downloading... [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5]
[INF]       curl.cpp:RequestPerform(2056): HTTP response code 200
[INF]       cache.cpp:AddStat(356): add stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv]
[INF]       cache.cpp:DelStat(565): delete stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv]
[INF]       curl.cpp:RequestPerform(2056): HTTP response code 206
[INF] s3fs.cpp:s3fs_flush(2186): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5]
[INF]       fdcache.cpp:RowFlush(1441): [tpath=][path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5]
[INF] s3fs.cpp:s3fs_release(2239): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5]
[INF]       fdcache.cpp:GetFdEntity(2020): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5]
[INF] s3fs.cpp:s3fs_getattr(842): [path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A]
[INF] s3fs.cpp:s3fs_getattr(842): [path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv]
[INF] s3fs.cpp:s3fs_open(2064): [path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv][flags=32768]
[INF]       cache.cpp:DelStat(565): delete stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv]
[INF]       curl.cpp:HeadRequest(2713): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv]
[INF]       curl.cpp:PreHeadRequest(2662): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv][bpath=][save=][sseckeypos=-1]
[INF]       curl.cpp:prepare_url(4256): URL is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv
[INF]       curl.cpp:prepare_url(4288): URL changed is https:/url/storage/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv
[INF]       curl.cpp:insertV4Headers(2405): computing signature [HEAD] [/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv] [] []
[INF]       curl.cpp:url_to_host(101): url is https://url
Segmentation fault (core dumped)

dmesg:

[745436.378762] s3fs[9957]: segfault at 1999 ip 0000000000447232 sp 00007fa6abffe6a0 error 4 in s3fs[400000+83000]
[774190.721133] s3fs[1641]: segfault at 229 ip 0000000000447232 sp 00007f7ccadf56a0 error 4 in s3fs[400000+83000]

Details about issue

I'm getting random SegFaults while transfering (uploading) files using rsync encrypted by gocryptfs. this usually happens after a couple hours / days and I'm unsure why.

The S3 backend is a S3 compatible Ceph cluster.

Any ideas?

Originally created by @everskies on GitHub (May 12, 2018). Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/759 #### Version of s3fs being used (s3fs --version) 1.83 #### Version of fuse being used (pkg-config --modversion fuse) 2.9.4 #### System information (uname -r) 4.4.0-112-generic #### Distro (cat /etc/issue) Ubuntu 16.04 #### s3fs command line used (if applicable) `s3fs storage /home/s3 -f -d -o passwd_file=~/.passwd-s3fs -o url=https://url/ -o use_path_request_style -o nonempty -o allow_other` #### s3fs syslog messages (grep s3fs /var/log/syslog, or s3fs outputs) ``` [WAN] s3fs.cpp:append_objects_from_xml_ex(2575): contents_xp->nodesetval is empty. [WAN] s3fs.cpp:append_objects_from_xml_ex(2575): contents_xp->nodesetval is empty. [INF] s3fs.cpp:s3fs_open(2064): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][flags=32768] [INF] cache.cpp:DelStat(565): delete stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [INF] curl.cpp:HeadRequest(2713): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [INF] curl.cpp:PreHeadRequest(2662): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][bpath=][save=][sseckeypos=-1] [INF] curl.cpp:prepare_url(4256): URL is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv [INF] curl.cpp:prepare_url(4288): URL changed is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv [INF] curl.cpp:insertV4Headers(2405): computing signature [HEAD] [/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [] [] [INF] curl.cpp:url_to_host(101): url is https://url [INF] curl.cpp:RequestPerform(2056): HTTP response code 200 [INF] cache.cpp:AddStat(356): add stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [INF] fdcache.cpp:SetMtime(1026): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5][time=1525220691] [INF] curl.cpp:GetObjectRequest(3048): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][start=0][size=16] [INF] curl.cpp:PreGetObjectRequest(2988): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][start=0][size=16] [INF] curl.cpp:prepare_url(4256): URL is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv [INF] curl.cpp:prepare_url(4288): URL changed is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv [INF] curl.cpp:insertV4Headers(2405): computing signature [GET] [/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [] [] [INF] curl.cpp:url_to_host(101): url is https:/url [INF] curl.cpp:GetObjectRequest(3063): downloading... [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5] [INF] curl.cpp:RequestPerform(2056): HTTP response code 200 [INF] cache.cpp:AddStat(356): add stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [INF] cache.cpp:DelStat(565): delete stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv] [INF] curl.cpp:RequestPerform(2056): HTTP response code 206 [INF] s3fs.cpp:s3fs_flush(2186): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5] [INF] fdcache.cpp:RowFlush(1441): [tpath=][path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5] [INF] s3fs.cpp:s3fs_release(2239): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5] [INF] fdcache.cpp:GetFdEntity(2020): [path=/storage/00iwMuvTPYccaV0rYjdNXw/gocryptfs.diriv][fd=5] [INF] s3fs.cpp:s3fs_getattr(842): [path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A] [INF] s3fs.cpp:s3fs_getattr(842): [path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv] [INF] s3fs.cpp:s3fs_open(2064): [path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv][flags=32768] [INF] cache.cpp:DelStat(565): delete stat cache entry[path=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv] [INF] curl.cpp:HeadRequest(2713): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv] [INF] curl.cpp:PreHeadRequest(2662): [tpath=/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv][bpath=][save=][sseckeypos=-1] [INF] curl.cpp:prepare_url(4256): URL is https://url/storage/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv [INF] curl.cpp:prepare_url(4288): URL changed is https:/url/storage/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv [INF] curl.cpp:insertV4Headers(2405): computing signature [HEAD] [/storage/00iwMuvTPYccaV0rYjdNXw/hPDcyjrioQSFAMa4b7oX0A/gocryptfs.diriv] [] [] [INF] curl.cpp:url_to_host(101): url is https://url Segmentation fault (core dumped) ``` dmesg: ``` [745436.378762] s3fs[9957]: segfault at 1999 ip 0000000000447232 sp 00007fa6abffe6a0 error 4 in s3fs[400000+83000] [774190.721133] s3fs[1641]: segfault at 229 ip 0000000000447232 sp 00007f7ccadf56a0 error 4 in s3fs[400000+83000] ``` ### Details about issue I'm getting random SegFaults while transfering (uploading) files using rsync encrypted by gocryptfs. this usually happens after a couple hours / days and I'm unsure why. The S3 backend is a S3 compatible Ceph cluster. Any ideas?
kerem closed this issue 2026-03-04 01:45:34 +03:00
Author
Owner

@gaul commented on GitHub (Jan 24, 2019):

Can you try running s3fs under Valgrind which may reveal the source of these symptoms?

<!-- gh-comment-id:457033372 --> @gaul commented on GitHub (Jan 24, 2019): Can you try running s3fs under Valgrind which may reveal the source of these symptoms?
Author
Owner

@gaul commented on GitHub (Mar 15, 2019):

Could you test again with 1.85 which includes f53503438c?

<!-- gh-comment-id:473197193 --> @gaul commented on GitHub (Mar 15, 2019): Could you test again with 1.85 which includes f53503438c28910a36fe2b155d6623c9af41d951?
Author
Owner

@gaul commented on GitHub (Apr 9, 2019):

Closing due to inactivity. Please reopen if symptoms persist.

<!-- gh-comment-id:481184016 --> @gaul commented on GitHub (Apr 9, 2019): Closing due to inactivity. Please reopen if symptoms persist.
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#438
No description provided.