Segfault in FTP

From: Date: Tue, 21 Sep 1999 23:00:34 +0000
Subject: Segfault in FTP
Groups: php.version4 
Request: Send a blank email to php-version4+get-4779@lists.php.net to get a copy of this message
Tried the new FTP functions and got a segfault on ftp_connect httpd.error.log: connect: Address family not supported by protocol family [Tue Sep 21 15:58:58 1999] [notice] child pid 8093 exit signal Segmentation fault (11) Script: <? $ftp = ftp_connect("ip.address"); ftp_login($ftp, "user", "pass"); ftp_pwd($ftp); ?> bash-2.02# gdb ./httpd GNU gdb Copyright 1998 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-bsdi4.0.1"... (gdb) run -X Starting program: /usr/var/www/bin/./httpd -X Program received signal SIGSEGV, Segmentation fault. 0xc1cd16e in __svfprintf () (gdb) bt #0 0xc1cd16e in __svfprintf () #1 0xc1cf817 in vsnprintf () #2 0x8075f94 in php_error (type=2, format=0x8132794 "ftp_connect: %s") at main.c:419 #3 0x807bb91 in php3_ftp_connect (ht=1, return_value=0x804780c, list=0x81a409c, plist=0x81a40c8, this_ptr=0x0) at php_ftp.c:121 #4 0x80c12e7 in execute (op_array=0x81b9610) at zend_execute.c:1430 #5 0x8076dfd in php_execute_script (primary_file=0x8047c58) at main.c:1171 #6 0x8076e79 in apache_php_module_main (r=0x81f3034, fd=21, display_source_mode=0) at main.c:1212 #7 0x807580c in send_php () #8 0x8075850 in send_parsed_php () #9 0x80c9aef in ap_invoke_handler () #10 0x80dc615 in process_request_internal () #11 0x80dc674 in ap_process_request () #12 0x80d4035 in child_main () #13 0x80d41c0 in make_child () #14 0x80d431b in startup_children () #15 0x80d48cc in standalone_main () #16 0x80d511f in main () #17 0x805efc4 in __start () Is the FTP functions not finished? or is it my box? BSDI 4.0.1 Apache 1.3.9 PHP4 (CVS as of about 2 hours ago after the last segfault fix) -Dave

« previous php.version4 (#4779) next »