php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40530 php cores when pspell module is installed
Submitted: 2007-02-18 07:16 UTC Modified: 2007-02-18 13:00 UTC
From: php at nearlyfreespeech dot net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5.2.1 OS: FreeBSD 6
Private report: No CVE-ID: None
 [2007-02-18 07:16 UTC] php at nearlyfreespeech dot net
Description:
------------
In PHP 5.2.1 and PHP 5.2-200702180530, building and loading the pspell module causes php to crash on exit.


Despite the apparent location in the session module, commenting out the extension=pspell.so line in php.ini makes php exit without crashing.

Aspell is version 0.60.5.



Reproduce code:
---------------
To reproduce:

$ echo | php   
-ksh93: 59569: Memory fault(coredump)

$

Expected result:
----------------
$ echo | php             

$ 


Actual result:
--------------
(gdb) where
#0  0x00000000 in ?? ()
#1  0x29025050 in __do_global_dtors_aux ()
   from /nfsn/apps/php5/lib/php/extensions/no-debug-non-zts-20060613/session.so
#2  0x2902b6a8 in _fini ()
   from /nfsn/apps/php5/lib/php/extensions/no-debug-non-zts-20060613/session.so
#3  0x2826a6b8 in tls_dtv_generation () from /libexec/ld-elf.so.1
#4  0x2826c6b8 in ?? () from /libexec/ld-elf.so.1
#5  0xbfbfe938 in ?? ()
#6  0x2824d7b6 in elf_hash () from /libexec/ld-elf.so.1
#7  0x282500a0 in dlclose () from /libexec/ld-elf.so.1
#8  0x08153d30 in zend_hash_apply_deleter (ht=0x8266bc0, p=0x8322240)
    at /tmp/source/php5.2-200702180530/Zend/zend_hash.c:611
#9  0x08153dcb in zend_hash_graceful_reverse_destroy (ht=0x8266bc0)
    at /tmp/source/php5.2-200702180530/Zend/zend_hash.c:646
#10 0x0814a898 in zend_shutdown ()
    at /tmp/source/php5.2-200702180530/Zend/zend.c:734
#11 0x08113553 in php_module_shutdown ()
    at /tmp/source/php5.2-200702180530/main/main.c:1677
#12 0x081c4fb7 in main (argc=1, argv=0xbfbfec50)
    at /tmp/source/php5.2-200702180530/sapi/cli/php_cli.c:1302


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-18 13:00 UTC] johannes@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

Please try to re-arrange the order of the extension= entries in oyur php.ini file (making pspell.so the first or the last one). On FreeBSD there are a few issues for dl
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 08:01:30 2025 UTC