Bug 3273 - mod_php3 SEGVs when accessing MySQL
mod_php3 SEGVs when accessing MySQL
Product: Red Hat Linux
Classification: Retired
Component: mod_php3 (Show other bugs)
i386 Linux
high Severity high
: ---
: ---
Assigned To: David Lawrence
Depends On:
  Show dependency treegraph
Reported: 1999-06-04 14:00 EDT by Adam Thompson
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-08-28 01:23:24 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Adam Thompson 1999-06-04 14:00:28 EDT
- Installed SRPMs for apache (1.3.6-8), mod_php3 (3.0.8-1)
and MySQL (3.22.22-1);
(MySQL SRPM came directly from www.tcx.se)
- compiled MySQL rpms, all went fine.  Built and installed
without error.  MySQL seems to be completely stable (so
far :-)
- edited mod_php3.spec, added "--with-mysql" to configure
command.  Built and installed without error.
- rebuilt/installed apache without error
- rebuilt/reinstalled mod_php3 (just in case, 'cuz I just
reinstalled apache-devel... wasn't sure if there were any

So far, so good... mod_php3 is compiled with MySQL support,
apache dynamically loads mod_php3 correctly, everything
seems OK.

Accessing PHP3 pages that do database access causes apache
to report:
[Thu Jun  3 21:19:41 1999] [notice] child pid 22534 exit
signal Segmentation fault (11)

there also appears to be a bug in calling external programs
from php3, as if I attempt to execute
"/usr/bin/mysqladmin --user=root --password= --
host=localhost --port= version"
from inside a PHP page, I *also* see in the error_log:
sh: /mysqladmin: No such file or directory
sh: /mysqladmin: No such file or directory
sh: /mysqladmin: No such file or directory

immediately followed by a notice of a child SEGVing.

I know php3.0.8 changed a couple of things related to
glibc2.1; I'm wondering if this could be another glibc2.1-
related issue?

Incidentally, this box was *supposed* to be my production
server.... *sigh*
Comment 1 Adam Thompson 1999-06-04 14:01:59 EDT
Forgot to mention: when provoking this bug, I do frequently
get "document has no data" errors from Netscape.  The child is indeed
sometimes dying before it outputs data!
Comment 2 Preston Brown 1999-06-14 17:17:59 EDT
I take it this worked in previous PHP3 RPMs?  We have no experience
with MySQL.
Comment 3 Adam Thompson 1999-06-17 10:58:59 EDT
Actually, the last working configuration was RH5.2;
further investigation has revealed that PHP 3.0.8 and newer have some
problems with MySQL on Intel gcc- and egcs- based platforms.

Rolling back to PHP 3.0.7 fixes the problem on everything EXCEPT
RedHat 6.0, since 3.0.7 breaks with glibc2.1.
Comment 4 Preston Brown 1999-08-28 01:23:59 EDT
this should be resolved with php 3.0.12, available in RawHide (and the
next release, eventually).  Please open this bug again if this is not
the case.

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