Project

General

Profile

Bug #24078

spdk crash during librados shutdown

Added by Pawel Kaminski almost 6 years ago. Updated almost 6 years ago.

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

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
05/10/2018
Affected Versions:
ceph-qa-suite:
rados
Component(RADOS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

I use spdk_tgt from spdk project:
1. rbd create foo --size 1000
2. python /home/sample/build_pool/agent/repo/test/json_config/../..//scripts/rpc.py -s /var/tmp/spdk.sock construct_rbd_bdev rbd foo 4096
Then, when I call:
3. python /home/sample/build_pool/agent/repo/test/json_config/../..//scripts/rpc.py -s /var/tmp/spdk.sock get_bdevs
I got following error:
76020ERROR: AddressSanitizer: new-delete-type-mismatch on 0x611000008740 in thread T0 (reactor_0):
object passed to delete has wrong type:
size of the allocated type: 247 bytes;
size of the deallocated type: 168 bytes.
#0 0x7fd27255c6d8 in operator delete(void*, unsigned long) (/lib64/libasan.so.4+0xe16d8)
#1 0x7fd2688f379d (/lib64/librados.so.2+0x43379d)
#2 0x7fd2688f38b8 (/lib64/librados.so.2+0x4338b8)
#3 0x7fd268654fb4 (/lib64/librados.so.2+0x194fb4)
#4 0x7fd268655232 (/lib64/librados.so.2+0x195232)
#5 0x7fd268554de1 (/lib64/librados.so.2+0x94de1)
#6 0x7fd268554f48 (/lib64/librados.so.2+0x94f48)
#7 0x7fd2685207a8 in rados_shutdown (/lib64/librados.so.2+0x607a8)
#8 0x526ad8 in bdev_rbd_free_channel /home/sample/build_pool/agent/repo/lib/bdev/rbd/bdev_rbd.c:457
#9 0x527496 in bdev_rbd_destroy_cb /home/sample/build_pool/agent/repo/lib/bdev/rbd/bdev_rbd.c:528
#10 0x685037 in _spdk_put_io_channel /home/sample/build_pool/agent/repo/lib/util/io_channel.c:479
#11 0x66ca36 in _spdk_reactor_msg_passed /home/sample/build_pool/agent/repo/lib/event/reactor.c:216
#12 0x66c8c6 in _spdk_event_queue_run_batch /home/sample/build_pool/agent/repo/lib/event/reactor.c:203
#13 0x66f376 in _spdk_reactor_run /home/sample/build_pool/agent/repo/lib/event/reactor.c:465
#14 0x671431 in spdk_reactors_start /home/sample/build_pool/agent/repo/lib/event/reactor.c:643
#15 0x669b7f in spdk_app_start /home/sample/build_pool/agent/repo/lib/event/app.c:567
#16 0x407c15 in main /home/sample/build_pool/agent/repo/app/spdk_tgt/spdk_tgt.c:88
#17 0x7fd25c9d9889 in __libc_start_main (/lib64/libc.so.6+0x20889)
#18 0x407859 in _start (/home/sample/build_pool/agent/repo/app/spdk_tgt/spdk_tgt+0x407859)

0x611000008740 is located 0 bytes inside of 247-byte region [0x611000008740,0x611000008837)
allocated by thread T0 (reactor_0) here:
#0 0x7fd27255b158 in operator new(unsigned long) (/lib64/libasan.so.4+0xe0158)
#1 0x7fd2688f41ec (/lib64/librados.so.2+0x4341ec)

SUMMARY: AddressSanitizer: new-delete-type-mismatch (/lib64/libasan.so.4+0xe16d8) in operator delete(void*, unsigned long)
76020HINT: if you don't care about these errors you may set ASAN_OPTIONS=new_delete_type_mismatch=0
76020ABORTING

History

#1 Updated by John Spray almost 6 years ago

  • Project changed from Ceph to RADOS
  • Subject changed from Error in librados to spdk crash during librados shutdown
  • Category deleted (librados)

Also available in: Atom PDF