1436 thread stack overrun mysql

MySQL Error code 1436

Getting Error during execute the stored procedure  Thread stack overrun: 6444 bytes used of a 131072 byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to specify a bigger stack....