php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40007 Segmentation fault when adding pspell extension
Submitted: 2007-01-03 09:40 UTC Modified: 2009-09-28 08:04 UTC
From: bugs_php at mediaslut dot ch Assigned:
Status: Not a bug Package: Pspell related
PHP Version: 5.2.11 OS: FreeBSD 7.0
Private report: No CVE-ID: None
 [2007-01-03 09:40 UTC] bugs_php at mediaslut dot ch
Description:
------------
After adding the pspell extension, I'm getting a Segmention fault when running scripts on the command line (CLI). 
However, PHP is running fine through Apache.

The same problem occured on previous php/zend versions:
ZendOptimizer-2.5.10a / php-4.4.2

Upgrading to recent versions (php-4.4.4/ZendOptimizer-3.2.0) didn't solve the problem.

The only way to get rid of the segmention fault right now, is to deinstall the pspell extension.

Reproduce code:
---------------
php -v




Actual result:
--------------
PHP 4.4.4 with Suhosin-Patch 0.9.6 (cli) (built: Jan  2 2007 16:22:12)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
    with Zend Extension Manager v1.0.11, Copyright (c) 2003-2006, by Zend Technologies
    with Zend Optimizer v3.2.0, Copyright (c) 1998-2006, by Zend Technologies
Segmentation fault (core dumped)

here's the full core dump:

 gdb /usr/local/bin/php /usr/local/etc/php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypto.so.3
Reading symbols from /usr/lib/libssl.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssl.so.3
Reading symbols from /lib/libcrypt.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.2
Reading symbols from /lib/libm.so.3...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.3
Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.5
Reading symbols from /usr/local/lib/php/20020429/Optimizer/php-4.4.x/ZendOptimizer.so...(no debugging symbols found)...done.
Loaded symbols for /usr/local/lib/php/20020429/Optimizer/php-4.4.x/ZendOptimizer.so
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x00000000 in ?? ()
(gdb) where full
#0  0x00000000 in ?? ()
No symbol table info available.
#1  0x28b9b221 in ?? () from /usr/local/lib/php/20020429/Optimizer/php-4.4.x/ZendOptimizer.so
No symbol table info available.
#2  0x28c5287c in extension_version_info () from /usr/local/lib/php/20020429/Optimizer/php-4.4.x/ZendOptimizer.so
No symbol table info available.
#3  0x281464a4 in tls_last_offset () from /libexec/ld-elf.so.1
No symbol table info available.
#4  0x281425d8 in ?? () from /libexec/ld-elf.so.1
No symbol table info available.
#5  0x28b9b1bc in ?? () from /usr/local/lib/php/20020429/Optimizer/php-4.4.x/ZendOptimizer.so
No symbol table info available.
#6  0x28127738 in _rtld_error () from /libexec/ld-elf.so.1
No symbol table info available.
#7  0x28c2be31 in ?? () from /usr/local/lib/php/20020429/Optimizer/php-4.4.x/ZendOptimizer.so
No symbol table info available.
#8  0x28128813 in find_symdef () from /libexec/ld-elf.so.1
No symbol table info available.
#9  0x28128e72 in dlclose () from /libexec/ld-elf.so.1
No symbol table info available.
#10 0x080e66be in zend_extension_dtor ()
No symbol table info available.
#11 0x080dcc5a in zend_llist_destroy ()
No symbol table info available.
#12 0x080e66a1 in zend_shutdown_extensions ()
No symbol table info available.
#13 0x080e33f9 in zend_shutdown ()
No symbol table info available.
#14 0x080b9cc6 in php_module_shutdown ()
No symbol table info available.
#15 0x080fc6e9 in main ()
No symbol table info available.
(gdb) 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-03 09:48 UTC] derick@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

Crash definitely seems to happen in the optimizer...
 [2009-09-28 08:04 UTC] bugs_php at mediaslut dot ch
It seems like this problem is only FreeBSD related. It can be fixed by moving pspell.so to the end of the extensions.ini list.

For further info see bugreport: http://bugs.php.net/bug.php?id=40148
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 17:01:30 2024 UTC