ID: 25294 Updated by: [EMAIL PROTECTED] Reported By: steveh at brendata dot co dot uk -Status: Open +Status: Feedback Bug Type: FTP related Operating System: Linux 2.4.21 PHP Version: 4.3.3 New Comment:
Do this: # rm config.cache # ./configure --disable-all --disable-cgi --enable-ftp --enable-debug # make clean && make And try that script again. (with the snapshot) If it crashes, provide a backtrace. Previous Comments: ------------------------------------------------------------------------ [2003-09-09 04:49:54] steveh at brendata dot co dot uk Sorry, still fails, same as before: [EMAIL PROTECTED] php4-STABLE-200309081530]# ./sapi/cli/php ~/test.php resource(4) of type (FTP Buffer) resource(4) of type (FTP Buffer) bool(false) resource(4) of type (FTP Buffer) Segmentation fault (core dumped) [EMAIL PROTECTED] php4-STABLE-200309081530]# ------------------------------------------------------------------------ [2003-09-06 09:16:51] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-08-29 03:16:48] steveh at brendata dot co dot uk Ok, it failed as before, here's the output: (gdb) run test.php Starting program: /usr/src/php-4.3.3/sapi/cli/php test.php resource(4) of type (FTP Buffer) resource(4) of type (FTP Buffer) bool(false) resource(4) of type (FTP Buffer) [Fri Aug 29 09:04:06 2003] Script: 'test.php' --------------------------------------- /usr/src/php-4.3.3/ext/ftp/ftp.c(1443) : Block 0x081EF888 status: Beginning: Overrun (magic=0x401E0470, expected=0x7312F8DC) End: Unknown --------------------------------------- Program exited normally. (gdb) ------------------------------------------------------------------------ [2003-08-28 19:48:11] [EMAIL PROTECTED] Try the following: # rm config.cache # ./configure --disable-all --disable-cgi --enable-ftp --enable-debug # make clean && make And then run the script: # gdb sapi/cli/php (gdb) run ftptest.php . . ------------------------------------------------------------------------ [2003-08-28 11:19:11] steveh at brendata dot co dot uk Just realised, one thing I haven't mentioned (!) is that I'm running this as a command line script (php test.php). Here's the backtrace (looks like it's when it's trying to deallocate stuff) (gdb) bt #0 0x403a9490 in chunk_free (ar_ptr=0x4045d300, p=0x830ba58) at malloc.c:3231 #1 0x403a93f4 in __libc_free (mem=0x830baa8) at malloc.c:3154 #2 0x08175fb4 in shutdown_memory_manager (silent=0, clean_cache=0) at /usr/src/php-4.3.3/Zend/zend_alloc.c:492 #3 0x0815be20 in php_request_shutdown (dummy=0x0) at /usr/src/php-4.3.3/main/main.c:1005 #4 0x081a6c61 in main (argc=2, argv=0xbffffbe4) at /usr/src/php-4.3.3/sapi/cli/php_cli.c:869 #5 0x40344657 in __libc_start_main (main=0x81a61fc <main>, argc=2, ubp_av=0xbffffbe4, init=0x8072174 <_init>, fini=0x81ac480 <_fini>, rtld_fini=0x4000dcd4 <_dl_fini>, stack_end=0xbffffbdc) at ../sysdeps/generic/libc-start.c:129 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25294 -- Edit this bug report at http://bugs.php.net/?id=25294&edit=1