From: tokul at users dot sourceforge dot net Operating system: OpenBSD 3.8 PHP version: 5CVS-2005-12-06 (snap) PHP Bug Type: Gettext related Bug description: gettext call segfaults with memory allocation error
Description: ------------ If gettext extension manages to locate .mo file, script breaks with memory allocation error. php compiled with --disable-all --enable-cli --with-gettext same error in 5.0.4 and 5.1.1. do you need php.core file? Reproduce code: --------------- bindtextdomain('test','./'); textdomain('test'); setlocale(LC_ALL, 'ru_RU.UTF-8'); putenv('LC_ALL=ru_RU.UTF-8'); echo _("Test"); Expected result: ---------------- Test Actual result: -------------- tail of kdump ----- 15066 php CALL mmap(0,0x4395ef38,0x1,0x2,0x3,0,0,0) 15066 php RET mmap -1 errno 12 Cannot allocate memory 15066 php CALL mmap(0,0x4395f000,0x3,0x1002,0xffffffff,0,0,0) 15066 php RET mmap -1 errno 12 Cannot allocate memory 15066 php PSIG SIGSEGV SIG_DFL code 1 addr=0x58e64 trapno=1 15066 php NAMI "php.core" ----- -- Edit bug report at http://bugs.php.net/?id=35575&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35575&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35575&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35575&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35575&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35575&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35575&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35575&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35575&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35575&r=support Expected behavior: http://bugs.php.net/fix.php?id=35575&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35575&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35575&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35575&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35575&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35575&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35575&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35575&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35575&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35575&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35575&r=mysqlcfg