Bug #17375 Updated: proc_open() segfaults with faulty parameters

From: Date: Thu, 23 May 2002 06:16:59 +0000
Subject: Bug #17375 Updated: proc_open() segfaults with faulty parameters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-8283@lists.php.net to get a copy of this message
ID: 17375 Updated by: derick@php.net Reported By: kims@contrail.com.au -Status: Open +Status: Feedback Bug Type: Reproducible crash Operating System: Debian GNU/Linux PHP Version: 4.0CVS-2002-05-23 New Comment: Thank you for this bug report. To properly diagnose the problem, we need a backtrace to see what is happening behind the scenes. To find out how to generate a backtrace, please read http://bugs.php.net/bugs-generating-backtrace.php Once you have generated a backtrace, please submit it to this bug report and change the status back to "Open". Thank you for helping us make PHP better. A backtrace really would help for us... Derick Previous Comments: ------------------------------------------------------------------------ [2002-05-23 00:42:24] kims@contrail.com.au proc_open() causes my apache process to segfault when I pass it a broken descriptorspec array. An entry in the descriptorspec array of type "file" that has only two elements (i.e., is missing the third element, the mode with which to open the file) causes the segfault. I suggest that: * proc_open() should return an invalid resource, and a meaningful warning, instead of segfaulting like this. * perhaps the mode should default to something if ommitted, instead of giving a warning, perhaps "r" would be a safe default. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17375&edit=1

« previous php.bugs (#8283) next »