PHP 4.0 Bug #8099 Updated: Segmentation Fault when executing fopen()

From: Date: Tue, 05 Dec 2000 13:33:37 +0000
Subject: PHP 4.0 Bug #8099 Updated: Segmentation Fault when executing fopen()
Groups: php.dev 
Request: Send a blank email to php-dev+get-40127@lists.php.net to get a copy of this message
ID: 8099 Updated by: sniper Reported By: jeff@meta-craft.com Status: Feedback Bug Type: Reproduceable crash Assigned To: Comments: Could you please try the latest snapshot from http://snaps.php.net/ to check if this is fixed already. And to get useful backtraces you must configure PHP with --enable-debug --Jani Previous Comments: --------------------------------------------------------------------------- [2000-12-04 13:53:00] jeff@meta-craft.com I've narrowed the code snipp down to this. $page = fopen("http://web.slashdot.org", "r"); ... fclose($page); it seems fopen() is causing a segfault, I've tried normal files on my filesystem, same crash. here's a backtrace #0 0x4011e717 in memcpy() from /lib/libc.so.6 #1 0x403a228b in _estrndup () from /usr/lib/apache/1.3/libphp4.so #2 0404226d1 in url_parse () from /usr/lib/apache/1.3.libphp4.so Machine Infomation: PII 300 128 meg ram Kernel: 2.4.0-test 5 php release php4.0.3-pl1 (debian release 7) apache 1.3.14 (debian release 1) libc6 2.2 (debian release 4) --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=8099

« previous php.dev (#40127) next »