#48785 [Opn]: PHP -i segfaults

[email protected] ("gerwin at digitalus dot nl")
Newsgroups php.bugs
Message-ID <[email protected]>
 ID:               48785
 User updated by:  gerwin at digitalus dot nl
 Reported By:      gerwin at digitalus dot nl
 Status:           Open
 Bug Type:         Reproducible crash
 Operating System: RHEL 5
 PHP Version:      5.3.0
 New Comment:

Configure Command =>  './configure'  '--host=i686-redhat-linux-gnu'
'--build=i686-redhat-linux-gnu' '--target=i386-redhat-linux'
'--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr'
'--bindir=/usr/bin' '--sbindir=/usr/sbin' '--syscon
fdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include'
'--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var'
'--sharedstatedir=/usr/com' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--cache-file=../confi
g.cache' '--with-libdir=lib' '--with-config-file-path=/etc'
'--with-config-file-scan-dir=/etc/php.d' '--enable-debug' '--with-pic'
'--disable-rpath' '--without-pear' '--with-bz2' '--with-curl'
'--with-exec-dir=/usr/bin' '--with-freetype-
dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext'
'--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl'
'--with-png-dir=/usr' '--with-pspell' '--with-expat-dir=/usr'
'--with-pcre-regex=/usr' '--with-zlib'
 '--with-layout=GNU' '--enable-exif' '--enable-ftp'
'--enable-magic-quotes' '--enable-sysvsem' '--enable-sysvshm'
'--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid'
'--enable-yp' '--enable-wddx' '--with-kerberos' '--enable-ucd
-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit'
'--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio'
'--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite'
'--with-libxml-dir=/usr' '--with-xml' '--en
able-force-cgi-redirect' '--enable-pcntl' '--with-imap=shared'
'--with-imap-ssl' '--enable-mbstring=shared' '--enable-mbstr-enc-trans'
'--enable-mbregex' '--with-gd=shared' '--enable-bcmath=shared'
'--enable-dba=shared' '--with-db4=/usr'
 '--with-xmlrpc=shared' '--with-ldap=shared' '--with-mysql=shared,/usr'
'--with-mysqli=shared,/usr/bin/mysql_config' '--enable-dom=shared'
'--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-pgsql=shared'
'--with-snmp=shared,/usr' '--
enable-soap=shared' '--with-xsl=shared,/usr'
'--enable-xmlreader=shared' '--enable-xmlwriter=shared'
'--enable-fastcgi' '--with-mcrypt=shared,/usr' '--enable-sockets'
'--enable-pdo=shared' '--with-pdo-odbc=shared,unixODBC,/usr' '--with-p
do-mysql=shared,/usr' '--with-pdo-pgsql=shared,/usr'
'--with-pdo-sqlite=shared'


Previous Comments:
------------------------------------------------------------------------

[2009-07-03 12:08:44] [email protected]

What was the configure line you used?

------------------------------------------------------------------------

[2009-07-03 08:33:48] gerwin at digitalus dot nl

Extra note: a build created an ran on RHEL 4 will NOT segfault when
using -i

Debug Build => yes

First output:

Program received signal SIGSEGV, Segmentation fault.
0x00b14820 in ?? () from /usr/lib/php/modules/pdo_sqlite.so

Backtrace:
(gdb) bt                                                              
#0  0x00b14820 in ?? () from /usr/lib/php/modules/pdo_sqlite.so       
#1  0x65646e75 in ?? ()                                               
#2  0x656e6966 in ?? ()                                               
.
.
.
.
#67 0x6576206b in ?? ()
#68 0x6f697372 in ?? ()
#69 0x0060206e in ?? () from /usr/lib/libxml2.so.2
Backtrace stopped: previous frame inner to this frame (corrupt stack?)

------------------------------------------------------------------------

[2009-07-03 07:55:53] [email protected]

Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.



------------------------------------------------------------------------

[2009-07-03 07:15:27] gerwin at digitalus dot nl

Some things I noticed:
- Disabling the sqlite.so module will "solve" the problem. 
- when using phpinfo() on a website, there is NO segfault on from the
command line

------------------------------------------------------------------------

[2009-07-03 07:09:36] gerwin at digitalus dot nl

Description:
------------
When executing php -i (php information) it shows some output but then
it will segfault.




Reproduce code:
---------------
On commandline: php -i


Expected result:
----------------
Probably missing entries

Actual result:
--------------
Segmentation faul.

Strace:
write(1, "PDO Driver for SQLite 3.x", 25PDO Driver for SQLite 3.x) =
25
write(1, " => ", 4 => )                     = 4
write(1, "enabled", 7enabled)                  = 7
write(1, "\n", 1
)                       = 1
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=48785&edit=1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.