Project

General

Profile

Actions

Bug #65400

open

ceph-exporter

Added by Aliaksei Makarau 26 days ago.

Status:
New
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

During the run of the ocs-ci tests (for example "test_fsgroupchangepolicy_when_depoyment_scaled") we receive the following segfault:

ceph version 17.2.6-196.el9cp (cbbf2cfb549196ca18c0c9caff9124d83ed681a4) quincy (stable)                                                                                                                   
1: __kernel_sigreturn()
2: /lib64/libc.so.6(0xa0126) [0x3ff8e1a0126]
3: gsignal()
4: abort()
5: (_gnu_cxx::_verbose_terminate_handler()+0x118) [0x3ff8e43f1a8]
6: /lib64/libstdc
+.so.6(0xbc9fe) [0x3ff8e43c9fe]
7: /lib64/libstdc
+.so.6(0xbca88) [0x3ff8e43ca88]
8: /lib64/libstdc
+.so.6(+0xbcd96) [0x3ff8e43cd96]
9: ceph-exporter(+0x277b4) [0x2aa260277b4]
10: (boost::json::detail::throw_invalid_argument(char const*, boost::source_location const&)+0x44) [0x2aa26039514]
11: ceph-exporter(+0x68e42) [0x2aa26068e42]
12: (DaemonMetricCollector::dump_asok_metrics()+0x1ff0) [0x2aa2604b300]
13: ceph-exporter(+0x3e228) [0x2aa2603e228]
14: ceph-exporter(+0x5ccbe) [0x2aa2605ccbe]
15: ceph-exporter(+0xac212) [0x2aa260ac212]
16: (DaemonMetricCollector::main()+0x212) [0x2aa26029fa2]
17: main()
18: /lib64/libc.so.6(+0x308b2) [0x3ff8e1308b2]
19: __libc_start_main()
20: ceph-exporter(+0x2aa50) [0x2aa2602aa50]
NOTE: a copy of the executable, or `objdump -rdS <executable>` is needed to interpret this.           

This looks like the "boost::json::parse" function in "src/exporter/DaemonMetricCollector.cc" may receive an unformated/null/zeroed/corrupted/etc. JSON-string and throws.
Expected to be corrected by the try/catch.

No data to display

Actions

Also available in: Atom PDF