Jump to content

array_push($childArray, $parent) = core dump (segmentation fault)


Recommended Posts

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.

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.

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.