PHP 4.0 Bug #8133: pspell_new() in Apache module segfaults

From: Date: Wed, 06 Dec 2000 05:24:12 +0000
Subject: PHP 4.0 Bug #8133: pspell_new() in Apache module segfaults
Groups: php.dev 
Request: Send a blank email to php-dev+get-40208@lists.php.net to get a copy of this message
From: torben@php.net Operating system: Mandrake 7.0 PHP version: 4.0 Latest CVS (05/12/2000) PHP Bug Type: Pspell related Bug description: pspell_new() in Apache module segfaults This is a fresh source wipe & checkout from cvs. I also installed fresh pspell & aspell packages of the latest versions; they work fine from the command line. The command line PHP seems to work fine; the module version segfaults. Configure script (remove the apxs line for the cli version): ./configure \ --with-apxs=/usr/local/apache/bin/apxs \ --with-pspell \ --with-mysql=/usr \ --with-gd \ --with-xml \ --with-zlib \ --with-curl \ --with-sablot \ --with-iodbc=/usr/local \ --enable-wddx \ --enable-versioning \ --enable-sysvshm \ --enable-sysvsem \ --enable-sockets \ --enable-shmop \ --enable-debug I cannot get a backtrace when this happens; running gdb on httpd just gives: Error while mapping shared library sections: "/sbin/": not in executable format: Is a directory. Error while reading shared library symbols: "/sbin/": can't read symbols: Is a directory. warning: find_solib: Can't read pathname for load map: Input/output error ...in an infinite loop until I kill gdb from another terminal. I did a strace, if that helps. It was rather huge, and is located at http://www.thebuttlesschaps.com/php-pspell-segfault.txt The script with which I am testing: <?php /* -*- mode: c++; minor-mode: font -*- */ include('./utils.inc'); include('./speedlib.inc'); $version = phpversion(); ?> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML-3.2//EN"> <html> <head> <title></title> </head> <body> <h1><?php echo $version ?> list answer testbed</h1> <?php error_reporting(E_ALL); $dictid = pspell_new('en', '', '', '', PSPELL_NORMAL); echo "Got dictionary: '$dictid'<br>\n"; ?> <hr> </body> </html> (There a a couple of extraneous lines at the beginning but they don't affect anything.) -- Edit Bug report at: http://bugs.php.net/?id=8133&edit=1

« previous php.dev (#40208) next »