> 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 (obviously since this is CLI), Apache isn't
involved here.  All other scripts work fine (CLI and web-based). 
Server is a dual MP 1600+.  I've got the same setup running on a
non-SMP server  and it also seg faults at about the same place.

> 2) Logs/errors
>     a) example from log file (just the error line(s))
>     b) what is segfaulting? (Apache, PHP, Kernel, other)
>     c) Any error messages?

I assume this is PHP seg faulting as I'm running CLI here.  No error
messages or anything (not hiding them or anything like that).  Nothing
in the sys logs.  The script runs for a while (I've got it echoing
what file it is d/l'ing), but then displays "Segmentation Fault" after
it downloads several files.

> 3) Any other pertinent information

It does not die after a specific file, e.g. it dies randomly.  Also,
if I reduce the number of files to be d/l'ed, it won't seg fault. 
Usually it faults after d/ling about 210 files (it varies), but I've
seen it go as high as 290.  Its actually made it all the way through
the script once today, but seg faults most of them time.

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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to