I have setup default Ubuntu Server 12.04 on Amazon EC2 micro instance. I've setup the usual, PHP, Apache, MySQL, etc. Everything runs ok, until I try to upload some file via PHP. The file size does not matter. It happens even with 5kb jpeg file. What I get is:
[Thu Nov 08 18:52:11 2012] [notice] child pid 1199 exit signal Segmentation fault (11)
When I execute the same code, but without ataching the image, it works (but I need the image, of course)
I have to note that exactly the same code is working great on an OpenSUSE 11.1 machine, I'm just moving it on Amazon instance for further testing. I've setup dozens of servers and never encountered this error. I really am stuck, as I could not find anything related.
uname -a gives
Linux server 3.2.0-31-virtual #50-Ubuntu SMP Fri Sep 7 16:36:36 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
Apache/2.2.22 (Ubuntu), PHP 5.3.10-1ubuntu3.4
post_max_size 150M memory_limit 256M upload_max_filesize 150M
Note: I also added swap file 2Gb, and also tested the same on a bigger EC2 instance with 1.7Gb of RAM, just in case, and the result was exactly the same, so it's not insufficient memory.