【详述】在ARM环境下基于2.5分支无法正常编译,修改一处代码后虽编译通过,但使用编译后的包执行insert语句BE会down掉。
【StarRocks版本】2.5.3-ARM(branch-2.5-1fed0c9),之前基于2.4.0版本测试编译及使用均正常
【CPU型号】HUAWEI Kirin 9006C
【操作描述】如下:
1、直接编译时的报错信息:
[ 99%] Linking CXX static library ../../../output/tmp/RELEASE/libTools.a
[ 99%] Built target Tools
[ 99%] Linking CXX static library ../../../output/tmp/RELEASE/libUtil.a
[ 99%] Built target Util
[ 99%] Building CXX object src/service/CMakeFiles/starrocks_be.dir/starrocks_main.cpp.o
/root/starrocks/be/src/service/starrocks_main.cpp:59:2: error: #error _GLIBCXX_USE_CXX11_ABI must be non-zero
59 | #error _GLIBCXX_USE_CXX11_ABI must be non-zero
| ^~~~~
make[2]: *** [src/service/CMakeFiles/starrocks_be.dir/build.make:76: src/service/CMakeFiles/starrocks_be.dir/starrocks_main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1143: src/service/CMakeFiles/starrocks_be.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
2、根据报错尝试修改代码:be/src/service/starrocks_main.cpp,删除了如下三行后编译通过:
#if !_GLIBCXX_USE_CXX11_ABI
#error _GLIBCXX_USE_CXX11_ABI must be non-zero
#endif
3、使用该包部署后创建简单明细表,执行insert语句后BE挂掉:
CREATE TABLE customer (
c_custkey INT,
c_name VARCHAR(26),
c_city VARCHAR(11)
)
DUPLICATE KEY(c_custkey)
DISTRIBUTED BY HASH (c_custkey) BUCKETS 1
PROPERTIES (
"replication_num"="1"
);
insert into customer values(1001,'liumu','xian');
ERROR 1064 (HY000): Backend not found. Check if any backend is down or not
4、be.out主要信息如下,完整日志见下文附件:
*** Aborted at 1679147941 (unix time) try "date -d @1679147941" if you are using GNU date ***
PC: @ 0x0 (unknown)
*** SIGABRT (@0x11c15) received by PID 72725 (TID 0x7edd1b7d40) from PID 72725; stack trace: ***
@ 0x4628888 google::(anonymous namespace)::FailureSignalHandler()
@ 0x7fbece65b8 ([vdso]+0x5b7)
@ 0x7fbda5d0f0 gsignal
@ 0x7fbda49de8 abort
@ 0x1e38b60 starrocks::failure_function()
@ 0x461c1e8 google::LogMessage::Fail()
@ 0x461e5ec google::LogMessage::SendToLog()
@ 0x461bd48 google::LogMessage::Flush()
@ 0x461ece0 google::LogMessageFatal::~LogMessageFatal()
@ 0x4891d00 bthread::TaskGroup::sched_to()
@ 0x4892ddc bthread::TaskGroup::ending_sched()
@ 0x4893948 bthread::TaskGroup::task_runner()
@ 0x488c064 bthread_make_fcontext
be.out (5.9 KB)