Project

General

Profile

Actions

Bug #24241

open

NFS-Ganesha libcephfs: Assert failure in object_locator_to_pg

Added by supriti singh almost 6 years ago. Updated about 5 years ago.

Status:
New
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Community (user)
Tags:
Backport:
mimic,luminous
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
fs
Component(FS):
Client, Ganesha FSAL, libcephfs
Labels (FS):
crash
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

When calling ceph_ll_get_stripe_osd from nfs-ganesha fsal ceph in file mds.c, assertion failure causes segmentation fault. The code is very old and its not used anywhere else. It may be the ceph setup or the code needs to updated.

(gdb) bt
#0  0x00007fa20ebc1f67 in raise () from /lib64/libc.so.6
#1  0x00007fa20ebc333a in abort () from /lib64/libc.so.6
#2  0x00007fa2059bac35 in ceph::__ceph_assert_fail (assertion=assertion@entry=0x7fa205deb596 "ret == 0", 
    file=file@entry=0x7fa205e06ad0 "ceph/src/osd/OSDMap.h", line=line@entry=1024, 
    func=func@entry=0x7fa205e07ba0 <OSDMap::object_locator_to_pg(object_t const&, object_locator_t const&) const::__PRETTY_FUNCTION__> "pg_t OSDMap::object_locator_to_pg(const object_t&, const object_locator_t&) const") at ceph/src/common/assert.cc:66
#3  0x00007fa205b1e496 in OSDMap::object_locator_to_pg (loc=..., oid=..., this=0x21ff830)
    at ceph/src/osd/OSDMap.h:1024
#4  OSDMap::make_object_layout (this=this@entry=0x21ff830, oid=..., pg_pool=pg_pool@entry=-1, nspace="")
    at ceph/src/osd/OSDMap.cc:1919
#5  0x00007fa20112e797 in OSDMap::file_to_object_layout (layout=..., oid=..., this=0x21ff830)
    at ceph/src/osd/OSDMap.h:1035
#6  Client::<lambda(const OSDMap&)>::operator() (o=..., __closure=<optimized out>)
    at ceph/src/client/Client.cc:12473
#7  Objecter::with_osdmap<Client::ll_get_stripe_osd(Inode*, uint64_t, file_layout_t*)::<lambda(const OSDMap&)> > (cb=..., this=<optimized out>)
    at ceph/src/osdc/Objecter.h:2068
#8  Client::ll_get_stripe_osd (this=<optimized out>, in=<optimized out>, blockno=<optimized out>, layout=layout@entry=0x7fa172276e70)
Actions

Also available in: Atom PDF