Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix](Exception) throw exception in defer may result std::terminate #38935

Merged
merged 1 commit into from
Aug 7, 2024

Conversation

eldenmoon
Copy link
Member

@eldenmoon eldenmoon commented Aug 6, 2024

1  __pthread_kill_internal (signo=6, threadid=140314099000896) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140314099000896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007fa1e2e8e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007fa1e2e747f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055f77d0e71ea in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#6  0x000055f77d0e5956 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#7  0x000055f77d0e59c1 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#8  0x000055f76ffc5fbe in __clang_call_terminate ()
#9  0x000055f77667ef44 in doris::Defer<doris::vectorized::FunctionVariantElement::get_element_column(doris::vectorized::ColumnObject const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn> const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn>*)::{lambda()#1}>::~Defer() (this=0x7f9d6c06a900) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/util/defer_op.h:37

@doris-robot
Copy link

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@eldenmoon
Copy link
Member Author

run buildall

Copy link
Contributor

github-actions bot commented Aug 6, 2024

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link

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

------ Round 1 ----------------------------------
q1	17605	4128	4174	4128
q2	2025	198	202	198
q3	10470	1297	1294	1294
q4	10158	781	1013	781
q5	7662	2952	2973	2952
q6	220	136	135	135
q7	1054	614	614	614
q8	9437	1884	1953	1884
q9	8526	6617	6578	6578
q10	8741	3843	3853	3843
q11	431	250	255	250
q12	422	228	223	223
q13	17762	2965	2931	2931
q14	277	240	249	240
q15	523	480	491	480
q16	542	400	389	389
q17	972	935	921	921
q18	8036	7236	7288	7236
q19	1660	1222	1211	1211
q20	558	328	344	328
q21	5284	4714	4759	4714
q22	354	284	282	282
Total cold run time: 112719 ms
Total hot run time: 41612 ms

----- Round 2, with runtime_filter_mode=off -----
q1	4078	4026	3994	3994
q2	330	230	223	223
q3	2977	3022	3124	3022
q4	2011	2045	1985	1985
q5	5625	5533	5463	5463
q6	218	132	130	130
q7	2139	1803	1848	1803
q8	3329	3362	3359	3359
q9	8707	8661	8853	8661
q10	3943	4032	3903	3903
q11	563	465	481	465
q12	766	614	573	573
q13	16435	3134	3128	3128
q14	305	297	288	288
q15	532	480	478	478
q16	451	416	410	410
q17	1783	1770	1746	1746
q18	8200	7933	7855	7855
q19	1743	1749	1707	1707
q20	2086	1844	1826	1826
q21	5823	5574	5437	5437
q22	557	471	452	452
Total cold run time: 72601 ms
Total hot run time: 56908 ms

@doris-robot
Copy link

TPC-DS: Total hot run time: 170087 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 e35b5269c04c5d735ed2bb626e41e40771e17ffb, data reload: false

query1	913	378	371	371
query2	6475	1801	1698	1698
query3	6651	216	226	216
query4	19412	17443	17339	17339
query5	3670	528	530	528
query6	268	181	171	171
query7	4602	299	295	295
query8	270	212	202	202
query9	8515	2408	2375	2375
query10	431	305	267	267
query11	10444	9978	10167	9978
query12	120	89	90	89
query13	1640	367	358	358
query14	9941	6940	7245	6940
query15	209	162	161	161
query16	6930	457	471	457
query17	922	561	561	561
query18	1926	286	278	278
query19	199	139	144	139
query20	92	85	86	85
query21	201	105	101	101
query22	4263	4046	4033	4033
query23	33845	33868	33638	33638
query24	9422	3143	3179	3143
query25	652	422	430	422
query26	1156	155	153	153
query27	3329	291	293	291
query28	7337	2031	2025	2025
query29	998	435	430	430
query30	240	171	159	159
query31	954	785	802	785
query32	112	61	60	60
query33	726	330	361	330
query34	973	487	511	487
query35	854	770	735	735
query36	985	876	872	872
query37	173	78	80	78
query38	2906	2750	2776	2750
query39	844	801	813	801
query40	283	113	114	113
query41	46	44	44	44
query42	126	100	95	95
query43	484	423	425	423
query44	1181	724	733	724
query45	211	178	178	178
query46	1095	813	825	813
query47	1793	1701	1722	1701
query48	368	292	289	289
query49	893	421	444	421
query50	911	436	441	436
query51	6820	6705	6668	6668
query52	106	90	90	90
query53	265	182	178	178
query54	649	465	465	465
query55	79	72	72	72
query56	280	249	251	249
query57	1114	1036	1045	1036
query58	283	287	263	263
query59	2601	2406	2217	2217
query60	308	269	281	269
query61	100	97	91	91
query62	879	656	667	656
query63	213	182	180	180
query64	4779	1891	1885	1885
query65	3173	3107	3091	3091
query66	990	340	336	336
query67	15172	14806	14845	14806
query68	4321	568	579	568
query69	433	302	300	300
query70	1113	1086	1085	1085
query71	375	286	281	281
query72	7087	2659	2541	2541
query73	757	336	330	330
query74	5985	5694	5662	5662
query75	3375	2729	2732	2729
query76	2151	1262	1276	1262
query77	467	313	309	309
query78	9423	9027	8930	8930
query79	1187	539	532	532
query80	1502	510	503	503
query81	550	228	231	228
query82	1212	136	132	132
query83	276	175	173	173
query84	265	82	79	79
query85	1176	329	307	307
query86	415	305	294	294
query87	3319	3111	3128	3111
query88	2919	2437	2469	2437
query89	399	295	305	295
query90	1769	204	206	204
query91	136	114	114	114
query92	63	50	55	50
query93	1292	622	624	622
query94	807	314	316	314
query95	399	283	294	283
query96	613	283	288	283
query97	3254	3058	3074	3058
query98	222	207	199	199
query99	1625	1282	1303	1282
Total cold run time: 257689 ms
Total hot run time: 170087 ms

@doris-robot
Copy link

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

query1	0.05	0.04	0.04
query2	0.07	0.04	0.04
query3	0.22	0.05	0.05
query4	1.68	0.06	0.07
query5	0.48	0.47	0.48
query6	1.13	0.72	0.71
query7	0.02	0.02	0.01
query8	0.05	0.04	0.04
query9	0.57	0.52	0.52
query10	0.59	0.57	0.57
query11	0.16	0.12	0.12
query12	0.15	0.13	0.13
query13	0.60	0.61	0.60
query14	0.77	0.80	0.80
query15	0.92	0.86	0.86
query16	0.35	0.36	0.35
query17	0.97	1.02	1.01
query18	0.21	0.21	0.21
query19	1.85	1.77	1.75
query20	0.01	0.00	0.01
query21	15.38	0.74	0.65
query22	3.80	6.98	2.05
query23	18.18	1.33	1.24
query24	2.26	0.22	0.22
query25	0.17	0.08	0.08
query26	0.32	0.22	0.21
query27	0.46	0.24	0.23
query28	13.16	0.99	0.97
query29	12.64	3.31	3.31
query30	0.25	0.06	0.06
query31	2.88	0.42	0.41
query32	3.22	0.48	0.48
query33	2.95	2.98	2.95
query34	15.43	4.26	4.26
query35	4.29	4.30	4.30
query36	0.67	0.47	0.48
query37	0.20	0.17	0.17
query38	0.17	0.15	0.16
query39	0.04	0.03	0.04
query40	0.16	0.14	0.14
query41	0.10	0.05	0.05
query42	0.05	0.05	0.04
query43	0.05	0.04	0.04
Total cold run time: 107.68 s
Total hot run time: 30.85 s

Copy link
Contributor

@xiaokang xiaokang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@xiaokang
Copy link
Contributor

xiaokang commented Aug 6, 2024

@eldenmoon pls add testcase

Copy link
Contributor

github-actions bot commented Aug 6, 2024

PR approved by at least one committer and no changes requested.

@github-actions github-actions bot added the approved Indicates a PR has been approved by one committer. label Aug 6, 2024
Copy link
Contributor

github-actions bot commented Aug 6, 2024

PR approved by anyone and no changes requested.

Copy link
Contributor

@xinyiZzz xinyiZzz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eldenmoon eldenmoon merged commit 433cf61 into apache:master Aug 7, 2024
30 of 32 checks passed
@eldenmoon eldenmoon deleted the fix-exception-in-des branch August 7, 2024 03:12
eldenmoon added a commit to eldenmoon/incubator-doris that referenced this pull request Aug 7, 2024
…pache#38935)

```
1  __pthread_kill_internal (signo=6, threadid=140314099000896) at ./nptl/pthread_kill.c:78
apache#2  __GI___pthread_kill (threadid=140314099000896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
apache#3  0x00007fa1e2e8e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
apache#4  0x00007fa1e2e747f3 in __GI_abort () at ./stdlib/abort.c:79
apache#5  0x000055f77d0e71ea in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
apache#6  0x000055f77d0e5956 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
apache#7  0x000055f77d0e59c1 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
apache#8  0x000055f76ffc5fbe in __clang_call_terminate ()
apache#9  0x000055f77667ef44 in doris::Defer<doris::vectorized::FunctionVariantElement::get_element_column(doris::vectorized::ColumnObject const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn> const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn>*)::{lambda()apache#1}>::~Defer() (this=0x7f9d6c06a900) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/util/defer_op.h:37
```
dataroaring pushed a commit that referenced this pull request Aug 11, 2024
…38935)

```
1  __pthread_kill_internal (signo=6, threadid=140314099000896) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140314099000896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007fa1e2e8e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007fa1e2e747f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055f77d0e71ea in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#6  0x000055f77d0e5956 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#7  0x000055f77d0e59c1 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#8  0x000055f76ffc5fbe in __clang_call_terminate ()
#9  0x000055f77667ef44 in doris::Defer<doris::vectorized::FunctionVariantElement::get_element_column(doris::vectorized::ColumnObject const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn> const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn>*)::{lambda()#1}>::~Defer() (this=0x7f9d6c06a900) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/util/defer_op.h:37
```
wyxxxcat pushed a commit to wyxxxcat/doris that referenced this pull request Aug 14, 2024
…pache#38935)

```
1  __pthread_kill_internal (signo=6, threadid=140314099000896) at ./nptl/pthread_kill.c:78
apache#2  __GI___pthread_kill (threadid=140314099000896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
apache#3  0x00007fa1e2e8e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
apache#4  0x00007fa1e2e747f3 in __GI_abort () at ./stdlib/abort.c:79
apache#5  0x000055f77d0e71ea in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
apache#6  0x000055f77d0e5956 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
apache#7  0x000055f77d0e59c1 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
apache#8  0x000055f76ffc5fbe in __clang_call_terminate ()
apache#9  0x000055f77667ef44 in doris::Defer<doris::vectorized::FunctionVariantElement::get_element_column(doris::vectorized::ColumnObject const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn> const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn>*)::{lambda()#1}>::~Defer() (this=0x7f9d6c06a900) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/util/defer_op.h:37
```
dataroaring pushed a commit that referenced this pull request Aug 16, 2024
…38935)

```
1  __pthread_kill_internal (signo=6, threadid=140314099000896) at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140314099000896, signo=signo@entry=6) at ./nptl/pthread_kill.c:89
#3  0x00007fa1e2e8e476 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
#4  0x00007fa1e2e747f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x000055f77d0e71ea in __gnu_cxx::__verbose_terminate_handler () at ../../../../libstdc++-v3/libsupc++/vterminate.cc:95
#6  0x000055f77d0e5956 in __cxxabiv1::__terminate (handler=<optimized out>) at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:48
#7  0x000055f77d0e59c1 in std::terminate () at ../../../../libstdc++-v3/libsupc++/eh_terminate.cc:58
#8  0x000055f76ffc5fbe in __clang_call_terminate ()
#9  0x000055f77667ef44 in doris::Defer<doris::vectorized::FunctionVariantElement::get_element_column(doris::vectorized::ColumnObject const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn> const&, COW<doris::vectorized::IColumn>::immutable_ptr<doris::vectorized::IColumn>*)::{lambda()#1}>::~Defer() (this=0x7f9d6c06a900) at /home/zcp/repo_center/doris_branch-3.0/doris/be/src/util/defer_op.h:37
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by one committer. dev/2.1.6-merged dev/3.0.2-merged reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants