From:             
Operating system: FreeBSD 7.3 amd64
PHP version:      5.3.5
Package:          MySQL related
Bug Type:         Bug
Bug description:Segmentation Fault while useing mysql.so

Description:
------------
PHP was configured with:

--prefix=/usr/local/"$DNAME" \

--target=i686-pc-freebsd \

--disable-debug \

--enable-exif \

--enable-libxml \

--enable-soap \

--with-iconv \

--with-zlib \

--enable-cli \

--with-curl \

--enable-mbstring=all \

--with-gettext \

--with-apxs2=/usr/local/apache/bin/apxs \

--with-gd \

--with-openssl \

--with-jpeg-dir \

--with-pear=/usr/local/php/lib/php \

--with-freetype-dir=/home/www/ \

--with-mssql \

--disable-phar \

--with-mcrypt



then compiled and installed to:

/usr/local/php-5.3.5



After that I needed to compile mysql.so from PHP extensions sources. We
need to test basic mysql module before we will write our own (mysql is
installed into /usr/local/mysql). So in directory of PHP sources
(/home/soft/php-5.3.5/ext/mysql) :

machine1# /usr/local/php-5.3.5/bin/phpize

machine1# ./configure --with-php-config=/usr/local/php-5.3.5/bin/php-config
--with-mysql=/usr/local/mysql

machine1# make



Here is everything OK, but after:

machine1# /usr/local/php-5.3.5/bin/php -m -d
extension=/home/php-5.3.5/ext/mysql/modules/mysql.so



I recieve a Segmentation fault: 11 (core dumped)

Test script:
---------------
Just run php:

/usr/local/php-5.3.5/bin/php -m -d
extension=/home/php-5.3.5/ext/mysql/modules/mysql.so

Expected result:
----------------
machine1# /usr/local/php-5.3.5/bin/php -m -d
extension=/home/php-5.3.5/ext/mysql/modules/mysql.so

[PHP Modules]

Core

ctype

curl

date

dom

ereg

exif

fileinfo

filter

gd

gettext

hash

iconv

json

libxml

mbstring

mcrypt

mssql

mysql

openssl

pcre

PDO

pdo_sqlite

posix

Reflection

session

SimpleXML

soap

SPL

SQLite

sqlite3

standard

tokenizer

xml

xmlreader

xmlwriter

zlib



[Zend Modules]



machine1# 

Actual result:
--------------
machine1# /usr/local/php-5.3.5/bin/php -m -d
extension=/home/php-5.3.5/ext/mysql/modules/mysql.so

[PHP Modules]

Core

ctype

curl

date

dom

ereg

exif

fileinfo

filter

gd

gettext

hash

iconv

json

libxml

mbstring

mcrypt

mssql

mysql

openssl

pcre

PDO

pdo_sqlite

posix

Reflection

session

SimpleXML

soap

SPL

SQLite

sqlite3

standard

tokenizer

xml

xmlreader

xmlwriter

zlib



[Zend Modules]



Segmentation fault: 11 (core dumped)

machine1# 

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53925&edit=1
-- 
Try a snapshot (PHP 5.2):            
http://bugs.php.net/fix.php?id=53925&r=trysnapshot52
Try a snapshot (PHP 5.3):            
http://bugs.php.net/fix.php?id=53925&r=trysnapshot53
Try a snapshot (trunk):              
http://bugs.php.net/fix.php?id=53925&r=trysnapshottrunk
Fixed in SVN:                        
http://bugs.php.net/fix.php?id=53925&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53925&r=needdocs
Fixed in release:                    
http://bugs.php.net/fix.php?id=53925&r=alreadyfixed
Need backtrace:                      
http://bugs.php.net/fix.php?id=53925&r=needtrace
Need Reproduce Script:               
http://bugs.php.net/fix.php?id=53925&r=needscript
Try newer version:                   
http://bugs.php.net/fix.php?id=53925&r=oldversion
Not developer issue:                 
http://bugs.php.net/fix.php?id=53925&r=support
Expected behavior:                   
http://bugs.php.net/fix.php?id=53925&r=notwrong
Not enough info:                     
http://bugs.php.net/fix.php?id=53925&r=notenoughinfo
Submitted twice:                     
http://bugs.php.net/fix.php?id=53925&r=submittedtwice
register_globals:                    
http://bugs.php.net/fix.php?id=53925&r=globals
PHP 4 support discontinued:          http://bugs.php.net/fix.php?id=53925&r=php4
Daylight Savings:                    http://bugs.php.net/fix.php?id=53925&r=dst
IIS Stability:                       
http://bugs.php.net/fix.php?id=53925&r=isapi
Install GNU Sed:                     
http://bugs.php.net/fix.php?id=53925&r=gnused
Floating point limitations:          
http://bugs.php.net/fix.php?id=53925&r=float
No Zend Extensions:                  
http://bugs.php.net/fix.php?id=53925&r=nozend
MySQL Configuration Error:           
http://bugs.php.net/fix.php?id=53925&r=mysqlcfg

Reply via email to