Re: Ack, #1449 is real

From: Date: Tue, 25 May 1999 11:18:05 +0000
Subject: Re: Ack, #1449 is real
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-5979@lists.php.net to get a copy of this message
php3_fopen_url_wrapper and friends tend to use quite a lot of static arrays. This is most likely what's causing it to segfault when over 127. Andi At 23:07 24/05/99 -0500, Timothy Whitfield wrote:
This should help. Through testing I have found that a file under 128 characters will say, "File not found.", but anything over 127 will segfault. On Tue, 25 May 1999, you wrote: I have reproduced bug #1449 even in the current CVS. It causes my gdb to freak out as well on both Linux and Solaris so I am having a problem getting a start on fixing it. Could someone try this script:
    <?
        $location = "http://www.lerdorf.on.ca/index.php3";
        $arr = file ("$location");
    ?>
and send me a gdb backtrace if you are able to get one? On Linux I get the super useful output of: Starting program: /home/rasmus/php3/./php e Program received signal SIGSEGV, Segmentation fault. 0x0 in ?? () (gdb) bt #0 0x0 in ?? () (gdb) And on Solaris, I get the slightly better, but still quite useless: Program received signal SIGSEGV, Segmentation fault. 0x3d3e8 in php3_fopen_wrapper (path=0x0, mode=0x0, options=0, issock=0x0, socketd=0xefffcaa8)
    at fopen-wrappers.c:235
235     }
(gdb) bt #0 0x3d3e8 in php3_fopen_wrapper (path=0x0, mode=0x0, options=0, issock=0x0, socketd=0xefffcaa8)
    at fopen-wrappers.c:235
Cannot access memory at address 0x38. -Rasmus -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net -- Timothy Whitfield AMC Internet Services American Metrocomm Corporation Phone 228-872-0003 Fax 228-435-4388 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net
--- Andi Gutmans <andi@zend.com> ICQ: 1568297 -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#5979) next »