Jump to content

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


geudrik

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.