jpg uploads cause large file to be added to root with name core.XXXXXX
PermalinkAny suggestions? The client uses MAC and I am using PC and the result is the same... although PDFs seem to upload without the same issue.

Thanks for the tip about what these files mean. I am still puzzled though as I run a VPS server and this houses approx 30 C5 sites. I have only been getting this core.xxx file on sites that are either 5.6.3 or 5.6.3.1. I just now went to 5 sites and uploaded the same jpg to the file manager, got the core.xxx dump on 2 sites and the other 3 nothing happened? The file was about 300KB which is not big and the C5 GUI said they were successful uploads. No errors in C5 or error logs on each website.. I am very confused about how to see what the issue is without some type of error or log of error. I am no expert at server stuff so would greatly appreciate a hand on how I could see what the dump was caused from? apart from an image upload... which seems to be the trigger.
The problem is just, that you have to get more information in order to figure it out.
Analyzing those core dump files isn't the easiest thing to do, it's certainly not something I can guide you through that easily. Especially since I'm also not the expert in this field. I do understand the basics and know how things are working together, but I'd have to google around myself.
You can try to call gdb /usr/bin/php core-dump-file to get more insight and continue from there, but that might be a long journey..
It could be easier to simply upgrade PHP and see if it still happens.
I did an experiment and took one of my dev sites 5.6.2.1 and uploaded some images with no core dumps. Then upgraded the site to 5.6.3 and immediately got the core file dumps when I uploaded an 11KB image!!! I have the memory limit set on my VPS server to 96M so went all the way up to 256M and still got the core dump files... so I downgraded the site again to 5.6.2.1 and they core dump files no longer happen. OK so it is obvious it is from the upgrade by I am also aware it just might be my environment that is not compatible any more. PHP version being 5.2.17 - is there more recent versions?. Not being a programmer or server expert is this gdb call something I can ask my server managers to do for me?
http://www.php.net/manual/en/migration54.incompatible.php...
Also, here's a list of closed bug reports with the GD library in php 5.2. Good chance that one of them could have been causing your issue.
https://bugs.php.net/search.php?search_for=&boolean=0&limit=...
My server guys came back with the following;
We have checked the core file through gdb and it was generated due to the following :
-----------------
Core was generated by `/usr/bin/php /home/jgdev1/public_html/tg/index.php'.
Program terminated with signal SIGSEGV, Segmentation fault.
-----------------
The possible reason for the core files getting generated is when a php process is killed, apache creates core files under the account. So you are requested to go through the application installed and upgrade it to the latest version if required.
If you could simply kill a PHP process with a PHP script, it might even pose a security problem as one could potentially inject some code. Remember the heartbleed thing?
If it's easy to reproduce, you can try to create a test script which does the same as the upload process does. Run it, if it crashes where the problems occurs. Remove some lines, run it again.. Over and over till you know the line causing the problem. Tedious I know, but with so little information, this is the only thing you can do. At least if you don't want to upgrade PHP. 5.2 is pretty old by the way, I'd update it anyway, even if there's no problem.
Strict Standards: Non-static method Loader::database() should not be called statically in /home/waterm/public_html/concrete/dispatcher.php on line 23
etc etc
http://www.watermatic.com.au/
do I have to got via the database to switch this debug setting off
You can also try to edit the "Config" table with phpMyAdmin and set SITE_DEBUG_LEVEL to 0
ini_set('display_errors', 'Off'); error_reporting(0);
should look something like this afterwards:
<?php ini_set('display_errors', 'Off'); error_reporting(0); require('concrete/dispatcher.php');
in case login doesn't work, try to reset the admin password. Just in case..
error_reporting = E_ALL & ~E_STRICT & ~E_DEPRECATED
display_errors = Off
log_errors = Off