From: [EMAIL PROTECTED]
Operating system: Mandrake 8.2
PHP version: 4.2.1
PHP Bug Type: *Spelling functions
Bug description: pspell_new causes a segmentation fault (11)
My browser reports that the page cannot be displayed,
and the apache log includes a segmentation fault (11),
when I try and open the following php script.
When the pspell line is commented out the page displays:
"Hello".
Any suggestions? Thanks.
versions:
aspell 33.7.1
pspell 12.2 with patch
php 4.2.1
apache 1.3.24
php configure:
./configure \
--with-debug \
--with-mysql=/usr \
--with-apxs=/usr/local/apache/bin/apxs \
--with-pspell \
--with-jpeg-dir=/usr/lib \
--with-png-dir=/usr/lib \
--with-zlib-dir=/usr/lib \
--with-freetype-dir=/usr/lib \
--with-gd=/usr \
--enable-inline-optimisation
php script:
<?php
echo "<html>";
echo "Hello";
$dic = pspell_new("en");
echo "</html>";
?>
gdb backtrace:
Program received signal SIGSEGV, Segmentation fault.
0x003c2c82 in throw_helper (eh=0x1010100, pc=0x0, my_udata=0x0,
offset_p=0xbfffdaa0) at ../../gcc/libgcc2.c:3168
3168 ../../gcc/libgcc2.c: No such file or directory.
in ../../gcc/libgcc2.c
(gdb) bt
#0 0x003c2c82 in throw_helper (eh=0x1010100, pc=0x0, my_udata=0x0,
offset_p=0xbfffdaa0) at ../../gcc/libgcc2.c:3168
#1 0x0063b796 in aspell::Config::read_in (this=0x8, override=0x10)
at /usr/include/g++-3/std/bastring.h:343
#2 0x0043c26c in __EXCEPTION_TABLE__ () from
/usr/local/lib/libpspell.so.4
#3 0x003e37a1 in nothrow () from /usr/local/apache/libexec/libphp4.so
#4 0x00438a00 in PspellString virtual table ()
from /usr/local/lib/libpspell.so.4
--
Edit bug report at http://bugs.php.net/?id=17402&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=17402&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=17402&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=17402&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=17402&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17402&r=support
Expected behavior: http://bugs.php.net/fix.php?id=17402&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=17402&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=17402&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=17402&r=globals