简体   繁体   中英

PHP and Apache Segmentation Fault with large variable size

I seem to be having a really weird problem. I have a single variable (string) where I am storing some data. As soon as the data stored in that variable exceeds 2KB, Apache Seg faults and PHP returns an error 324.

I am saving this in my session variable (ie. $_SESSION["my_index"]) and can't change that due to the nature of the script.

Environment:

CentOS 5 64bit. PHP 5.2.16 (Can't upgrade since 5.3 is not supported by ZendOptimizer). Zend Version 2.2.0. Apache 2.2.3`

The only thing httpd logs mention is: [Thu Apr 14 01:57:00 2011] [notice] child pid 22493 exit signal Segmentation fault (11)

Thanks

EDIT: It seems like $_SESSION is not the culprit. I have tried using another variable name that is not predefined by PHP and the same error occurs

Try making a test case so you can crash PHP when running in CLI mode. You can then compile PHP and run the script in GDB to create a backtrace.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM