Project

General

Profile

Bug #1267

odr-violation for config_str_yes

Added by Jonathan Rajotte Julien 7 months ago.

Status:
New
Priority:
Low
Assignee:
-
Target version:
-
Start date:
05/12/2020
Due date:
% Done:

0%

Estimated time:

Description

Using "clang version 10.0.0-4ubuntu1".

Configure: "./configure CFLAGS="-g -O0 -fsanitize=address"

lttng-sessiond yield:

=================================================================
==3248430==ERROR: AddressSanitizer: odr-violation (0x000000800e80):
  [1] size=8 'config_str_yes' session-config.c:56:20
  [2] size=8 'config_str_yes' session-config.c:56:20
These globals were registered at these points:
  [1]:
    #0 0x43447d in __asan_register_globals (/home/joraj/lttng/master/install/bin/lttng-sessiond+0x43447d)
    #1 0x6e6a8b in asan.module_ctor (/home/joraj/lttng/master/install/bin/lttng-sessiond+0x6e6a8b)

  [2]:
    #0 0x43447d in __asan_register_globals (/home/joraj/lttng/master/install/bin/lttng-sessiond+0x43447d)
    #1 0x7eff93c40a6b in asan.module_ctor (/home/joraj/lttng/master//install/lib/liblttng-ctl.so.0+0x144a6b)

==3248430==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0
SUMMARY: AddressSanitizer: odr-violation: global 'config_str_yes' at session-config.c:56:20
==3248430==ABORTING

The linker does not warn.

No data to display

Also available in: Atom PDF