Project

General

Profile

Actions

Bug #188

closed

cfuse crashes on snapshot file read

Added by Greg Farnum almost 14 years ago. Updated over 7 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

gregf@pudgy:~/ceph/src$ sudo mkdir mnt/a
[sudo] password for gregf:
gregf@pudgy:~/ceph/src$ sudo mkdir mnt/a/b
gregf@pudgy:~/ceph/src$ sudo cp vstart.sh mnt/a/b/
gregf@pudgy:~/ceph/src$ sudo mkdir mnt/a/.snap/1
gregf@pudgy:~/ceph/src$ sudo rm mnt/a/b/vstart.sh
gregf@pudgy:~/ceph/src$ sudo rmdir mnt/a/b/
gregf@pudgy:~/ceph/src$ sudo ls mnt/a/.snap/1/
b
gregf@pudgy:~/ceph/src$ sudo ls mnt/a/.snap/1/b/
vstart.sh
gregf@pudgy:~/ceph/src$ sudo less mnt/a/.snap/1/b/vstart.sh
mnt/a/.snap/1/b/vstart.sh: Software caused connection abort

gregf@pudgy:~/ceph/src$ ./cfuse mnt
mounting ceph
10.06.08_16:14:07.700037 7f55c62be910 monclient(hunting): found mon1
starting fuse
ceph_fuse_ll_main starting fuse on pid 21653
client/Client.cc: In function 'void Client::check_caps(Inode*, bool)':
client/Client.cc:1751: FAILED assert(in->snapid ((_u64)(2)))
1: (Client::_open(Inode*, int, unsigned int, Fh**, int, int)+0x281) [0x485d11]
2: (Client::ll_open(vinodeno_t, int, Fh**, int, int)+0x113) [0x486193]
3: ./cfuse [0x45b874]
4: /usr/lib/libfuse.so.2 [0x7f55c81b1a49]
5: (fuse_session_loop()+0x7a) [0x7f55c81afeba]
6: (ceph_fuse_ll_main(Client*, int, char const**)+0x2b3) [0x45d143]
7: (main()+0x4c7) [0x4428a7]
8: (
_libc_start_main()+0xfd) [0x7f55c7101abd]
9: ./cfuse [0x4422e9]
NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
client/Client.cc: In function 'void Client::check_caps(Inode*, bool)':
client/Client.cc:1751: FAILED assert(in>snapid ((_u64)(-2)))
1: (Client::_open(Inode*, int, unsigned int, Fh**, int, int)+0x281) [0x485d11]
2: (Client::ll_open(vinodeno_t, int, Fh**, int, int)+0x113) [0x486193]
3: ./cfuse [0x45b874]
4: /usr/lib/libfuse.so.2 [0x7f55c81b1a49]
5: (fuse_session_loop()+0x7a) [0x7f55c81afeba]
6: (ceph_fuse_ll_main(Client*, int, char const**)+0x2b3) [0x45d143]
7: (main()+0x4c7) [0x4428a7]
8: (
_libc_start_main()+0xfd) [0x7f55c7101abd]
9: ./cfuse [0x4422e9]
NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.
terminate called after throwing an instance of 'ceph::FailedAssertion*'
Aborted (core dumped)

Actions #1

Updated by Greg Farnum almost 14 years ago

  • Assignee set to Greg Farnum
Actions #2

Updated by Sage Weil almost 14 years ago

  • Target version set to v0.21
Actions #3

Updated by Greg Farnum almost 14 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Greg Farnum almost 14 years ago

  • Status changed from In Progress to Resolved

This was a simple fix, just remove a dumb assert! Done in 25116b27388293ce19aef0472b1a5bd6c42527c3.

However, leads on to 211.

Actions #5

Updated by John Spray over 7 years ago

  • Project changed from Ceph to CephFS
  • Category deleted (11)
  • Target version deleted (v0.21)

Bulk updating project=ceph category=ceph-fuse issues to move to fs project so that we can remove the ceph-fuse category from the ceph project

Actions

Also available in: Atom PDF