segmentation fault at to small stacksize( ulimit -s)
| From: | Hajo Locke | Date: | Tue, 31 Aug 2010 09:41:09 +0000 |
| Subject: | segmentation fault at to small stacksize( ulimit -s) | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-19971@lists.php.net to get a copy of this message | ||
Hello,
i have a script which ends up in a segmentation fault.(i think memory leak)
if i increase stack size with ulimit -s the script shows correct error:
Fatal error: Allowed memory size of 41943040 exhausted (tried to allocate 16 bytes)
the default of stack size is 8192 kb
why is there a seg.fault if stack size is on default value and not a correct error-message.
What is the recommended way to avoid this?
Thanks,
Hajo