TDengine icon indicating copy to clipboard operation
TDengine copied to clipboard

Fix version conflict #25920

Open xunzhimeng opened this issue 1 year ago • 3 comments

As I use ctp library with taos library, symbol conflit and I got an error when connect to taos server.

xunzhimeng avatar May 24 '24 02:05 xunzhimeng

@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

tomchon avatar May 27 '24 12:05 tomchon

@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?

xunzhimeng avatar May 27 '24 14:05 xunzhimeng

CLA assistant check
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.

CLAassistant avatar Jul 27 '24 07:07 CLAassistant

通过将 version 重命名为 td_version 解决问题。您的修改,asan 有几率报告异常。 见 https://github.com/taosdata/TDengine/pull/28634

guanshengliang avatar Nov 05 '24 05:11 guanshengliang