Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [PHP-INSTALL] segmentation fault at to small stacksize( ulimit -s)

17 views
Skip to first unread message

Hajo Locke

unread,
Aug 31, 2010, 2:05:56 PM8/31/10
to php-i...@lists.php.net
Hello,

>> php has its own memory limit. you can raise it with setting the memory_limit ini setting.
yes, i know.
memory_limit is already higher than stacksize. seems that it crashes without error-message if stacksize is to small for current operation...
 
Thanks,
Hajo

Hajo Locke

unread,
Aug 31, 2010, 5:41:09 AM8/31/10
to php-i...@lists.php.net
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

0 new messages