Closed watch2bear closed 1 year ago
SQL and Execution Plan
Result
Segement Fault
CALL STACK
This bug may be due to the misuse of expression evaluation frame in execution context, may be fixed in #8, which handle Model UDF eval in a standalone operator.
Describe the bug
Python UDF Buffer Module is designed for reading data across mulitple blocks. When SQL contains JOIN opreator and LIMIT Operator, it will occur segement fault with Buffer module.
Environment
OS Version and CPU Arch(
uname -a
): Centos7 x86_64OB Version(
LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./observer -V
): OceanBase_CE 4.1.0.1 with Python UDF and buffer for reading across marco blocks.Fast Reproduce Steps(Required)
Steps to reproduce the behavior:
Expected behavior
Run SQL and get results correctly
Actual Behavior
ERROR 2013 (HY000): Lost connection to MySQL server during query
Additional context
Segement Fault in ob_ctype_utf8_os.cc static void ob_hash_sort_utf8mb4(const ObCharsetInfo cs, const unsigned char src, size_t srclen, unsigned long int n1, unsigned long int n2, const bool calc_end_space, hash_algo hash_algo) It may be caused by a conflict between the memory management module of oceanbase and the Buffer module.