Details
Description
When the code is compiled with Clang 6.0.3 and cmake -DCMAKE_BUILD_TYPE=Debug -DWITH_ASAN:BOOL=ON, 3 of these 4 tests will cause a server crash instead of reporting a stack overflow error. If -O1 is added to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS, then these tests will pass:
ASAN_OPTIONS=abort_on_error=1,disable_coredump=0,detect_leaks=0 ./mtr --parallel=auto --force --retry=0 --max-test-fail=0 compat/oracle.parser compat/oracle.sp-package compat/oracle.sp-package-mysqldump compat/oracle.sp-package-security
|
10.3 71144afa966a85d08053eb616a1021fd339102d1 |
CURRENT_TEST: compat/oracle.sp-package-mysqldump
|
mysqltest: At line 42: query 'CALL p1' failed: 2013: Lost connection to MySQL server during query
|
…
|
CURRENT_TEST: compat/oracle.sp-package
|
mysqltest: At line 1470: query 'CALL pack.p1('p2 pack.p3')' failed: 2013: Lost connection to MySQL server during query
|
…
|
CURRENT_TEST: compat/oracle.parser
|
mysqltest: At line 73: query 'CALL p2('date')' failed: 1436: Thread stack overrun: 240640 bytes used of a 299008 byte stack, and 81920 bytes needed. Use 'mysqld --thread_stack=#' to specify a bigger stack
|
…
|
CURRENT_TEST: compat/oracle.sp-package-security
|
mysqltest: At line 233: query 'GRANT EXECUTE ON PACKAGE BODY db1.pkg1 TO u1@localhost' failed: 2013: Lost connection to MySQL server during query
|
Attachments
Issue Links
- relates to
-
MDEV-33210 Several performance_schema tests fail due to explicit (too small for ASAN) thread_stack
-
- Confirmed
-
-
MDEV-34099 AddressSanitizer running out of memory regardless of stack_thread size
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Fix Version/s | 10.4 [ 22408 ] |
Workflow | MariaDB v3 [ 88182 ] | MariaDB v4 [ 140849 ] |
Fix Version/s | 10.3 [ 22126 ] |
Component/s | Compiling [ 11001 ] | |
Assignee | Alexander Barkov [ bar ] | Marko Mäkelä [ marko ] |
Summary | Possibly inadequate stack overflow checks in the PL/SQL parser | Inadequate DEFAULT_THREAD_STACK size for AddressSanitizer |
issue.field.resolutiondate | 2023-11-17 13:16:12.0 | 2023-11-17 13:16:11.77 |
Fix Version/s | 10.4.33 [ 29516 ] | |
Fix Version/s | 10.5.24 [ 29517 ] | |
Fix Version/s | 10.6.17 [ 29518 ] | |
Fix Version/s | 10.11.7 [ 29519 ] | |
Fix Version/s | 11.0.5 [ 29520 ] | |
Fix Version/s | 11.1.4 [ 29024 ] | |
Fix Version/s | 11.2.3 [ 29521 ] | |
Fix Version/s | 11.3.2 [ 29522 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Link | This issue relates to MDEV-33210 [ MDEV-33210 ] |
Link |
This issue relates to |