From:             bugs_php at mediaslut dot ch
Operating system: FreeBSD 5.4
PHP version:      4.4.4
PHP Bug Type:     Pspell related
Bug description:  Segmentation fault when adding pspell extension

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) 

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

Reply via email to