#51024 [NEW]: segmentation fault when concatenating very large strings on Redhat x86
From: mikerudra at yahoo dot com
Operating system: Redhat EL
PHP version: 5.2SVN-2010-02-12 (snap)
PHP Bug Type: Scripting Engine problem
Bug description: segmentation fault when concatenating very large strings on Redhat x86
Description:
------------
Hi guys,
I checked this bug report
http://bugs.php.net/bug.php?id=50207
and I updated to a release version from today.
The bug is still there as you can see here
http://nats.hotladies.com/nfo.php
Please tell me what is to be done, I need to install NATS and they do not
accept 5.3, I need the 5.2 version, please help.
Thanks
Reproduce code:
---------------
$s = str_repeat('A', pow(2,31));
$s .= 'B'; // fails with segfault
printf("strlen: %u last-char: %c", strlen($s), $s[pow(2,31)]);
Expected result:
----------------
Donno, should just work?! Is used by NATS and I got an error working with
ioncube encoded source code...
Actual result:
--------------
Notice: Uninitialized string offset: -2147483648 in
/var/www/vhosts/nats.hotladies.com/nats/www/nfo.php on line 7
strlen: 1 last-char: �
--
Edit bug report at http://bugs.php.net/?id=51024&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51024&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51024&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51024&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51024&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51024&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51024&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51024&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51024&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51024&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51024&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51024&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51024&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51024&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51024&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51024&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51024&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51024&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51024&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51024&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51024&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51024&r=mysqlcfg
Thread (2 messages)
- mikerudra at yahoo dot com