Project

General

Profile

Actions

Bug #65098

open

detect_odr_violation of ceph::buffer::list::always_empty_bptr

Added by Kefu Chai about 1 month ago. Updated about 1 month 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

after building the tree with ASan enabled, when running rbd, we have

  =================================================================
  ==117994==ERROR: AddressSanitizer: odr-violation (0x7fc152daf880):
    [1] size=24 'ceph::buffer::list::always_empty_bptr' /home/jenkins-build/build/workspace/ceph-pull-requests/src/common/buffer.cc:1267:34
    [2] size=24 'ceph::buffer::list::always_empty_bptr' /home/jenkins-build/build/workspace/ceph-pull-requests/src/common/buffer.cc:1267:34
  These globals were registered at these points:
    [1]:
      #0 0x55856c66727a in __asan_register_globals (/home/jenkins-build/build/workspace/ceph-pull-requests/build/bin/rbd+0xa4c27a) (BuildId: 917e672500fe0c0d67124c88ecdfcf36cb68ff53)
      #1 0x7fc1525f7cee in asan.module_ctor buffer.cc
      #2 0x7fc155dea47d in call_init elf/./elf/dl-init.c:70:3

    [2]:
      #0 0x55856c66727a in __asan_register_globals (/home/jenkins-build/build/workspace/ceph-pull-requests/build/bin/rbd+0xa4c27a) (BuildId: 917e672500fe0c0d67124c88ecdfcf36cb68ff53)
      #1 0x7fc1505c222e in asan.module_ctor buffer.cc
      #2 0x7fc155dea47d in call_init elf/./elf/dl-init.c:70:3

  ==117994==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
  SUMMARY: AddressSanitizer: odr-violation: global 'ceph::buffer::list::always_empty_bptr' at /home/jenkins-build/build/workspace/ceph-pull-requests/src/common/buffer.cc:1267:34
  ==117994==ABORTING

to enable ASan, one might want to apply the changeset at https://github.com/ceph/ceph/pull/56241

Actions #1

Updated by Kefu Chai about 1 month ago

  • Description updated (diff)
Actions

Also available in: Atom PDF