TDengine
TDengine copied to clipboard
Fix version conflict #25920
As I use ctp library with taos library, symbol conflit and I got an error when connect to taos server.
@xunzhimeng some testcase has errors: [1m[31m==583==ERROR: AddressSanitizer: odr-violation (0x5595561fd4a0): [1m[0m [1] size=64 'buildinfo' /home/TDinternal/community/source/util/src/version.c:5:6 [2] size=64 'buildinfo' /home/TDinternal/community/source/util/src/version.c:5:6 These globals were registered at these points: [1]: #0 0x7f797183cf40 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341 #1 0x5595561a44b4 in __libc_csu_init (/home/TDinternal/debug/build/bin/taos+0x6c4b4)
[2]: #0 0x7f797183cf40 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341 #1 0x7f79721dffe1 in call_init elf/dl-init.c:72
==583==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 SUMMARY: AddressSanitizer: odr-violation: global 'buildinfo' at /home/TDinternal/community/source/util/src/version.c:5:6 ==583==ABORTING
@xunzhimeng some testcase has errors: [1m�[31m==583==ERROR: AddressSanitizer: odr-violation (0x5595561fd4a0): �[1m�[0m [1] size=64 'buildinfo' /home/TDinternal/community/source/util/src/version.c:5:6 [2] size=64 'buildinfo' /home/TDinternal/community/source/util/src/version.c:5:6 These globals were registered at these points: [1]: #0 0x7f797183cf40 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341 #1 0x5595561a44b4 in __libc_csu_init (/home/TDinternal/debug/build/bin/taos+0x6c4b4)
[2]: #0 0x7f797183cf40 in __asan_register_globals ../../../../src/libsanitizer/asan/asan_globals.cpp:341 #1 0x7f79721dffe1 in call_init elf/dl-init.c:72
==583==HINT: if you don't care about these errors you may set ASAN_OPTIONS=detect_odr_violation=0 SUMMARY: AddressSanitizer: odr-violation: global 'buildinfo' at /home/TDinternal/community/source/util/src/version.c:5:6 ==583==ABORTING
sorry, I can not see the detail about the test, I have check 'buildinfo' in soure/util/src/version.c.in, there‘s no change with 'buildinfo', so can you debug it yourself?
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 14 committers have signed the CLA.
:white_check_mark: hjxilinx
:x: gccgdb1234
:x: wangmm0220
:x: DuanKuanJun
:x: wangjiaming0909
:x: dapan1121
:x: hzcheng
:x: xiaopingcs
:x: yihaoDeng
:x: LiShunGang
:x: zhengqin.song
:x: xunzhimeng
:x: cadem
:x: kailixu
zhengqin.song seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.
通过将 version 重命名为 td_version 解决问题。您的修改,asan 有几率报告异常。 见 https://github.com/taosdata/TDengine/pull/28634