Public bug reported: Binary package hint: php5
Using Edgy, PHP 5.1.6, GD version is 2.0 or higher. The following code causes a segmentation fault when imagecopymergegray() is called. Tested it on another system (FC6) where this was working correctly. $im=imagecreatefrompng('erasmus.png'); $percent=50; $sx=imagesx($im); $sy=imagesy($im); $filter=imagecreatetruecolor($sx,$sy); $c=imagecolorallocate($filter,100,50,50); imagefill($filter,0,0,$c); imagecopymergegray($im,$filter,0,0,0,0,$sx,$sy,$percent); header("Content-type: image/png"); imagepng($im); In Apache's error_log: [notice] child pid 10484 exit signal Segmentation fault (11) ** Affects: php5 (Ubuntu) Importance: Undecided Status: Unconfirmed -- imagecopymergegray causes a segmentation fault https://launchpad.net/bugs/95855 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs