#48785 [Fbk->Opn]: PHP -i segfaults
| From: | gerwin at digitalus dot nl | Date: | Fri, 03 Jul 2009 08:33:50 +0000 |
| Subject: | #48785 [Fbk->Opn]: PHP -i segfaults | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-139192@lists.php.net to get a copy of this message | ||
ID: 48785
User updated by: gerwin at digitalus dot nl
Reported By: gerwin at digitalus dot nl
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: RHEL 5
PHP Version: 5.3.0
New Comment:
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?)
Previous Comments:
------------------------------------------------------------------------
[2009-07-03 07:55:53] jani@php.net
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