Skip to content

Conversation

@github-actions
Copy link
Contributor

Cherry-picked from #53018

…rflow error (#53018)

### What problem does this PR solve?
Problem Summary:

```
==2403213==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x506001097220 at pc 0x55837edd7fe9 bp 0x7f7efe2dc830 sp 0x7f7efe2dbff8
READ of size 63 at 0x506001097220 thread T1262 (brpc_light)
    #0 0x55837edd7fe8 in strlen (/mnt/disk8/zhangsida/doris/output/be/lib/doris_be+0x2c8d7fe8) (BuildId: 5acbe48773972a88)
    #1 0x5583bd3ff969 in fmt::v7::detail::buffer_appender<char> fmt::v7::detail::write<char, fmt::v7::detail::buffer_appender<char>>(fmt::v7::detail::buffer_appender<char>, char const*) (/mnt/disk8/zhangsida/doris/output/be/lib/doris_be+0x6aeff969) (BuildId: 5acbe48773972a88)
    #2 0x5583bd41640e in char const* fmt::v7::detail::parse_replacement_field<char, fmt::v7::detail::format_handler<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>>&>(char const*, char const*, fmt::v7::detail::format_handler<fmt::v7::detail::buffer_appender<char>, char, fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<char>, char>>&) (/mnt/disk8/zhangsida/doris/output/be/lib/doris_be+0x6af1640e) (BuildId: 5acbe48773972a88)
    #3 0x5583bd416c7f in void fmt::v7::detail::vformat_to<char>(fmt::v7::detail::buffer<char>&, fmt::v7::basic_string_view<char>, fmt::v7::basic_format_args<fmt::v7::basic_format_context<fmt::v7::detail::buffer_appender<fmt::v7::type_identity<char>::type>, fmt::v7::type_identity<char>::type>>, fmt::v7::detail::locale_ref) (/mnt/disk8/zhangsida/doris/output/be/lib/doris_be+0x6af16c7f) (BuildId: 5acbe48773972a88)
    #4 0x5583bd3f74aa in fmt::v7::detail::vformat[abi:cxx11](fmt::v7::basic_string_view<char>, fmt::v7::format_args) (/mnt/disk8/zhangsida/doris/output/be/lib/doris_be+0x6aef74aa) (BuildId: 5acbe48773972a88)
    #5 0x5583a6b4d3bb in std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> fmt::v7::format<char [45], char const*&, char>(char const (&) [45], char const*&) /mnt/disk8/zhangsida/doris/thirdparty/installed/include/fmt/core.h:2076:10
    #6 0x5583a6b4d3bb in doris::vectorized::BitmapFromBase64::vector(doris::vectorized::PODArray<unsigned char, 4096ul, doris::Allocator<false, false, false, doris::NoTrackingDefaultMemoryAllocator>, 16ul, 15ul> const&, doris::vectorized::PODArray<unsigned int, 4096ul, doris::Allocator<false, false, false, doris::NoTrackingDefaultMemoryAllocator>, 16ul, 15ul> const&, std::vector<doris::BitmapValue, std::allocator<doris::BitmapValue>>&, doris::vectorized::PODArray<unsigned char, 4096ul, doris::Allocator<false, false, false, doris::NoTrackingDefaultMemoryAllocator>, 16ul, 15ul>&, unsigned long) /mnt/disk8/zhangsida/doris/be/src/vec/functions/function_bitmap.cpp:310:29
    #7 0x5583a6b4b93b in doris::vectorized::FunctionBitmapAlwaysNull<doris::vectorized::BitmapFromBase64>::execute_impl(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned int, std::allocator<unsigned int>> const&, unsigned int, unsigned long) const /mnt/disk8/zhangsida/doris/be/src/vec/functions/function_bitmap.cpp:381:13
    #8 0x5583a02062ef in doris::vectorized::DefaultExecutable::execute_impl(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned int, std::allocator<unsigned int>> const&, unsigned int, unsigned long) const /mnt/disk8/zhangsida/doris/be/src/vec/functions/function.h:459:26
    #9 0x5583a49d77e3 in doris::vectorized::PreparedFunctionImpl::_execute_skipped_constant_deal(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned int, std::allocator<unsigned int>> const&, unsigned int, unsigned long, bool) const /mnt/disk8/zhangsida/doris/be/src/vec/functions/function.cpp
    #10 0x5583a49d0bf8 in doris::vectorized::PreparedFunctionImpl::default_implementation_for_constant_arguments(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned int, std::allocator<unsigned int>> const&, unsigned int, unsigned long, bool, bool*) const /mnt/disk8/zhangsida/doris/be/src/vec/functions/function.cpp:168:5
    #11 0x5583a49d3324 in doris::vectorized::PreparedFunctionImpl::execute_without_low_cardinality_columns(doris::FunctionContext*, doris::vectorized::Block&, std::vector<unsigned int, std::allocator<unsigned int>> const&, unsigned int, unsigned long, bool) const /mnt/disk8/zhangsida/doris/be/src/vec/functions/function.cpp:237:5
```
@github-actions github-actions bot requested a review from morrySnow as a code owner July 10, 2025 07:08
@morrySnow morrySnow closed this Jul 10, 2025
@morrySnow morrySnow reopened this Jul 10, 2025
@morrySnow
Copy link
Contributor

run buildall

@doris-robot
Copy link

TPC-H: Total hot run time: 40098 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpch-tools
Tpch sf100 test result on commit 66b492d7805a5b2cea901f6334e9c749fe74972c, data reload: false

------ Round 1 ----------------------------------
q1	18215	6927	6732	6732
q2	2084	252	200	200
q3	11734	1160	1263	1160
q4	10779	746	776	746
q5	7976	2929	2856	2856
q6	218	141	136	136
q7	1016	633	630	630
q8	9579	1981	2054	1981
q9	6786	6426	6354	6354
q10	6996	2278	2249	2249
q11	471	261	265	261
q12	397	214	208	208
q13	17809	2983	3002	2983
q14	242	210	215	210
q15	510	478	462	462
q16	472	372	384	372
q17	988	588	558	558
q18	7226	6804	6631	6631
q19	1337	1038	1109	1038
q20	480	205	203	203
q21	3982	3190	3146	3146
q22	1079	1003	982	982
Total cold run time: 110376 ms
Total hot run time: 40098 ms

----- Round 2, with runtime_filter_mode=off -----
q1	6626	6626	6660	6626
q2	324	242	232	232
q3	3194	2944	2985	2944
q4	2060	1779	1769	1769
q5	5730	5674	5722	5674
q6	205	127	129	127
q7	2190	1775	1783	1775
q8	3347	3499	3470	3470
q9	8908	8793	8826	8793
q10	3598	3517	3524	3517
q11	572	490	492	490
q12	829	615	605	605
q13	4891	3133	3134	3133
q14	292	266	274	266
q15	510	468	471	468
q16	477	425	425	425
q17	1848	1605	1623	1605
q18	8233	7630	7611	7611
q19	1695	1454	1566	1454
q20	2105	1880	1867	1867
q21	5253	4788	4761	4761
q22	1062	971	978	971
Total cold run time: 63949 ms
Total hot run time: 58583 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 191366 ms
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/tpcds-tools
TPC-DS sf100 test result on commit 66b492d7805a5b2cea901f6334e9c749fe74972c, data reload: false

query1	963	370	364	364
query2	6510	1961	1947	1947
query3	6711	215	230	215
query4	34261	24118	24008	24008
query5	4291	459	438	438
query6	271	205	170	170
query7	4639	318	318	318
query8	297	239	243	239
query9	9746	2602	2582	2582
query10	486	278	259	259
query11	18185	15222	15252	15222
query12	158	106	101	101
query13	1654	427	418	418
query14	9505	7399	7305	7305
query15	241	175	183	175
query16	8076	511	471	471
query17	1632	590	575	575
query18	2126	323	315	315
query19	236	167	153	153
query20	118	107	111	107
query21	208	112	106	106
query22	4472	4312	4230	4230
query23	34748	33510	33848	33510
query24	11734	2839	2868	2839
query25	717	421	412	412
query26	1854	176	173	173
query27	2946	354	341	341
query28	7509	2108	2129	2108
query29	1067	460	453	453
query30	330	160	154	154
query31	1019	776	800	776
query32	100	60	63	60
query33	807	324	308	308
query34	930	513	526	513
query35	841	736	724	724
query36	1091	983	942	942
query37	184	74	77	74
query38	3914	3839	3888	3839
query39	1659	1487	1431	1431
query40	295	108	104	104
query41	56	51	52	51
query42	117	104	104	104
query43	518	491	472	472
query44	1306	800	796	796
query45	187	172	175	172
query46	1155	720	727	720
query47	1984	1806	1841	1806
query48	444	356	348	348
query49	1319	419	403	403
query50	810	411	421	411
query51	7300	7199	7118	7118
query52	106	95	96	95
query53	261	186	190	186
query54	1350	485	481	481
query55	82	83	79	79
query56	278	268	275	268
query57	1296	1162	1150	1150
query58	245	222	247	222
query59	3075	2978	2870	2870
query60	292	264	258	258
query61	117	117	131	117
query62	878	672	687	672
query63	222	191	199	191
query64	5282	650	648	648
query65	3255	3210	3213	3210
query66	1460	306	340	306
query67	16118	15439	15421	15421
query68	4495	580	551	551
query69	439	270	265	265
query70	1183	1118	1121	1118
query71	394	265	259	259
query72	6719	4090	3979	3979
query73	762	349	358	349
query74	10278	9071	8908	8908
query75	3428	2643	2648	2643
query76	2658	1114	1026	1026
query77	433	275	277	275
query78	10455	9609	9528	9528
query79	1108	599	602	599
query80	797	448	439	439
query81	523	212	222	212
query82	1285	96	91	91
query83	216	151	149	149
query84	232	93	83	83
query85	1128	340	308	308
query86	316	290	299	290
query87	4353	4345	4229	4229
query88	3290	2406	2367	2367
query89	408	291	290	290
query90	2077	192	191	191
query91	151	111	106	106
query92	65	52	52	52
query93	1051	552	547	547
query94	852	309	286	286
query95	368	268	271	268
query96	612	280	286	280
query97	3331	3115	3137	3115
query98	213	205	204	204
query99	1509	1328	1305	1305
Total cold run time: 301173 ms
Total hot run time: 191366 ms

@doris-robot
Copy link

ClickBench: Total hot run time: 29.69 s
machine: 'aliyun_ecs.c7a.8xlarge_32C64G'
scripts: https://github.com/apache/doris/tree/master/tools/clickbench-tools
ClickBench test result on commit 66b492d7805a5b2cea901f6334e9c749fe74972c, data reload: false

query1	0.03	0.04	0.04
query2	0.06	0.03	0.03
query3	0.23	0.06	0.07
query4	1.62	0.10	0.10
query5	0.51	0.52	0.54
query6	1.12	0.72	0.72
query7	0.02	0.02	0.01
query8	0.04	0.04	0.06
query9	0.58	0.49	0.49
query10	0.55	0.54	0.55
query11	0.15	0.11	0.11
query12	0.14	0.11	0.11
query13	0.61	0.59	0.58
query14	0.77	0.79	0.82
query15	0.84	0.85	0.83
query16	0.37	0.40	0.39
query17	1.05	1.04	1.05
query18	0.24	0.22	0.22
query19	1.94	1.81	1.82
query20	0.01	0.01	0.01
query21	15.43	0.58	0.57
query22	2.67	2.12	1.21
query23	16.89	0.91	0.82
query24	3.49	1.07	1.98
query25	0.23	0.06	0.08
query26	0.60	0.12	0.14
query27	0.04	0.04	0.04
query28	9.21	0.52	0.50
query29	12.58	3.29	3.25
query30	0.25	0.06	0.06
query31	2.86	0.38	0.39
query32	3.22	0.46	0.45
query33	2.95	2.98	3.09
query34	16.94	4.51	4.50
query35	4.47	4.48	4.46
query36	0.68	0.48	0.50
query37	0.08	0.06	0.06
query38	0.05	0.03	0.03
query39	0.04	0.02	0.02
query40	0.16	0.12	0.13
query41	0.08	0.02	0.03
query42	0.03	0.02	0.03
query43	0.04	0.03	0.03
Total cold run time: 103.87 s
Total hot run time: 29.69 s

@doris-robot
Copy link

BE UT Coverage Report

Increment line coverage 0.00% (0/2) 🎉

Increment coverage report
Complete coverage report

Category Coverage
Function Coverage 45.14% (12479/27645)
Line Coverage 36.02% (110637/307196)
Region Coverage 35.20% (57378/163008)
Branch Coverage 32.27% (31108/96404)

@morrySnow morrySnow merged commit 7087986 into branch-3.1 Jul 11, 2025
20 of 22 checks passed
@github-actions github-actions bot deleted the auto-pick-53018-branch-3.1 branch July 11, 2025 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants