Bug 2593 - httpd segfaults when reading from file using php3
httpd segfaults when reading from file using php3
Status: CLOSED NEXTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: mod_php3 (Show other bugs)
6.0
i386 Linux
high Severity high
: ---
: ---
Assigned To: David Lawrence
http://alidrus.mlcc.com.my/~abu/rh6bu...
:
: 3369 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 1999-05-06 04:07 EDT by abu
Modified: 2008-05-01 11:37 EDT (History)
5 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 1999-08-27 16:42:04 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description abu 1999-05-06 04:07:48 EDT
There seems to be something very wrong with redhat 6.0's
version of mod_php3. perhaps the problem could be deeper
(like glibc for instance).The problem seems to manifest
itself when I try to access a file using fopen and
subsequently fgets on my php3 script. After a certain number
of fgets, the child process spawned by apache seems to die
off with a segmentation fault.

Here is how the bug can be reproduced:

When I run this script:

http://alidrus.mlcc.com.my/~abu/test.phps

I check the log file and get this message in the apache
logfile /var/logs/httpd/error_log:

[Thu May  6 14:53:59 1999] [notice] child pid 2078 exit
signal Segmentation fault (11)

The user who clicks on the link:

http://alidrus.mlcc.com.my/~abu/test.php3

would subsequently get a message saying "Document contains
no data".
Comment 1 whynot 1999-05-09 16:22:59 EDT
This also occurs on *fclose*. This is really serious and I don't see a
quick work-around :-(

This bug is also in the php3Bugdatabase at
http://bugs.php.net/bugs.php3?id=1313
Comment 2 whynot 1999-05-23 13:15:59 EDT
well, the announcement of PHP3.0.8 states that this bug is fixed. Now
if there is a rpm avaible any time soon this should be considered
fixed.
Comment 3 whynot 1999-05-28 17:38:59 EDT
I just tested the new 3.0.8-1 RPM of mod_php3. It DOES NOT fix the bug
when used with the apache that comes with Redhat 6.0. So you still
need to fix that bug. I am suprised that there are not more people
complaining about this bug since it is quite important if you plan to
use RedHat 6.0 as a Webhosting-Platform
Comment 4 Preston Brown 1999-06-14 17:18:59 EDT
*** Bug 3369 has been marked as a duplicate of this bug. ***

The mod_php3 RPM from the errata is not really compiled with
postgresql support, as the errata info would lead one to
believe.  To enable postgresql support, the line in the SPEC
file "--with-postgresql" must be changed to
"--with-pgsql=/usr/lib/pgsql"


------- Additional Comments From bentonw@stolaf.edu  06/09/99 13:03 -------
rather, that should be "--with-pgsql", with no directory specified --
sorry, I spoke too soon

------- Additional Comments From jbj@redhat.com  06/10/99 11:09 -------


*** Bug 3384 has been marked as a duplicate of this bug. ***

The .spec file uses --with-postgresql.  It SHOULD read,
"--with-pgsql".
Comment 5 Preston Brown 1999-08-27 16:42:59 EDT
all of these php bugs have been fixed for the upcoming release.

Note You need to log in before you can comment on or make changes to this bug.