Edit report at https://bugs.php.net/bug.php?id=63191&edit=1
ID: 63191 Updated by: [email protected] Reported by: sh at isecure dot cz Summary: SIGSEGV (phpunit) Status: Open Type: Bug Package: Unknown/Other Function Operating System: Freebsd 9 & Ubuntu 12.04 PHP Version: Irrelevant Block user comment: N Private report: N New Comment: I can not reproduce this. Previous Comments: ------------------------------------------------------------------------ [2012-10-18 20:25:57] dispyfree at googlemail dot com TestCase: https://dl.dropbox.com/u/70134012/sigsegv_bug.tar.bz2 execute: "cd tests && phpunit functional/ReferenceTest" PHPInfo: https://dl.dropbox.com/u/70134012/phpinfo.txt Thanks in advance! ------------------------------------------------------------------------ [2012-10-18 16:33:12] [email protected] Can you give us a reproduce script? ------------------------------------------------------------------------ [2012-10-18 15:56:17] dispyfree at googlemail dot com I just tested PHP 5.4.7 I compiled from source - same behavior. Obviously, this issue has not been fixed yet. Regards ------------------------------------------------------------------------ [2012-10-18 14:31:49] dispyfree at googlemail dot com I can confirm this issue. The interesting part is that this issue does only come up if you use a newer version than PHPUnit 3.7.1 - I guess they used a new feature starting from that version. I'm running PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) on Linux version 3.2.0-32-generic-pae (buildd@roseapple) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #51-Ubuntu SMP Wed Sep 26 21:54:23 UTC 2012. And another one: the newest debian php binary does _not_ crash. Regards, ------------------------------------------------------------------------ [2012-10-03 20:34:58] sh at isecure dot cz By Xdebug i steped on this line if(!$this->formatter) { // irelevant } Expression itself throw sigsegv, but only after several itterations with almost same variables (this->formatter is always simple object - https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/LineFormatt er.php) If i change row to if(empty($this->formatter)), code miraculously works. I am unable to simulate it nor simplify current conditions to write example script. Please can you tell me how to investigate this bug more? ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=63191 -- Edit this bug report at https://bugs.php.net/bug.php?id=63191&edit=1
