PHP 4.0 Bug #8464: PHP SIGABRT's using pspell functions
| From: | schu at schu dot net | Date: | Thu, 28 Dec 2000 21:48:57 +0000 |
| Subject: | PHP 4.0 Bug #8464: PHP SIGABRT's using pspell functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-42478@lists.php.net to get a copy of this message | ||
From: schu@schu.net
Operating system: Solaris 8
PHP version: 4.0.4
PHP Bug Type: Pspell related
Bug description: PHP SIGABRT's using pspell functions
Ok, here is all the info ;)
PHP info:
OS, Solaris 8 Generic February 2000
PHP, php-4.04
aspell, aspell-.32.6
pspell, pspell-.11.2
apache, apache_1.3.14
gcc, gcc version 2.95.2 19991024 (release)
Compile switches:
'./configure' '--with-mysql' '--enable-track-vars'
'--enable-trans-sid'
'--with-apxs=/usr/local/apache/bin/apxs' '--with-ftp' '--with-imap'
'--with-pspell' '--enable-debug'
Link to phpinfo()
http://schu.net/phpinfo.php
Code that causes failure:
<?
$pspell_link = pspell_new ("en");
if (pspell_check ($pspell_link, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>
Could not get it to spit out a core, so I ran httpd in gdb, here is the backtrace:
#0 0xef69a034 in _libc_kill () from /usr/lib/libc.so.1
#1 0xef63512c in abort () from /usr/lib/libc.so.1
#2 0xef52af00 in __default_terminate ()
from /usr/local/apache/libexec/libphp4.so
#3 0xef52af30 in __terminate () from /usr/local/apache/libexec/libphp4.so
#4 0xef52bc28 in __throw () from /usr/local/apache/libexec/libphp4.so
#5 0xef01881c in autil::ConfigData::throw_file_exception (this=0x132de8,
file=0x1410d8 "/root/.aspell.conf") at config_data.cc:30
#6 0xeefeb470 in aspell::Config::read_in (this=0x141350, override=0x140408)
at ../util/config_data.hh:163
#7 0xef004810 in aspell::Manager::setup (this=0x140db4, override=@0x140408)
at manager.cc:562
#8 0xef146c64 in pspell_aspell::PA_Manager::PA_Manager (this=0x140d90,
config=0x140408, h=0x0) at manager.cc:189
#9 0xef147cac in libpspell_aspell_LTX_new_pspell_manager_class (
config=0x140408, h=0x0) at manager.cc:308
#10 0xef2c1594 in new_pspell_manager_class (config=0x140408)
at manager_impl.cc:45
#11 0xef2c2440 in new_pspell_manager (c=0x140932) at manager_impl.cc:254
#12 0xef420364 in php_if_pspell_new (ht=1, return_value=0x141468,
this_ptr=0x0, return_value_used=1) at pspell.c:155
#13 0xef377b54 in execute () from /usr/local/apache/libexec/libphp4.so
#14 0xef3907d0 in zend_execute_scripts (type=8, file_count=3) at zend.c:729
---Type <return> to continue, or q <return> to quit---
#15 0xef3b52d0 in php_execute_script (primary_file=0xeffff6e8) at main.c:1221
#16 0xef3aeb70 in apache_php_module_main (r=0x139078, display_source_mode=0)
at sapi_apache.c:89
#17 0xef3afe34 in send_php (r=0x139078, display_source_mode=0,
filename=0x13aaf8 "/home/www/schu/test2.html") at mod_php4.c:506
#18 0xef3afe78 in send_parsed_php (r=0x139078) at mod_php4.c:517
#19 0x414c8 in ap_invoke_handler ()
#20 0x5e700 in process_request_internal ()
#21 0x5e784 in ap_process_request ()
#22 0x520dc in child_main ()
#23 0x52398 in make_child ()
#24 0x525b4 in startup_children ()
#25 0x52fa4 in standalone_main ()
#26 0x53bb8 in main ()
Lemme know if there is any more information I can give,
thanks for the best app server out there,
schu
--
Edit Bug report at: http://bugs.php.net/?id=8464&edit=1