Project

General

Profile

Actions

Bug #39703

closed

'qemu-img' seg faults on rbd_close under CentOS 7.5

Added by Jason Dillaman almost 5 years ago. Updated almost 5 years ago.

Status:
Resolved
Priority:
High
Assignee:
Jason Dillaman
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

#0  0x00007f56ded19277 in raise () from /lib64/libc.so.6
#1  0x00007f56ded1a968 in abort () from /lib64/libc.so.6
#2  0x00007f56e042fa66 in tcmalloc::Log(tcmalloc::LogMode, char const*, int, tcmalloc::LogItem, tcmalloc::LogItem, tcmalloc::LogItem, tcmalloc::LogItem) () from /lib64/libtcmalloc.so.4
#3  0x00007f56e0424644 in (anonymous namespace)::InvalidFree(void*) () from /lib64/libtcmalloc.so.4
#4  0x00007f56df8d7d2d in boost::lockfree::queue<librbd::io::AioCompletion*>::~queue() () from /lib64/librbd.so.1
#5  0x00007f56df8ce94a in librbd::ImageCtx::~ImageCtx() () from /lib64/librbd.so.1
#6  0x00007f56df8e3e1c in librbd::ImageState<librbd::ImageCtx>::close() () from /lib64/librbd.so.1
#7  0x00007f56df89c954 in rbd_close () from /lib64/librbd.so.1
#8  0x000055f87f197a7d in qemu_rbd_close ()
#9  0x000055f87f178eb9 in bdrv_close ()
#10 0x000055f87f178d78 in bdrv_unref ()
#11 0x000055f87f178f43 in bdrv_close ()
#12 0x000055f87f178d78 in bdrv_unref ()
#13 0x000055f87f1ccd3d in img_convert ()
#14 0x00007f56ded05445 in __libc_start_main () from /lib64/libc.so.6
#15 0x000055f87f17118d in _start ()

http://qa-proxy.ceph.com/teuthology/jdillaman-2019-05-10_08:42:31-rbd-master-distro-basic-smithi/3946034/teuthology.log

Actions #1

Updated by Jason Dillaman almost 5 years ago

It's due to boost's use of 'aligned_alloc' which is not available in the gperftools (tcmalloc) available on RHEL/CentOS 7.5.

Actions #2

Updated by Jason Dillaman almost 5 years ago

... actually, it's coming from the built-in C++17 'std::allocator' which can perform optional aligned allocations via 'operator new(unsigned long, std::align_val_t)'.

Actions #4

Updated by Jason Dillaman almost 5 years ago

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 28093
Actions #5

Updated by Mykola Golub almost 5 years ago

  • Status changed from Fix Under Review to Resolved
Actions

Also available in: Atom PDF