php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8099 Segmentation Fault when executing fopen()
Submitted: 2000-12-04 13:53 UTC Modified: 2000-12-30 19:35 UTC
From: jeff at meta-craft dot com Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: Debian Linux/Woody
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jeff at meta-craft dot com
New email:
PHP Version: OS:

 

 [2000-12-04 13:53 UTC] jeff at meta-craft dot 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)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-05 08:33 UTC] sniper@php.net
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
 [2000-12-30 19:35 UTC] sniper@php.net
No feedback. And I can not reproduce this.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jul 15 19:00:01 2026 UTC