Actions
Bug #18576
closedEnabling LTTnG causes Segmentation fault in libgcc
Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
-
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
Enabling LTTnG on master causes a segmentation fault in libgcc.
Error log: #############################################################################################################vagrant@cephaio:/data/odisk/ceph/ceph/build$ OSD=1 MON=1 MDS=0 CEPH_DEV_DIR=/data/ceph-disk/ /data/odisk/ceph/ceph/src/vstart.sh -d -n -x --valgrind memcheck -k
- going verbose **
2017-01-17 18:27:17.622767 7f40ad7deec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:17.683761 7f73e1adaec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:17.745503 7f2f4fcedec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:17.813466 7fb1567aaec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:17.876913 7f8f58e90ec0 -1 WARNING: all dangerous and experimental features are enabled. === osd.0 ===
2017-01-17 18:27:17.935373 7fb061009ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:17.998658 7fc2d31a8ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.058194 7fc72db5fec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.114895 7f3defaffec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.176292 7f37b68faec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.234354 7f4b408d2ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.293521 7f70b31caec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.350223 7f5e5df50ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.405729 7f4dde8d9ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.466701 7fc87df0eec0 -1 WARNING: all dangerous and experimental features are enabled.
Stopping Ceph osd.0 on cephaio...done
2017-01-17 18:27:18.542231 7fa32aedbec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.607174 7f0402c1aec0 -1 WARNING: all dangerous and experimental features are enabled. === mon.a ===
2017-01-17 18:27:18.668639 7f02b4f3eec01 WARNING: all dangerous and experimental features are enabled./data/ceph-disk//mon.a
2017-01-17 18:27:18.726736 7f7c61f97ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.786517 7f46f097eec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.841316 7fa9eb4f2ec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:18.905849 7f9665a3fec0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:19.002536 7f4239722ec0 -1 WARNING: all dangerous and experimental features are enabled.
Stopping Ceph mon.a on cephaio...done
rm -f core*
hostname cephaio
ip 10.0.2.15
port 40000
/data/odisk/ceph/ceph/build/bin/ceph-authtool --create-keyring --gen-key --name=mon. /data/odisk/ceph/ceph/build/keyring --cap mon allow
creating /data/odisk/ceph/ceph/build/keyring
/data/odisk/ceph/ceph/build/bin/ceph-authtool --gen-key --name=client.admin --set-uid=0 --cap mon allow * --cap osd allow * --cap mds allow * /data/odisk/ceph/ceph/build/keyring
/data/odisk/ceph/ceph/build/bin/monmaptool --create --clobber --add a 10.0.2.15:40000 --print /tmp/ceph_monmap.31953
/data/odisk/ceph/ceph/build/bin/monmaptool: monmap file /tmp/ceph_monmap.31953
/data/odisk/ceph/ceph/build/bin/monmaptool: generated fsid a3cd0dc7-aa72-4709-a554-2167e79691f6
epoch 0
fsid a3cd0dc7-aa72-4709-a554-2167e79691f6
last_changed 2017-01-17 18:27:19.283438
created 2017-01-17 18:27:19.283438
0: 10.0.2.15:40000/0 mon.a
/data/odisk/ceph/ceph/build/bin/monmaptool: writing epoch 0 to /tmp/ceph_monmap.31953 (1 monitors)
rm -rf -
mkdirp /data/ceph-disk//mon.a/tmp/ceph_monmap.31953
/data/odisk/ceph/ceph/build/bin/ceph-mon --mkfs -c /data/odisk/ceph/ceph/build/ceph.conf -i a --monmap=/tmp/ceph_monmap.31953 --keyring=/data/odisk/ceph/ceph/build/keyring
2017-01-17 18:27:19.307163 7fc8448e3ac0 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:19.307942 7fc8448e3ac0 -1 WARNING: all dangerous and experimental features are enabled.
/data/odisk/ceph/ceph/build/bin/ceph-mon: set fsid to f900bd15-5767-4658-9ef8-753e80219928
/data/odisk/ceph/ceph/build/bin/ceph-mon: created monfs at /data/ceph-disk//mon.a for mon.a
rm -
valgrind --tool=memcheck /data/odisk/ceph/ceph/build/bin/ceph-mon -i a -c /data/odisk/ceph/ceph/build/ceph.conf -f &
32117 Memcheck, a memory error detector
32117 Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
32117 Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
32117 Command: /data/odisk/ceph/ceph/build/bin/ceph-mon -i a -c /data/odisk/ceph/ceph/build/ceph.conf -f
32117
ERROR: error accessing '/data/ceph-disk//osd0/'
add osd0 54170e28-15a9-4683-972e-95a10e2c44b1
/data/odisk/ceph/ceph/build/bin/ceph -c /data/odisk/ceph/ceph/build/ceph.conf -k /data/odisk/ceph/ceph/build/keyring osd create 54170e28-15a9-4683-972e-95a10e2c44b1
2017-01-17 18:27:20.516830 7f6fb5a03700 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:20.588141 7f6fb5a03700 -1 WARNING: all dangerous and experimental features are enabled.
32117 Syscall param msync(start) points to uninitialised byte(s)
32117 at 0xDFC6B20: __msync_nocancel (syscall-template.S:81)
32117 by 0xFFCC123: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFCEEF6: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFD0151: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFD04E8: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFCCA30: _ULx86_64_step (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xDD7AEF2: GetStackTrace(void**, int, int) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6D854: tcmalloc::PageHeap::GrowHeap(unsigned long) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6DB62: tcmalloc::PageHeap::New(unsigned long) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6C6D6: tcmalloc::CentralFreeList::Populate() (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6C8A7: tcmalloc::CentralFreeList::FetchFromSpansSafe() (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6C922: tcmalloc::CentralFreeList::RemoveRange(void**, void**, int) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 Address 0xfff000010 is on thread 1's stack
32117 in frame #7, created by tcmalloc::PageHeap::GrowHeap(unsigned long) (?)
32117
2017-01-17 18:27:23.844957 403d580 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:23.979365 403d580 -1 WARNING: all dangerous and experimental features are enabled.
2017-01-17 18:27:24.521748 403d580 -1 WARNING: all dangerous and experimental features are enabled.
32117 Syscall param msync(start) points to uninitialised byte(s)
32117 at 0xDFC6B3D: ? (syscall-template.S:81)
32117 by 0xFFCC123: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFCEEF6: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFD0151: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFD04E8: ? (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xFFCCA30: _ULx86_64_step (in /usr/lib/x86_64-linux-gnu/libunwind.so.8.0.1)
32117 by 0xDD7AEF2: GetStackTrace(void**, int, int) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6D854: tcmalloc::PageHeap::GrowHeap(unsigned long) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6DB62: tcmalloc::PageHeap::New(unsigned long) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6C6D6: tcmalloc::CentralFreeList::Populate() (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6C8A7: tcmalloc::CentralFreeList::FetchFromSpansSafe() (in /usr/lib/libtcmalloc.so.4.1.2)
32117 by 0xDD6C922: tcmalloc::CentralFreeList::RemoveRange(void**, void**, int) (in /usr/lib/libtcmalloc.so.4.1.2)
32117 Address 0xffeffe030 is on thread 1's stack
32117 in frame #7, created by tcmalloc::PageHeap::GrowHeap(unsigned long) (???)
32117
starting mon.a rank 0 at 10.0.2.15:40000/0 mon_data /data/ceph-disk//mon.a fsid f900bd15-5767-4658-9ef8-753e80219928
0
Segmentation fault (core dumped) #############################################################################################################
Steps to reproduce:
1. Build master branch with -DWITH_LTTNG=ON -DHAVE_BABELTRACE=ON
2. Ubuntu 14.04 Vagrant VM.
3. Enable LTTnG logging in ceph.conf with the below config.
osd_tracing = true
osd_objectstore_tracing = true
rados_tracing = true
rbd_tracing = true
4. The above vstart command will cause a segmentation fault.
[323451.320169] ceph32582: segfault at 7f0b348250ed ip 00007f0b38666668 sp 00007f0b2fffd860 error 4 in libgcc_s.so.1[7f0b38657000+16000]
Actions