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

From: Date: Fri, 12 Nov 1999 17:18:30 +0000
Subject: Bug #2711: fopen kills apache -- appears to be regcomp related on Alpha/Linux
Groups: php.dev 
Request: Send a blank email to php-dev+get-12380@lists.php.net to get a copy of this message
From: marc.nozell@compaq.com Operating system: Linux/Alpha PHP version: 3.0.12 PHP Bug Type: Reproduceable crash Bug description: fopen kills apache -- appears to be regcomp related on Alpha/Linux 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); ?>

« previous php.dev (#12380) next »