From:             nofulfillment at numbinside dot net
Operating system: GNU/Linux (Slackware 10.1)
PHP version:      5.0.3
PHP Bug Type:     MySQL related
Bug description:  MySQL Extension Segmentation Fault

Description:
------------
I'm working with phpMyAdmin (irrelivent, but aids in understanding), and I
had the MYSQL_SOCKET file configured wrong. PHP's MySQL extension was
creating a Segmentation fault in that it was trying to read a non-existant
file. 

My configure line, I do not believe to be relavent, but I have included it
anyways. (Along with some other details from phpinfo())
System:            Linux NcFTestServer-Linux 2.4.29-grsec #7 SMP Thu Feb 3
18:41:23 PST 2005 i686
Build Date:        Dec 23 2004 15:48:45
Configure Command: './configure' '--prefix=/usr' '--disable-static'
'--with-apxs=/usr/sbin/apxs' '--sysconfdir=/etc' '--enable-discard-path'
'--with-config-file-path=/etc/apache' '--enable-safe-mode'
'--with-openssl' '--with-mhash' '--enable-bcmath' '--with-bz2'
'--with-pic' '--enable-calendar' '--enable-ctype' '--with-gdbm'
'--with-db3' '--enable-dbase' '--enable-ftp' '--with-iconv' '--with-exif'
'--with-gd' '--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png'
'--with-gmp' '--with-mysql' '--with-gettext=shared,/usr'
'--with-expat-dir=/usr' '--with-xml' '--enable-wddx' '--with-mm=/usr'
'--enable-trans-sid' '--enable-shmop' '--enable-sockets'
'--with-regex=php' '--enable-sysvsem' '--enable-sysvshm' '--enable-yp'
'--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared'
'--disable-debug' '--with-zlib=/usr'

Using php.ini-recommended, although this does NOT change why it's failing
(tried falling back to -dist, but had the same problem). 

GDB backtrace is mostly irrelievent, and it was NOT built with debugging
symbols. 

I believe that this can be solved by checking to see if the file exists.

Reproduce code:
---------------
Try connecting to MySQL using a non-existant local socket file. (i.e.,
/tmp/non-exist.sock)

Expected result:
----------------
When trying to run phpMyAdmin, I was expecting to see the login page.

Actual result:
--------------
Output from Bash trying to WGET it to see what happens:

[EMAIL PROTECTED]:/# wget http://server/phpMyAdmin_folder/index.php
--11:35:05--  http://server/phpMyAdmin_folder/index.php
Resolving server... done.
Connecting to server[i.p.v.4]:80... connected.
HTTP request sent, awaiting response...
11:35:06 ERROR -1: No data received.

-- 
Edit bug report at http://bugs.php.net/?id=32461&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32461&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=32461&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=32461&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32461&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32461&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32461&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32461&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32461&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32461&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32461&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=32461&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=32461&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32461&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32461&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32461&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32461&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32461&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32461&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32461&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32461&r=mysqlcfg

Reply via email to