Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.5.25, 10.5
-
None
-
Fedora 31, x86_64, clang-9, UBAN, CMAKE_BUILD_TYPE=Debug
Description
10.5-605555fc31784302a54d398d9503ca1e9e4bdec9 |
$ cmake -DWITH_UBSAN=ON .
|
-- Running cmake version 3.17.3
|
-- MariaDB 10.5.4
|
-- Performing Test have_C__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN
|
-- Performing Test have_C__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN - Success
|
-- Performing Test have_CXX__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN
|
-- Performing Test have_CXX__fsanitize_undefined__fno_sanitize_alignment__U_FORTIFY_SOURCE__DWITH_UBSAN - Success
|
-- Wsrep-lib version: 1.0.0
|
...
|
[ 82%] Building CXX object storage/perfschema/unittest/CMakeFiles/pfs_user-oom-t.dir/pfs_user-oom-t.cc.o
|
[ 82%] Linking CXX executable pfs_instr-oom-t
|
/usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o):(.data+0x63b8): undefined reference to `typeinfo for THD'
|
/usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o):(.data+0x6428): undefined reference to `typeinfo for THD'
|
/usr/bin/ld: ../libperfschema.a(pfs_instr.cc.o):(.data+0x6498): undefined reference to `typeinfo for THD'
|
$ clang++-9 --version
|
clang version 9.0.1 (Fedora 9.0.1-2.fc31)
|
Attachments
Issue Links
- blocks
-
MDBF-741 Remove the gcc UBSAN builder to use the clang based UBSAN
-
- In Testing
-
- relates to
-
MDEV-36510 InnoDB fails to compile with clang++-20
-
- Closed
-
-- The C compiler identification is Clang 18.1.6
-- The CXX compiler identification is Clang 18.1.6
$ b --target pfs_instr-oom-t
[185/321] [BISON][gen_mariadb_cc_hh] Building parser with bison 3.8.2
/home/dan/repos/build-mariadb-server-10.11-debug/sql/yy_mariadb.cc:35793: warning: suspicious sequence in the output: b4_bin [-Wother]
[189/321] [BISON][gen_oracle_cc_hh] Building parser with bison 3.8.2
/home/dan/repos/build-mariadb-server-10.11-debug/sql/yy_oracle.cc:35054: warning: suspicious sequence in the output: b4_bin [-Wother]
[321/321] Linking CXX executable storage/perfschema/unittest/pfs_instr-oom-t
FAILED: storage/perfschema/unittest/pfs_instr-oom-t
: && /usr/bin/clang++ -msse4.2 -fPIC -g -U_FORTIFY_SOURCE -fsanitize=address -fPIC -fsanitize=undefined -fno-sanitize=alignment -U_FORTIFY_SOURCE -DWITH_UBSAN -DENABLED_DEBUG_SYNC -ggdb3 -DSAFE_MUTEX -Wall -Wdeclaration-after-statement -Wenum-compare -Wenum-conversion -Wextra -Wformat-security -Winconsistent-missing-override -Wmissing-braces -Wno-init-self -Wno-null-conversion -Wno-unused-parameter -Wno-unused-private-field -Wnon-virtual-dtor -Woverloaded-virtual -Wsuggest-override -Wvla -Wwrite-strings -Werror -fno-operator-names storage/perfschema/unittest/CMakeFiles/pfs_instr-oom-t.dir/pfs_instr-oom-t.cc.o -o storage/perfschema/unittest/pfs_instr-oom-t unittest/mytap/libmytap.a storage/perfschema/libperfschema.a mysys/libmysys.a storage/perfschema/unittest/libpfs_server_stubs.a dbug/libdbug.a strings/libstrings.a mysys/libmysys.a dbug/libdbug.a strings/libstrings.a zlib/libzlib.a -lm -ldl && :
/usr/bin/ld: storage/perfschema/libperfschema.a(pfs_instr.cc.o):(.data+0x6358): undefined reference to `typeinfo for THD'
/usr/bin/ld: storage/perfschema/libperfschema.a(pfs_instr.cc.o):(.data+0x63c8): undefined reference to `typeinfo for THD'
/usr/bin/ld: storage/perfschema/libperfschema.a(pfs_instr.cc.o):(.data+0x6438): undefined reference to `typeinfo for THD'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
3 causes traced to pfs_instr.cc ->aggregate_status_stats(&thd->status_var)