From: Operating system: Ubuntu 10.04.3 LTS PHP version: 5.3.8 Package: Apache2 related Bug Type: Bug Bug description:Segmentation fault
Description: ------------ Using ZendFramework-1.11.10. Seg fault occurs also in 5.3.2 as well as 5.3.8. Does not occur in 5.2.4. Difficult to reproduce, but I will include the gdb backtrace. Basically assigning the value of variable to another, causes the seg fault. I can not determine why. The line $this->_element = $element; causes the seg fault. Test script: --------------- public function setElement($element) { if ((!$element instanceof Zend_Form_Element) && (!$element instanceof Zend_Form) && (!$element instanceof Zend_Form_DisplayGroup)) { require_once 'Zend/Form/Decorator/Exception.php'; throw new Zend_Form_Decorator_Exception('Invalid element type passed to decorator'); } $this->_element = $element; return $this; } Expected result: ---------------- Not this: exit signal Segmentation fault (11) Actual result: -------------- Program terminated with signal 11, Segmentation fault. #0 0x00007ffd348abe53 in _zend_mm_free_canary_int (heap=0x7ffd39b11130, p=0x21143c453bb97f0f) at /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c:2090 2090 /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c: No such file or directory. in /build/buildd/php5-5.3.2/Zend/zend_alloc_canary.c (gdb) dump_bt executor_globals.current_execute_data [0x386f2e30] setElement() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Form/Decorator/Abstract.php:186 [0x386f2ac8] setElement() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Form/Element.php:2030 [0x386f28f0] render() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Form/Element.php:2046 [0xa59d03f0] __toString() [0x386f1080] ??? /web/vhosts/imac.michael.dev.bluehawk.evanta.com/website/application/views/scrip ts/contacts/duplicate.phtml:186 [0x386f0e80] ??? /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/View.php:108 [0x386f0c38] _run() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/View/Abstract.php:888 [0x386f0968] render() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Action/Helper/ViewRenderer.php:900 [0x386f0760] renderScript() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Action/Helper/ViewRenderer.php:921 [0x386f0620] render() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Action/Helper/ViewRenderer.php:960 [0x386f0458] postDispatch() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Action/HelperBroker.php:277 [0x386efdd0] notifyPostDispatch() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Action.php:527 [0x386eefb8] dispatch() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Dispatcher/Standard.php:295 [0x386ed590] dispatch() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Controller/Front.php:954 [0x386ed190] dispatch() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Application/Bootstrap/Bootstrap.php:97 [0x386ed050] run() /web/lib/zend/ZendFramework-1.11.10- minimal/library/Zend/Application.php:366 [0x386ec068] run() /web/vhosts/imac.michael.dev.bluehawk.evanta.com/website/public/index.php:69 -- Edit bug report at https://bugs.php.net/bug.php?id=60158&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=60158&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=60158&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=60158&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=60158&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=60158&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=60158&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=60158&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=60158&r=needscript Try newer version: https://bugs.php.net/fix.php?id=60158&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=60158&r=support Expected behavior: https://bugs.php.net/fix.php?id=60158&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=60158&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=60158&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=60158&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=60158&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=60158&r=dst IIS Stability: https://bugs.php.net/fix.php?id=60158&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=60158&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=60158&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=60158&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=60158&r=mysqlcfg