Weird error in untitest_crypto

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm in preparation of releasing a FreeBSD package for the new Mimic
release, but run into this crash in unittest_crypto.

And it looks like a pointer is overwritten (given the regularity of the
bits of 'this')
And things get trapped in frame #3, which is ~ptr, and is where things
get freed during block exit.

Now the weird thing is that this does not happen on Luminous and master.
So what is off in Mimic baffels me, uptil now.

Anybody out there with a bright suggestion.

It will not impede my package building, since thre is no testing there.
But I'd be happier if this is fixed.

--WjW

GDB output at the bottom

did not load config file, using default settings.
2018-07-20 16:24:12.089 80cfe9000 -1 Errors while parsing config file!
2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
/etc/ceph/ceph.conf: (2) No such file or directory
2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
/home/wjw/.ceph/ceph.conf: (2) No such file or directory
2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open ceph.conf:
(2) No such file or directory
2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
/usr/local/etc/ceph/ceph.conf: (2) No such file or directory
2018-07-20 16:24:12.099 80cfe9000 -1 Errors while parsing config file!
2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
/etc/ceph/ceph.conf: (2) No such file or directory
2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
/home/wjw/.ceph/ceph.conf: (2) No such file or directory
2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open ceph.conf:
(2) No such file or directory
2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
/usr/local/etc/ceph/ceph.conf: (2) No such file or directory
[==========] Running 8 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 8 tests from AES
[ RUN      ] AES.ValidateLegacy
[       OK ] AES.ValidateLegacy (1 ms)
[ RUN      ] AES.ValidateSecret
[       OK ] AES.ValidateSecret (0 ms)
[ RUN      ] AES.Encrypt
[       OK ] AES.Encrypt (0 ms)
[ RUN      ] AES.EncryptNoBl
[       OK ] AES.EncryptNoBl (0 ms)
[ RUN      ] AES.Decrypt
[       OK ] AES.Decrypt (0 ms)
[ RUN      ] AES.DecryptNoBl
*** Caught signal (Bus error) **
 in thread 80cfe9000 thread_name:
 ceph version Development (no_version) mimic (stable)
 1: <ceph::BackTrace::BackTrace(int)+0x6c> at
/home/jenkins/workspace/ceph-mimic/build/bin/unittest_crypto
 2: <handle_fatal_signal(int)+0xcf> at
/home/jenkins/workspace/ceph-mimic/build/bin/unittest_crypto
 3: <pthread_sigmask()+0x536> at /lib/libthr.so.3
2018-07-20 16:24:12.709 80cfe9000 -1 *** Caught signal (Bus error) **
 in thread 80cfe9000 thread_name:

 ceph version Development (no_version) mimic (stable)
 1: <ceph::BackTrace::BackTrace(int)+0x6c> at
/home/jenkins/workspace/ceph-mimic/build/bin/unittest_crypto
 2: <handle_fatal_signal(int)+0xcf> at
/home/jenkins/workspace/ceph-mimic/build/bin/unittest_crypto
 3: <pthread_sigmask()+0x536> at /lib/libthr.so.3
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is
needed to interpret this.

--- begin dump of recent events ---
   -30> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perfcounters_dump hook 0x80cffe290
   -29> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command 1 hook 0x80cffe290
   -28> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perf dump hook 0x80cffe290
   -27> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perfcounters_schema hook 0x80cffe290
   -26> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perf histogram dump hook 0x80cffe290
   -25> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command 2 hook 0x80cffe290
   -24> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perf schema hook 0x80cffe290
   -23> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perf histogram schema hook 0x80cffe290
   -22> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command perf reset hook 0x80cffe290
   -21> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config show hook 0x80cffe290
   -20> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config help hook 0x80cffe290
   -19> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config set hook 0x80cffe290
   -18> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config unset hook 0x80cffe290
   -17> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config get hook 0x80cffe290
   -16> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config diff hook 0x80cffe290
   -15> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command config diff get hook 0x80cffe290
   -14> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command log flush hook 0x80cffe290
   -13> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command log dump hook 0x80cffe290
   -12> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command log reopen hook 0x80cffe290
   -11> 2018-07-20 16:24:12.089 80cfe9000  5 asok(0x80e001000)
register_command dump_mempools hook 0x80e009668
   -10> 2018-07-20 16:24:12.089 80cfe9000 -1 Errors while parsing config
file!
    -9> 2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
/etc/ceph/ceph.conf: (2) No such file or directory
    -8> 2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
/home/wjw/.ceph/ceph.conf: (2) No such file or directory
    -7> 2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
ceph.conf: (2) No such file or directory
    -6> 2018-07-20 16:24:12.089 80cfe9000 -1 parse_file: cannot open
/usr/local/etc/ceph/ceph.conf: (2) No such file or directory
    -5> 2018-07-20 16:24:12.099 80cfe9000 -1 Errors while parsing config
file!
    -4> 2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
/etc/ceph/ceph.conf: (2) No such file or directory
    -3> 2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
/home/wjw/.ceph/ceph.conf: (2) No such file or directory
    -2> 2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
ceph.conf: (2) No such file or directory
    -1> 2018-07-20 16:24:12.099 80cfe9000 -1 parse_file: cannot open
/usr/local/etc/ceph/ceph.conf: (2) No such file or directory
     0> 2018-07-20 16:24:12.709 80cfe9000 -1 *** Caught signal (Bus
error) **
 in thread 80cfe9000 thread_name:

 ceph version Development (no_version) mimic (stable)
 1: <ceph::BackTrace::BackTrace(int)+0x6c> at
/home/jenkins/workspace/ceph-mimic/build/bin/unittest_crypto
 2: <handle_fatal_signal(int)+0xcf> at
/home/jenkins/workspace/ceph-mimic/build/bin/unittest_crypto
 3: <pthread_sigmask()+0x536> at /lib/libthr.so.3
 NOTE: a copy of the executable, or `objdump -rdS <executable>` is
needed to interpret this.

--- logging levels ---
   0/ 5 none
   0/ 1 lockdep
   0/ 1 context
   1/ 1 crush
   1/ 5 mds
   1/ 5 mds_balancer
   1/ 5 mds_locker
   1/ 5 mds_log
   1/ 5 mds_log_expire
   1/ 5 mds_migrator
   0/ 1 buffer
   0/ 1 timer
   0/ 1 filer
   0/ 1 striper
   0/ 1 objecter
   0/ 5 rados
   0/ 5 rbd
   0/ 5 rbd_mirror
   0/ 5 rbd_replay
   0/ 5 journaler
   0/ 5 objectcacher
   0/ 5 client
   1/ 5 osd
   0/ 5 optracker
   0/ 5 objclass
   1/ 3 filestore
   1/ 3 journal
   0/ 0 ms
   1/ 5 mon
   0/10 monc
   1/ 5 paxos
   0/ 5 tp
   1/ 5 auth
   1/ 5 crypto
   1/ 1 finisher
   1/ 1 reserver
   1/ 5 heartbeatmap
   1/ 5 perfcounter
   1/ 5 rgw
   1/ 5 rgw_sync
   1/10 civetweb
   1/ 5 javaclient
   1/ 5 asok
   1/ 1 throttle
   0/ 0 refs
   1/ 5 xio
   1/ 5 compressor
   1/ 5 bluestore
   1/ 5 bluefs
   1/ 3 bdev
   1/ 5 kstore
   4/ 5 rocksdb
   4/ 5 leveldb
   4/ 5 memdb
   1/ 5 kinetic
   1/ 5 fuse
   1/ 5 mgr
   1/ 5 mgrc
   1/ 5 dpdk
   1/ 5 eventtrace
  -2/-2 (syslog threshold)
  99/99 (stderr threshold)
  max_recent       500
  max_new         1000
  log_file
--- end dump of recent events ---
Bus error
Exit 138

And GDB:
==========] Running 8 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 8 tests from AES
[ RUN      ] AES.ValidateLegacy
[       OK ] AES.ValidateLegacy (1 ms)
[ RUN      ] AES.ValidateSecret
[       OK ] AES.ValidateSecret (0 ms)
[ RUN      ] AES.Encrypt
[       OK ] AES.Encrypt (0 ms)
[ RUN      ] AES.EncryptNoBl
[       OK ] AES.EncryptNoBl (0 ms)
[ RUN      ] AES.Decrypt
[       OK ] AES.Decrypt (0 ms)
[ RUN      ] AES.DecryptNoBl

Thread 1 received signal SIGBUS, Bus error.
0x000000080105c75e in std::__1::__atomic_base<unsigned int,
true>::fetch_sub (this=0x1010101010101024, __op=1,
    __m=std::__1::memory_order_seq_cst) at /usr/include/c++/v1/atomic:1023
1023            {return __c11_atomic_fetch_sub(&this->__a_, __op, __m);}
(gdb) bt
#0  0x000000080105c75e in std::__1::__atomic_base<unsigned int,
true>::fetch_sub (this=0x1010101010101024, __op=1,
    __m=std::__1::memory_order_seq_cst) at /usr/include/c++/v1/atomic:1023
#1  std::__1::__atomic_base<unsigned int, true>::operator--
(this=0x1010101010101024) at /usr/include/c++/v1/atomic:1058
#2  ceph::buffer::ptr::release (this=0x7fffffffe028) at
/home/jenkins/workspace/ceph-mimic/src/common/buffer.cc:949
#3  0x0000000000267345 in ceph::buffer::ptr::~ptr (this=0x7fffffffe028)
    at /home/jenkins/workspace/ceph-mimic/src/include/buffer.h:264
#4  0x0000000000261da3 in AES_DecryptNoBl_Test::TestBody (this=0x80cffe160)
    at /home/jenkins/workspace/ceph-mimic/src/test/crypto.cc:381
#5  0x00000000002d9dde in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::Test,
void> (object=0x80cffe160,
    method=&virtual testing::Test::TestBody(), location=0x2035f3 "the
test body")
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2402
#6  0x00000000002bc58b in
testing::internal::HandleExceptionsInMethodIfSupported<testing::Test,
void> (object=0x80cffe160,
    method=&virtual testing::Test::TestBody(), location=0x2035f3 "the
test body")
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2438
#7  0x000000000028b106 in testing::Test::Run (this=0x80cffe160)
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2474
#8  0x000000000028c68d in testing::TestInfo::Run (this=0x80d9f1ee0)
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2656
#9  0x000000000028d27c in testing::TestCase::Run (this=0x80d9f19a0)
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2774
#10 0x000000000029b4bc in testing::internal::UnitTestImpl::RunAllTests
(this=0x80d9e9700)
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:4649
#11 0x00000000002ddbde in
testing::internal::HandleSehExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
bool> (
    object=0x80d9e9700,
    method=(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl *
const)) 0x29b120 <testing::internal::UnitTestImpl::RunAllTests()>,
location=0x200c2c "auxiliary test code (environments or event listeners)")
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2402
#12 0x00000000002bee8b in
testing::internal::HandleExceptionsInMethodIfSupported<testing::internal::UnitTestImpl,
bool> (
    object=0x80d9e9700,
    method=(bool
(testing::internal::UnitTestImpl::*)(testing::internal::UnitTestImpl *
const)) 0x29b120 <testing::internal::UnitTestImpl::RunAllTests()>,
location=0x200c2c "auxiliary test code (environments or event listeners)")
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:2438
#13 0x000000000029b0bf in testing::UnitTest::Run (this=0x3011f0
<testing::UnitTest::GetInstance()::instance>)
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/src/gtest.cc:4257
#14 0x0000000000275431 in RUN_ALL_TESTS ()
    at
/home/jenkins/workspace/ceph-mimic/src/googletest/googletest/include/gtest/gtest.h:2233
#15 0x000000000027521a in main (argc=1, argv=0x7fffffffe9b0) at
/home/jenkins/workspace/ceph-mimic/src/test/unit.cc:45
(gdb)
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux