Fang-Yu Rao created IMPALA-15246:
------------------------------------
Summary: Impala daemon crashed when executing a query in
max-nesting-depth.test
Key: IMPALA-15246
URL: https://issues.apache.org/jira/browse/IMPALA-15246
Project: IMPALA
Issue Type: Bug
Reporter: Fang-Yu Rao
Assignee: Quanlong Huang
Attachments: 83f4a7b0-bb14-480a-f07688a4-22d14768.dmp_dumped,
impalad_e2479f78fbd6a3bc.gz
We found in a Jenkins run that Impala daemon could crash when executing a test
case in
https://github.com/apache/impala/blob/664f455/testdata/workloads/functional-query/queries/QueryTest/max-nesting-depth.test#L37-L61.
{code}
====
---- QUERY
# Test relative ref executed with deeply nested subplans.
# EXPAND_COMPLEX_TYPES defaults to true; set it to false so that 'select *'
returns the
# deeply nested scalar item instead of expanding the complex-typed columns.
set expand_complex_types=false;
select * from $DATABASE.int_array_tbl.f t0,
t0.item t1, t1.item t2, t2.item t3, t3.item t4, t4.item t5,
t5.item t6, t6.item t7, t7.item t8, t8.item t9, t9.item t10,
t10.item t11, t11.item t12, t12.item t13, t13.item t14, t14.item t15,
t15.item t16, t16.item t17, t17.item t18, t18.item t19, t19.item t20,
t20.item t21, t21.item t22, t22.item t23, t23.item t24, t24.item t25,
t25.item t26, t26.item t27, t27.item t28, t28.item t29, t29.item t30,
t30.item t31, t31.item t32, t32.item t33, t33.item t34, t34.item t35,
t35.item t36, t36.item t37, t37.item t38, t38.item t39, t39.item t40,
t40.item t41, t41.item t42, t42.item t43, t43.item t44, t44.item t45,
t45.item t46, t46.item t47, t47.item t48, t48.item t49, t49.item t50,
t50.item t51, t51.item t52, t52.item t53, t53.item t54, t54.item t55,
t55.item t56, t56.item t57, t57.item t58, t58.item t59, t59.item t60,
t60.item t61, t61.item t62, t62.item t63, t63.item t64, t64.item t65,
t65.item t66, t66.item t67, t67.item t68, t68.item t69, t69.item t70,
t70.item t71, t71.item t72, t72.item t73, t73.item t74, t74.item t75,
t75.item t76, t76.item t77, t77.item t78, t78.item t79, t79.item t80,
t80.item t81, t81.item t82, t82.item t83, t83.item t84, t84.item t85,
t85.item t86, t86.item t87, t87.item t88, t88.item t89, t89.item t90,
t90.item t91, t91.item t92, t92.item t93, t93.item t94, t94.item t95,
t95.item t96, t96.item t97, t97.item t98
---- RESULTS
42
---- TYPES
int
====
{code}
The following is the stack trace of the crashed thread.
{code}
Thread 357 (crashed)
0 0xffff68110844
x0 = 0x0000000046570500 x1 = 0x000000012c2ca000
x2 = 0x0000000000000000 x3 = 0x0000fffee8f2d8a8
x4 = 0x0000000035c1b140 x5 = 0x0000000000000004
x6 = 0x0000000000001000 x7 = 0x646f725020686374
x8 = 0x0000fffee8f2d8c0 x9 = 0x0000000000000000
x10 = 0x0000000005879d00 x11 = 0x0000000005879d00
x12 = 0x2068637461422074 x13 = 0x64656375646f7250
x14 = 0x0000000000000013 x15 = 0x0000000000000006
x16 = 0x0000ffffaf3a2cc0 x17 = 0x0000ffffaf41f700
x18 = 0x00000000000007ec x19 = 0x0000fffee8f2d980
x20 = 0x0000000000000000 x21 = 0x0000000046570500
x22 = 0x00000003cb409560 x23 = 0x0000000000000000
x24 = 0x0000fffee8f2d990 x25 = 0x0000000000000000
x26 = 0x0000fffee8f2d980 x27 = 0x0000fffee8f2df70
x28 = 0x000000000582a000 fp = 0x0000fffee8f2d920
lr = 0x0000ffff68128c2c sp = 0x0000fffee8f2d7a0
pc = 0x0000ffff68110844
Found by: given as instruction pointer in context
1 0xffff68128c28
fp = 0x0000fffee8f2d930 lr = 0x00000000016b6078
sp = 0x0000fffee8f2d930 pc = 0x0000ffff68128c2c
Found by: previous frame's frame pointer
2 impalad!impala::KrpcDataStreamSender::SerializeBatch(impala::RowBatch*,
impala::OutboundRowBatch*, bool, int) [krpc-data-stream-sender.cc : 1360 + 0xc]
fp = 0x0000fffee8f2d9f0 lr = 0x00000000016baf74
sp = 0x0000fffee8f2d940 pc = 0x00000000016b6078
Found by: previous frame's frame pointer
3 0x3cb40955c
x19 = 0x0000fffee8f2ddf0 x20 = 0x0000fffee8f2db78
x21 = 0x0000000025fb5680 x22 = 0x0000000000000001
x23 = 0x00000001043f4d70 x24 = 0x000000003b9aca00
x25 = 0x00000000000051f5 x26 = 0x0000000002679e3a
fp = 0x00000001043f4c80 sp = 0x0000fffee8f2da00
pc = 0x00000003cb409560
Found by: call frame info
4 impalad!impala::RowBatch::Reset() [row-batch.cc : 272 + 0x0]
sp = 0x0000fffee8f2da60 pc = 0x00000000016582e8
Found by: stack scanning
5 0x3cb40955c
x19 = 0x0000fffee8f2dca0 fp = 0x00000003cb409440
sp = 0x0000fffee8f2da80 pc = 0x00000003cb409560
Found by: call frame info
6 impalad!ZSTD_compressBlock_doubleFast_extDict_generic
[zstd_compress_internal.h : 657 + 0x2]
sp = 0x0000fffee8f2dac0 pc = 0x0000000002679e3a
Found by: stack scanning
7 impalad!ZSTD_compressBlock_doubleFast_extDict_generic
[zstd_compress_internal.h : 657 + 0x2]
x19 = 0x00000003cb409440 x20 = 0x0000000025fb5680
x21 = 0x0000fffee8f2db40 x22 = 0x0000000001f5dd58
x23 = 0x000000011e634e60 x24 = 0x0000000000000000
x25 = 0x0000fffee8f2db20 x26 = 0x0000ffffaf41f73c
x27 = 0x0000000000000006 x28 = 0x000013150774f03a
fp = 0x00000000000051f5 sp = 0x0000fffee8f2db70
pc = 0x0000000002679e3a
Found by: call frame info
8 0x51f1
x19 = 0x0000000002679e3a x20 = 0x00000000016ad5b8
x21 = 0x0000000025622c80 x22 = 0x0000fffee8f2dce0
x23 = 0x0000fffee8f2dc38 x24 = 0x000013150774f03a
x25 = 0x000000000098979f x26 = 0x0000fffee8f2de00
x27 = 0x00000000057ea000 x28 = 0x000000003b9aca00
fp = 0x000000002540e000 sp = 0x0000fffee8f2dc20
pc = 0x00000000000051f5
Found by: call frame info
9
impalad!impala::FragmentInstanceState::UpdateState(impala::FragmentInstanceState::StateEvent)
[fragment-instance-state.cc : 613 + 0x0]
sp = 0x0000fffee8f2dc80 pc = 0x00000000016ad898
Found by: stack scanning
10 0xfffee8f2dcdc
x19 = 0x0000000025622c80 x20 = 0x000000004c3ccf58
x21 = 0x00000000000051f5 x22 = 0x0000000000000014
fp = 0x000000004c3ccf48 sp = 0x0000fffee8f2dcd0
pc = 0x0000fffee8f2dce0
Found by: call frame info
11 impalad!impala::FragmentInstanceState::ExecInternal()
[fragment-instance-state.cc : 518 + 0xc]
sp = 0x0000fffee8f2dd00 pc = 0x00000000016ae3a4
Found by: stack scanning
12 impalad!impala::FragmentInstanceState::Exec() [fragment-instance-state.cc :
116 + 0x8]
x19 = 0x000000004c3cce00 x20 = 0x0000fffee8f2df70
x21 = 0x0000fffee8f2e038 x22 = 0x00000000057e9000
x23 = 0x0000fffee8f2df90 x24 = 0x000000002540e280
x25 = 0x000000002540e400 x26 = 0x0000fffee8f2e080
x27 = 0x0000fffee8f2e050 x28 = 0x0000fffee8f2ed40
fp = 0x0000fffee8f2df10 sp = 0x0000fffee8f2df10
pc = 0x00000000016b00d4
Found by: call frame info
13 impalad!impala::QueryState::ExecFInstance(impala::FragmentInstanceState*)
[query-state.cc : 1025 + 0xc]
x19 = 0x0000fffee8f2e3b0 x20 = 0x000000004c3cce00
x21 = 0x0000000005829000 x22 = 0x000000013a5d2c00
x23 = 0x00000000057ee000 x24 = 0x0000fffee8f2e398
x25 = 0x0000fffee8f2e038 x26 = 0x0000fffee8f2e080
x27 = 0x0000fffee8f2e050 x28 = 0x0000fffee8f2ed40
fp = 0x0000fffee8f2dfd0 sp = 0x0000fffee8f2dfd0
pc = 0x000000000163ecc4
Found by: call frame info
14 impalad!impala::Thread::SuperviseThread(char const*,
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >
const&, boost::function<void ()> const&, impala::ThreadDebugInfo const*,
impala::Promise<long, (impala::PromiseMode)0>*) [thread.cc : 397 + 0x4]
x19 = 0x000000001aa01780 x20 = 0x000000001ded61c0
x21 = 0x000000001ded61c0 x22 = 0x0000000179673d20
x23 = 0x000000001ded61e8 x24 = 0x0000000002712944
x25 = 0x0000000000010000 x26 = 0x0000ffffaf820000
x27 = 0x0000fffee8f2ed40 x28 = 0x0000fffee8f2ed40
fp = 0x0000fffee8f2e100 sp = 0x0000fffee8f2e0e0
pc = 0x0000000001de9fc8
Found by: call frame info
15 impalad!thread_proxy [thread.cpp : 179 + 0x8]
x19 = 0x0000000000000002 x20 = 0x000000001ded61c0
x21 = 0x000000001ded61c0 x22 = 0x0000000179673d20
x23 = 0x000000001ded61e8 x24 = 0x0000000002712944
x25 = 0x0000000000010000 x26 = 0x0000ffffaf820000
x27 = 0x0000fffee8f2ed40 x28 = 0x0000fffee8f2ed40
fp = 0x0000fffee8f2e4e0 sp = 0x0000fffee8f2e4e0
pc = 0x00000000027129b8
Found by: call frame info
16 libpthread.so.0 + 0x78b4
x19 = 0x0000fffee8f2f15c x20 = 0x0000fffeef7fcbb0
x21 = 0x0000fffeef7fcbae x22 = 0x0000fffeef7fcbaf
x23 = 0x000000001ded61e8 x24 = 0x0000000002712944
x25 = 0x0000000000010000 x26 = 0x0000ffffaf820000
x27 = 0x0000fffee8f2ed40 x28 = 0x0000fffee8f2ed40
fp = 0x0000fffee8f2e520 sp = 0x0000fffee8f2e520
pc = 0x0000ffffaf7f78b8
Found by: call frame info
{code}
The impalad log file and the resolved minidump are also attached too.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)