-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[EMAIL PROTECTED] wrote:
I'm having a problem with MySQL 4.0.4-beta and 4.0.5-alpha (both -MAX) on RedHat
8.0. Here's the setup:

RedHat 8.0 (glibc-2.2.93-5)
   Kernel: 2.4.18-14
Apache 2.0.43 w/PHP 4.2.3
Mysql compiled into PHP using Mysql Libs:
# ldd /usr/lib/httpd/libphp4.so
libmysqlclient.so.11 => /usr/lib/libmysqlclient.so.11 (0x403f9000)

The problem is with mysql_connect (i suppose). When i use $_SERVER['HTTP_HOST']
as the host argument to mysql_connect(), the mysqld process segfaults (or so the
error log says). It says the process is hanging, then mysqld_safe kills it. (If
you don't know what $_SERVER['HTTP_HOST'] is, it's the current website that php
script is on (like www.mysql.com)). Anyway, if i change the host argument to
127.0.0.1, it works fine.

Is there a known problem with this? What would cause this? Mybe something is out
of whack in PHP's implimentation of mysql_connect (on the tcp/ip side)? Or myabe
it's something wrong with the MySQL library?

Comments?
RedHat-8.0 has known issues with their GLIBC and certain threaded applications like MySQL (and certain versions of Java, for example) when doing TCP/IP connections. What MySQL binaries are you using? The only ones that seem to work reliably are the _binary_ RPMs from MySQL AB, as they are statically compiled against a GLIBC that does not have this issue.

-Mark


- -- MySQL 2003 Users Conference -> http://www.mysql.com/events/uc2003/

For technical support contracts, visit https://order.mysql.com/?ref=mmma

__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Mark Matthews <[EMAIL PROTECTED]>
/ /|_/ / // /\ \/ /_/ / /__ MySQL AB, Full-Time Developer - JDBC/Java
/_/ /_/\_, /___/\___\_\___/ Flossmoor (Chicago), IL USA
<___/ www.mysql.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.1.90 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE9/PwbtvXNTca6JD8RAgMJAKCPYQgXqekjqkaGGJEFGE31QtDPAwCfQDy0
KkYig9GU97aS44ANEEb54c8=
=L7fN
-----END PGP SIGNATURE-----


---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to