Bug 3273 - mod_php3 SEGVs when accessing MySQL
Summary: mod_php3 SEGVs when accessing MySQL
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mod_php3
Version: 6.0
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL: http://triton.commerced.com/phpMyAdmin
Depends On:
TreeView+ depends on / blocked
Reported: 1999-06-04 18:00 UTC by Adam Thompson
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-08-28 05:23:24 UTC

Attachments (Terms of Use)

Description Adam Thompson 1999-06-04 18:00:28 UTC
- 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 18:01:59 UTC
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 21:17:59 UTC
I take it this worked in previous PHP3 RPMs?  We have no experience
with MySQL.

Comment 3 Adam Thompson 1999-06-17 14:58:59 UTC
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 05:23:59 UTC
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.