[asterisk-bugs] [JIRA] (ASTERISK-28622) Differences in gcc options cause the undefined sanitizer to fail in pjproject when using dev-mode
George Joseph (JIRA)
noreply at issues.asterisk.org
Tue Nov 19 10:59:31 CST 2019
George Joseph created ASTERISK-28622:
----------------------------------------
Summary: Differences in gcc options cause the undefined sanitizer to fail in pjproject when using dev-mode
Key: ASTERISK-28622
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28622
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Core/BuildSystem
Affects Versions: 16.6.1, 13.29.1, 17.0.0
Environment: Gcc 9.2.1
Reporter: George Joseph
Severity: Minor
When using dev-mode and the Undefined sanitizer, pjproject fails to link
the pjsua app and spits out thousands of errors in the libraries. When using the Undefined sanitizer _without_ dev-mode, it works fine. This may be due to the different options passed to the pjproject Makefile. For reference here are 2 examples of the command lines. We should probably do an audit on the options anyway, many of the options get passed to gcc multiple times.
With dev-mode:
{noformat}
gcc -c -Wall -DPJ_AUTOCONF=1 -pthread -pipe -g3 -fno-omit-frame-pointer -fsanitize=undefined
-O3 -fno-partial-inlining -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1
-fPIC -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-unused-function -Wno-strict-aliasing -pthread -pipe -g3 -fno-omit-frame-pointer -fsanitize=undefined
-O3 -fno-partial-inlining
-fPIC -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-unused-function -Wno-strict-aliasing -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../../pjmedia/include \
-o output/pjsua-lib-x86_64-unknown-linux-gnu/pjsua_im.o \
../src/pjsua-lib/pjsua_im.c
{noformat}
Without dev-mode
{noformat}
gcc -c -Wall -DPJ_AUTOCONF=1
-fPIC -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-unused-function -Wno-strict-aliasing -pthread -pipe -g3 -fno-omit-frame-pointer -fsanitize=undefined
-O3 -fno-partial-inlining -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -DPJ_IS_BIG_ENDIAN=0 -DPJ_IS_LITTLE_ENDIAN=1
-fPIC -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-unused-function -Wno-strict-aliasing -pthread -pipe -g3 -fno-omit-frame-pointer -fsanitize=undefined
-O3 -fno-partial-inlining -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2
-fPIC -Wno-unused-but-set-variable -Wno-unused-variable -Wno-unused-label -Wno-unused-function -Wno-strict-aliasing -I../include -I../../pjlib/include -I../../pjlib-util/include -I../../pjnath/include -I../../pjmedia/include \
-o output/pjsua-lib-x86_64-unknown-linux-gnu/pjsua_im.o \
../src/pjsua-lib/pjsua_im.c
{noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list