dbTalk Databases Forums  

Error 1436 - Thread Stack Overflow

comp.databases.mysql comp.databases.mysql


Discuss Error 1436 - Thread Stack Overflow in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
William Colls
 
Posts: n/a

Default Error 1436 - Thread Stack Overflow - 01-14-2012 , 03:53 PM






I am getting the following error when trying to run any stored procedure:

ERROR 1436 (HY000): Thread stack overrun: 11456 bytes used of a 131072
byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to
specify a bigger stack.

The bytes used number varies depending on the procedure, but rest is
always the same.

But the message does not seem to make any sense. The used bytes, and the
bytes required are less than the reported stack size. Also the reported
stack size seems wrong. I am running on a 64 bit machine, so the default
size should be something in the order 264000, or so I understand.

Any guidance will be greatly appreciated.

Thanks for your time.

William.

Reply With Quote
  #2  
Old   
Luuk
 
Posts: n/a

Default Re: Error 1436 - Thread Stack Overflow - 01-14-2012 , 04:05 PM






On 14-01-2012 22:53, William Colls wrote:
Quote:
I am getting the following error when trying to run any stored procedure:

ERROR 1436 (HY000): Thread stack overrun: 11456 bytes used of a 131072
byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to
specify a bigger stack.

The bytes used number varies depending on the procedure, but rest is
always the same.

But the message does not seem to make any sense. The used bytes, and the
bytes required are less than the reported stack size. Also the reported
stack size seems wrong. I am running on a 64 bit machine, so the default
size should be something in the order 264000, or so I understand.

Any guidance will be greatly appreciated.

Thanks for your time.

William.

a google for: "ERROR 1436 (HY000): Thread stack overrun" revealed:

http://bugs.mysql.com/bug.php?id=56744

Maybe you should try the thing a the bottom of that page

If that doesn't help, please provide more information, i.e. the version
of MySQL you are using. (because the bug is about version 5.5.x)

--
Luuk

Reply With Quote
  #3  
Old   
Luuk
 
Posts: n/a

Default Re: Error 1436 - Thread Stack Overflow - 01-14-2012 , 04:08 PM



On 14-01-2012 22:53, William Colls wrote:
Quote:
I am getting the following error when trying to run any stored procedure:

ERROR 1436 (HY000): Thread stack overrun: 11456 bytes used of a 131072
byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to
specify a bigger stack.

The bytes used number varies depending on the procedure, but rest is
always the same.

But the message does not seem to make any sense. The used bytes, and the
bytes required are less than the reported stack size. Also the reported
stack size seems wrong. I am running on a 64 bit machine, so the default
size should be something in the order 264000, or so I understand.

Any guidance will be greatly appreciated.

Thanks for your time.

William.
or http://bugs.mysql.com/bug.php?id=31288
but that a very old one

--
Luuk

Reply With Quote
  #4  
Old   
Axel Schwenke
 
Posts: n/a

Default Re: Error 1436 - Thread Stack Overflow - 01-14-2012 , 04:46 PM



William Colls <william.colls (AT) rogers (DOT) com> wrote:
Quote:
I am getting the following error when trying to run any stored procedure:

ERROR 1436 (HY000): Thread stack overrun: 11456 bytes used of a 131072
byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to
specify a bigger stack.

But the message does not seem to make any sense. The used bytes, and the
bytes required are less than the reported stack size.
Maybe I cannot add any more. Or you can't. But last time I tried,
11456 + 128000 was indeed bigger than 131072.

Quote:
Also the reported
stack size seems wrong. I am running on a 64 bit machine, so the default
size should be something in the order 264000, or so I understand.

Any guidance will be greatly appreciated.
SHOW GLOBAL VARIABLES

will show you (amongst other settings) the effective thread stack size
used by your instance of the MySQL server. Maybe you run with a my.cnf
from stone age, that ties stack size to 128K?

At least we'd need to know which version you're running. 5.5.5-m3 for
which Luuk found that bug report, is not fit for production anyway.


XL

Reply With Quote
  #5  
Old   
Thomas 'PointedEars' Lahn
 
Posts: n/a

Default Re: Error 1436 - Thread Stack Overflow - 01-30-2012 , 04:52 PM



William Colls wrote:

Quote:
I am getting the following error when trying to run any stored procedure:

ERROR 1436 (HY000): Thread stack overrun: 11456 bytes used of a 131072
byte stack, and 128000 bytes needed. Use 'mysqld -O thread_stack=#' to
specify a bigger stack.

The bytes used number varies depending on the procedure, but rest is
always the same.

But the message does not seem to make any sense. The used bytes, and the
bytes required are less than the reported stack size.
131'072 bytes total
− 11'456 bytes used
− 128'000 bytes needed
----------------------
= −8'384 bytes

Hence the error message.

Quote:
Also the reported stack size seems wrong. I am running on a 64 bit
machine, so the default size should be something in the order 264000,
or so I understand.
AIUI, it should be 262'144 bytes (256 KiB) if you are running MySQL on a 64-
bit machine with a 64-bit kernel (and a MySQL version compiled for that
kernel).

<http://dev.mysql.com/doc/refman/5.5/en/server-system-variables.html>

Quote:
Any guidance will be greatly appreciated.
Try analyzing the causes instead of the symptoms. Does your stored
procedure recurse too often? Are you declaring unnecessary parameters
or variables, or parameters or variables of unnecessary size?

--
PointedEars

Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.