Skip to content

MDEV-39109 main.sp-error stack overflow debug, MSAN and ASAN#4821

Merged
grooverdan merged 1 commit intoMariaDB:10.11from
grooverdan:MDEV-39109
Mar 19, 2026
Merged

MDEV-39109 main.sp-error stack overflow debug, MSAN and ASAN#4821
grooverdan merged 1 commit intoMariaDB:10.11from
grooverdan:MDEV-39109

Conversation

@grooverdan
Copy link
Copy Markdown
Member

MSAN seems error on stack depth 39 so set limit to 20.

ASAN errored on stack depth 248 so set limit to 200.

The actualy depth wasn't important for the purposes of the fatal error handling in MySQL bug #15192
from which this test originates.

@grooverdan grooverdan added the MariaDB Foundation Pull requests created by MariaDB Foundation label Mar 19, 2026
Comment thread mysql-test/main/sp-error.test
MSAN seems error on stack depth 39 so set limit to 20.

ASAN error-ed on stack depth 248 so set limit to 200.

The actua;ly depth wasn't important for the purposes
of the fatal error handling in MySQL bug #15192
from which this test originates.

Reviewed/Approved by: Oleksandr "Sanja" Byelkin (sanja@mariadb.com)
@grooverdan
Copy link
Copy Markdown
Member Author

Thanks @sanja-byelkin for the review!

@grooverdan grooverdan enabled auto-merge (rebase) March 19, 2026 07:46
@grooverdan grooverdan merged commit 652d3d2 into MariaDB:10.11 Mar 19, 2026
15 of 17 checks passed
@grooverdan grooverdan deleted the MDEV-39109 branch March 20, 2026 02:15
kjarir added a commit to kjarir/server that referenced this pull request May 4, 2026
The test was expecting only ER_STACK_OVERRUN_NEED_MORE (1436) but under
sanitizer builds (UBSAN, MSAN+Debug) the recursive stored procedure call
bug10100p(255) fails with ER_SP_RECURSION_LIMIT or succeeds (0) instead,
because sanitizer instrumentation increases per-frame stack usage,
altering the recursion depth at which the stack guard or recursion limit is hit.

Fix: Accept 0 and ER_SP_RECURSION_LIMIT as additional valid outcomes in the
test, following the pattern from PR MariaDB#4821.

Reviewed-by: <add reviewer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

MariaDB Foundation Pull requests created by MariaDB Foundation

Development

Successfully merging this pull request may close these issues.

2 participants