MySQL & MariaDB error 1436 ER_STACK_OVERRUN_NEED_MORE
MySQLThread stack overrun: … bytes used of a … byte stack, and … bytes needed. Use 'mysqld --thread_stack=#' to specify a bigger stack.
MariaDBThread stack overrun: … bytes used of a … byte stack, and … bytes needed. Consider increasing the thread_stack system variable.
How the message changed between versions