Bug #2711 Updated: fopen kills apache -- appears to be regcomp related on Alpha/Linux

From: Date: Sun, 16 Jun 2002 13:01:07 +0000
Subject: Bug #2711 Updated: fopen kills apache -- appears to be regcomp related on Alpha/Linux
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-10723@lists.php.net to get a copy of this message
ID: 2711 Updated by: sander@php.net Reported By: marc.nozell@compaq.com -Status: Open +Status: Bogus Bug Type: Reproducible Crash Operating System: Linux/Alpha PHP Version: 3.0.12 New Comment: Thank you for taking the time to report a problem with PHP. Unfortunately, PHP 3 is no longer supported. Please download the latest version of PHP 4 from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [1999-11-12 12:18:27] marc.nozell@compaq.com This bug looks similar to #1931, but... I'm running RedHat V6.0 on an AlphaServer DS10. Packages: Apache 1.3.9, MySQL 3.22.27 and PHP 3.0.12 I have a similar configuration on a ProLiant 1850R which works fine. 1) Apache+MySQL+PHP module -- fopen on a URL fails with "Invalid URL". 2) I rebuild PHP as a standalone program and uncommented some of debug code in url.c and found that url_parse() was failing after the second extended regexp. 3) Then rebuilt PHP as a standalong program using --with-system-regexp and then the code worked. 4) HOWEVER, when I rebuilt PHP3 as an apache module --with-system-regexp, the code still fails, but with this in the error log: FATAL: emalloc(): Unable to allocate 4294967293 bytes I can't get apache to leave a core file. If httpd is run from gdb, it simply dies with "Program exited with code 01." and bt says "No stack." -marc ------------------------------- The PHP3 code is the same one found in the manual: <? $fp = fopen("http://www.ispworks.com/", "r"); if (!$fp) { die("Can't open URL"); } while ($buffer = fgets($fp, 4096)) { echo $buffer; } fclose($fp); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=2711&edit=1

« previous php.bugs (#10723) next »