Bug #46380
libcephfs admin socket occurs segment fault
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
ceph version: 14.2.5
samba version : 4.9.18
OS verion: centos 7.6.1810
Procedure:
1, deploy a ceph cluster and create a file system.
2, export a dir that in ceph fs with samba ceph plugin.
3, execute 'ceph daemon /var/run/ceph/*.asok help' command to get help info, but it always occurs segment fault.
And the smbd process restarted.
Here is the samba conf and ceph conf list below:
smb.conf
[global] server string = samba-ankorstor kernel share modes = no map to guest = Bad User ceph:user_id = samba #VERSION=dc7cf3ea3425467cad94aa7c065e3441 [dfdsaf0000] comment = dfdsaf0000 vfs objects = ceph Path = /dfdsaf0000 browseable = yes writable = yes create mode = 0777 directory mode = 0777 force create mode = 0777 force directory mode = 0777 guest ok = no valid users = nobody, dd, localuser1, DFSSDFDS, FSDFDS, DFADSF, DSFDS, DSFFSDF, FDSFADSF, DSFAFDS, DSAFDSFDS, SDFDSF, DFADSFD, SDFASFQ, DSFDSFDSF admin users = nobody, dd, localuser1, DFSSDFDS, FSDFDS, DFADSF, DSFDS, DSFFSDF, FDSFADSF, DSFAFDS, DSAFDSFDS, SDFDSF, DFADSFD, SDFASFQ, DSFDSFDSF write list = dd, localuser1, DFSSDFDS, FSDFDS, DFADSF, DSFDS, DSFFSDF, FDSFADSF, DSFAFDS, DSAFDSFDS, SDFDSF, DFADSFD, SDFASFQ, DSFDSFDSF
ceph.conf
[global] ... [client] admin_socket = $run_dir/$cluster-$name.$pid.$cctid.asok ... [client.samba] debug_client = 5 log_file = /var/log/samba/samba-ceph.log
call trace:
#8 0x00007f35226d026f in acquire (this=0x564a0a014050) at /usr/src/debug/ceph-14.2.5-1.0.8/build/boost/include/boost/smart_ptr/detail/shared_count.hpp:426 #9 acquire_object_id (this=0x7f350fffe220) at /usr/src/debug/ceph-14.2.5-1.0.8/build/boost/include/boost/spirit/home/classic/core/non_terminal/impl/object_with_id.ipp:157 #10 object_with_id (this=0x7f350fffe220) at /usr/src/debug/ceph-14.2.5-1.0.8/build/boost/include/boost/spirit/home/classic/core/non_terminal/impl/object_with_id.ipp:79 #11 grammar (this=0x7f350fffe220) at /usr/src/debug/ceph-14.2.5-1.0.8/build/boost/include/boost/spirit/home/classic/core/non_terminal/grammar.hpp:51 #12 Json_grammer (semantic_actions=..., this=0x7f350fffe220) at /usr/src/debug/ceph-14.2.5-1.0.8/src/json_spirit/json_spirit_reader_template.h:401 #13 json_spirit::read_range_or_throw<__gnu_cxx::__normal_iterator<char const*, std::string>, json_spirit::Value_impl<json_spirit::Config_map<std::string> > > (begin=123 '{', end=0 '\000', value=...) at /usr/src/debug/ceph-14.2.5-1.0.8/src/json_spirit/json_spirit_reader_template.h:585 #14 0x00007f35226d0c3c in json_spirit::read_range<__gnu_cxx::__normal_iterator<char const*, std::string>, json_spirit::Value_impl<json_spirit::Config_map<std::string> > > ( begin=123 '{', end=..., value=...) at /usr/src/debug/ceph-14.2.5-1.0.8/src/json_spirit/json_spirit_reader_template.h:607 #15 0x00007f35226bb07d in read_string<std::basic_string<char>, json_spirit::Value_impl<json_spirit::Config_map<std::basic_string<char> > > > (value=..., s=<error reading variable: Cannot access memory at address 0x7869666572702263>) at /usr/src/debug/ceph-14.2.5-1.0.8/src/json_spirit/json_spirit_reader.cpp:78 #16 json_spirit::read (s="{\"prefix\": \"get_command_descriptions\"}", value=...) at /usr/src/debug/ceph-14.2.5-1.0.8/src/json_spirit/json_spirit_reader.cpp:78 #17 0x00007f35222953a7 in cmdmap_from_json(std::vector<std::string, std::allocator<std::string> >, std::map<std::string, boost::variant<std::string, bool, long, double, std::vector<std::string, std::allocator<std::string> >, std::vector<long, std::allocator<long> >, std::vector<double, std::allocator<double> > >, std::less<void>, std::allocator<std::pair<std::string const, boost::variant<std::string, bool, long, double, std::vector<std::string, std::allocator<std::string> >, std::vector<long, std::allocator<long> >, std::vector<double, std::allocator<double> > > > > >*, std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&) () at /usr/src/debug/ceph-14.2.5-1.0.8/src/common/cmdparse.cc:294 #18 0x00007f3522255492 in AdminSocket::execute_command(std::string const&, ceph::buffer::v14_2_0::list&) () at /opt/rh/devtoolset-8/root/usr/include/c++/8/new:169 #19 0x00007f35222567ef in AdminSocket::do_accept() () at /usr/src/debug/ceph-14.2.5-1.0.8/src/common/admin_socket.cc:341 #20 0x00007f3522258cc8 in AdminSocket::entry (this=0x564a09f3a950) at /usr/src/debug/ceph-14.2.5-1.0.8/src/common/admin_socket.cc:241 #21 0x00007f352270f68f in execute_native_thread_routine () from /usr/lib64/ceph/libceph-common.so.0 #22 0x00007f35466d1ea5 in start_thread () from /lib64/libpthread.so.0 #23 0x00007f35426938dd in clone () from /lib64/libc.so.6
History
#1 Updated by haitao chen over 3 years ago
Sorry, It is ourself mistake, please close this bug.Thanks.
#2 Updated by Greg Farnum almost 3 years ago
- Project changed from Ceph to CephFS
- Status changed from New to Closed