# segmentation fault at to small stacksize( ulimit -s)

- Thread: https://externals.io/message/49556
- Original archive: https://news-web.php.net/php.internals/49556
- Started by Hajo Locke on 2010-09-02T08:00:58+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #49556 — Hajo Locke — 2010-09-02T08:00:58+00:00

URL: https://externals.io/message/49556#49556

Hello,

i have a question the installation-list could not solve.thus i try my luck 
here...

I have a script (php-cli) which results in segfault. If i increase stack 
size by...
ulimit -s unlimited
...the script is running and shows correct memory-limit error message.

My system's stack size default is 8192 kb
What to do if i want to avoid this segfault but not increasing stack size to 
unlimited because there may be other consequences?
What is the recommended way to solve this?

Thanks,
Hajo
