Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Steve Brown
> ...and just for clarification... after re-reading my response to you it came > to my attention that one might assume I'm somehow involved with PHP > development. You mean you won't be the person fixing this bug?? Man, I'm screwed now! j/k ;-) No worries! -- PHP General Mailing List (http://

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Jim Grill
> Thanks for the help Jim. I had to install gdb and recompile php, but > I was able to get consistant backtraces from both systems. When the > fault occured, the backtrace was identical every time. It appears to > be an issue with memchr() in ftp_get(): > > = > Program received s

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-08 Thread Steve Brown
> OK. Sounds like a genuine segfault to me. The CLI version will simply print > "Segmentation fault" to the screen or "Segmentation fault (core dumped)" > when configured with debugging enabled. Thanks for the help Jim. I had to install gdb and recompile php, but I was able to get consistant back

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Rasmus Lerdorf
On Tue, 7 Sep 2004, Jim Grill wrote: > If any of the output from gdb give you a hint what the problem could be (ftp > functions or something) research each of the functions you are using on the > PHP site reading the user added comments. Look for any mention of a possible > segfault. Search the PHP

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Jim Grill
> I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case. > PHP compiled with --enable-ftp (among other things). PHP is installed > as an Apache2 module, but (obviously since this is CLI), Apache isn't > involved here. All other scripts work fine (CLI and web-based). > Server is a dual

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Greg Donald
On Tue, 2004-09-07 at 15:21, Steve Brown wrote: > The random nature leads me to believe that this is some sort of > harmful interaction between this server and the FTP server. The FTP > server is a Windows-based host. An almost identical script runs just > fine while connecting to other servers.

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Steve Brown
> 1) Environment > a) OS > b) PHP Version > c) CLI or web-based > d) Are you running php as an apache module? I'm runnning PHP 4.3.8 in CLI on Redhat 9 in this particular case. PHP compiled with --enable-ftp (among other things). PHP is installed as an Apache2 module, but (obviou

Re: [PHP] Intermittent Seg Fault with PHP4.3.8 + FTP

2004-09-07 Thread Jim Grill
> I'm using PHP to write some backup scripts. One of the scripts uses > PHP to connect via FTP to a server, download some scripts and tar them > up. I'm getting intermittent segmentation faults with this script, > and I'm not sure what to report to troubleshoot this. Can someone > tell me what w