what is root cause of 'child pid 10708 exit signal Segmentation fault (11)' error?

爷,独闯天下 提交于 2019-12-11 12:16:59

问题


I am getting more and more child pid 10708 exit signal Segmentation fault (11) errors. what is the root cause of it and how to fix it ?

Is php ini memory is associated with this?

I am using apache2 server with php.

Thanks in advance.


回答1:


It is entirely possible that your memory_limit variable in your php.ini may cause this problem. It certainly did in my case.

By lowering the memory_limit, I was able to resolve these errors.




回答2:


The root cause is generally that the code is doing something wrong. A segmentation fault is generally what happens when a program does something that's not allowed, like trying to access memory that isn't valid.

If you're after a more specific cause, I'd be happy to list the thousand or so that spring to mind immediately :-)

On a more serious note, no. Short of knowing a great deal more, there is no easy way to give a specific answer.

The first step would be to figure out which program belongs to that process ID. Then you can start investigating why that program is faulting.




回答3:


Though two general answers are already posted, I want to introduce one example that I have met in these days.

If your code runs into recursive infinite loop (that causes stack overflow error), child pid xxxxx exit signal Segmentation fault (11) will occur.

sample code :

function recursiveFunc() {
    // some operation

    recursiveFunc();
}


来源:https://stackoverflow.com/questions/10631228/what-is-root-cause-of-child-pid-10708-exit-signal-segmentation-fault-11-erro

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!