geudrik Posted July 23, 2012 Share Posted July 23, 2012 I'm not entirely sure this is the right sub forum, but essentially I'm running to ** Pushing [type] [body] [number] [date] to array Segmentation fault (core dumped) I have traced it back to quite literally pushing an array into a parent array. I have no idea where to even begin debugging this... Ideas? :S This is all CLI by the way, no web front end at all. Just a maintenance script I'm writing. I have E_ALL (for everything), and a -1 memory limit. Shy of that I'm at a loss. Quote Link to comment https://forums.phpfreaks.com/topic/266139-array_pushchildarray-parent-core-dump-segmentation-fault/ Share on other sites More sharing options...
Adam Posted July 23, 2012 Share Posted July 23, 2012 Pushing an array into a parent array? Could you post the code? Seg faults can sometimes be tricky to debug, how have you narrowed it down exactly? Also some information on your machine could be useful; OS, PHP version, extensions installed, etc. Quote Link to comment https://forums.phpfreaks.com/topic/266139-array_pushchildarray-parent-core-dump-segmentation-fault/#findComment-1363868 Share on other sites More sharing options...
geudrik Posted July 24, 2012 Author Share Posted July 24, 2012 I figured out the issue - suhosin was royally messing with the way php was interpreting my code. Now I have a memory hole (which was causing suhosin to kill the script). I wasn't able to see the process hitting OOM with suhosin, but as soon as I removed it, OOM's popped up in the syslog. Quote Link to comment https://forums.phpfreaks.com/topic/266139-array_pushchildarray-parent-core-dump-segmentation-fault/#findComment-1364087 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.