Bug #63055 [Com]: Segfault in zend_gc with SF2 testsuite
Edit report at https://bugs.php.net/bug.php?id=63055&edit=1 ID: 63055 Comment by: imprec at gmail dot com Reported by:php at wallbash dot com Summary:Segfault in zend_gc with SF2 testsuite Status: Critical Type: Bug Package:*General Issues Operating System: CentOS 6.3 PHP Version:5.4.6 Assigned To:laruence Block user comment: N Private report: N New Comment: It seems this bug is reproduceable on 5.3.17 as seen on this backtrace https://travis-ci.org/#!/alchemy-fr/Phraseanet/jobs/2837260 , should the version be updated ? Previous Comments: [2012-10-18 08:53:06] larue...@php.net I'd like mark this as a critical one, any usage of zval_dtor with recursive array may trigger this segfault. but I can not find a way to fix this without inconsistent field. for now. thanks [2012-10-18 08:44:02] larue...@php.net the fix is not right for non-debug mode, we need find another way out. [2012-10-18 07:53:12] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=ccc519b7a92bfe4b191c0e2e3869516171247ac2 Log: Fixed bug #63055 (Segfault in zend_gc with SF2 testsuite) [2012-10-18 07:50:48] larue...@php.net Automatic comment on behalf of laruence Revision: http://git.php.net/?p=php-src.git;a=commit;h=ccc519b7a92bfe4b191c0e2e3869516171247ac2 Log: Fixed bug #63055 (Segfault in zend_gc with SF2 testsuite) [2012-10-18 07:18:02] larue...@php.net FINALLY, I am able to make a reproduce script, thanks very much for your box @imprec .. 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=63055 -- Edit this bug report at https://bugs.php.net/bug.php?id=63055&edit=1
Bug #63055 [Com]: Segfault in zend_gc with SF2 testsuite
Edit report at https://bugs.php.net/bug.php?id=63055&edit=1 ID: 63055 Comment by: imprec at gmail dot com Reported by:php at wallbash dot com Summary:Segfault in zend_gc with SF2 testsuite Status: Assigned Type: Bug Package:*General Issues Operating System: CentOS 6.3 PHP Version:5.4.6 Assigned To:laruence Block user comment: N Private report: N New Comment: Hello, got the same issue, see backtrace here https://travis- ci.org/#!/romainneutron/Phraseanet/jobs/2799781 I can provide a debug box, larue...@php.net are you interested ? Previous Comments: [2012-09-12 03:57:03] larue...@php.net still can not reproduce it, php at wallbash.com , could you give me a access to your testing box? that will be useful.. :) [2012-09-11 14:28:16] php at wallbash dot com Fixed reproduce instructions: https://gist.github.com/3690351; Maybe that helps you laruence. I've misspelled the phpunit mock object dependency and it doesn't work with newer versions (as it, i assume, involves object cloning that newer versions have turned off). Any other minor versions don't lead to the segfault. @reeze, (gdb) zbacktrace (gdb) [0x7ff1428d4ea8] preg_match_all("/@requires\s+(?Pfunction|extension)\s(?P([^\40]+))\r?$/m", "/**\12\40*\40Note\40that\40there\40are\40some\40values\40written\40like\40-2147483647\40-\401.\40This\40is\40the\40lower\4032bit\40int\40max\40and\40is\40a\40known\12\40*\40behavior\40of\40PHP.\12\40*/\12/**\12\40\40\40\40\40*\40@dataProvider\40formatCurrencyWithCurrencyStyleBrazilianRealRoundingProvider\12\40\40\40\40\40*/", array(7)[0x14916c30]) /usr/share/pear/PHPUnit/Util/Test.php:126 [0x7ff1428d4ab0] getRequirements("Symfony\Component\Locale\Tests\Stub\StubNumberFormatterTest", "testFormatCurrencyWithCurrencyStyleBrazilianRealRoundingStub") /usr/share/pear/PHPUnit/Framework/TestCase.php:558 [0x7ff1428d4378] setRequirementsFromAnnotation() /usr/share/pear/PHPUnit/Framework/TestCase.php:586 [0x7ff1428d31b0] checkRequirements() /usr/share/pear/PHPUnit/Framework/TestCase.php:823 [0x7ff1428d1d38] runBare() /usr/share/pear/PHPUnit/Framework/TestResult.php:649 [0x7ff1428d0dd8] run(object[0x747e368]) /usr/share/pear/PHPUnit/Framework/TestCase.php:770 [0x7ff1428d0cd8] run(object[0xa6fcfe0]) /usr/share/pear/PHPUnit/Framework/TestSuite.php:776 [0x7ff1428cf980] runTest(object[0x747e368], object[0xa6fcfe0]) /usr/share/pear/PHPUnit/Framework/TestSuite.php:746 [0x7ff1428ce610] run(object[0xa6fcfe0], false, array(0)[0xa6fa9e8], array(1)[0xa7390a8], false) /usr/share/pear/PHPUnit/Framework/TestSuite.php:706 [0x7ff1428cd2a0] run(object[0xa6fcfe0], false, array(0)[0x14735b38], array(1)[0x14735cf0], false) /usr/share/pear/PHPUnit/Framework/TestSuite.php:706 [0x7ff1428caea0] run(object[0xa6fcfe0], false, array(0)[0xab473f0], array(1)[0xab475a8], false) /usr/share/pear/PHPUnit/TextUI/TestRunner.php:325 [0x7ff1428ca528] doRun(object[0x7ff13c2c3ed8], array(5)[0xab48718]) /usr/share/pear/PHPUnit/TextUI/Command.php:177 [0x7ff1428ca360] run(array(1)[0x6b7c498], true) /usr/share/pear/PHPUnit/TextUI/Command.php:130 [0x7ff1428ca0e8] main() /usr/bin/phpunit:46 (gdb) Hope that helps :) [2012-09-11 08:48:58] larue...@php.net intl Internationalization support => enabled version => 1.1.0 ICU version => 3.6 [2012-09-11 06:57:39] reeze dot xia at gmail dot com gdb > zbactrace ---> gdb > zbacktrace missing a 'k' :) [2012-09-11 06:56:49] reeze dot xia at gmail dot com Hi wallbash, when you got a backtrace, you could source php-src's backtrace of php script gdb > source path/to/php-src/.gdbinit gdb > zbactrace then you may see a php level script, then we could find where cause the php crash 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=63055 -- Edit this bug report at https://bugs.php.net/bug.php?id=63055&edit=1
Bug #63055 [Com]: Segfault in zend_gc with SF2 testsuite
Edit report at https://bugs.php.net/bug.php?id=63055&edit=1 ID: 63055 Comment by: reeze dot xia at gmail dot com Reported by:php at wallbash dot com Summary:Segfault in zend_gc with SF2 testsuite Status: Open Type: Bug Package:*General Issues Operating System: CentOS 6.3 PHP Version:5.4.6 Block user comment: N Private report: N New Comment: gdb > zbactrace ---> gdb > zbacktrace missing a 'k' :) Previous Comments: [2012-09-11 06:56:49] reeze dot xia at gmail dot com Hi wallbash, when you got a backtrace, you could source php-src's backtrace of php script gdb > source path/to/php-src/.gdbinit gdb > zbactrace then you may see a php level script, then we could find where cause the php crash [2012-09-11 06:53:26] reeze dot xia at gmail dot com >From the backtrace this seems a test for ext: intl, I can't install intl ext in my box because of compile issue. @larucene, do you see some test skip for intl or did you enabled intl extsion? [2012-09-10 16:34:15] php at wallbash dot com Like stated on pecl: I sadly can't. Every output i generate or just executing that one test case make the segfault go away. I'm really sorry I can't provide anything more helpful but with issues like that (see the last time I ran into something like that: https://bugs.php.net/bug.php?id=60825) getting a good repro is really hard for me. I've tried for a couple of hours but gave up. I totally understand if this is not fixable for you of course but asking in php.pecl encouraged me to post it anyways :) [2012-09-10 12:53:17] larue...@php.net I can not reproduce this with 5.4-branch... could you try to make a small reproduce test script ? thanks [2012-09-10 12:41:19] php at wallbash dot com He laruence, i meant the segfault happens with 5.3.16, 5.4.6 and with master but I only included two coredumps. The included coredump that produced a meaningful stacktrace is from 5.4.6 like noted. 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=63055 -- Edit this bug report at https://bugs.php.net/bug.php?id=63055&edit=1
Bug #63055 [Com]: Segfault in zend_gc with SF2 testsuite
Edit report at https://bugs.php.net/bug.php?id=63055&edit=1 ID: 63055 Comment by: reeze dot xia at gmail dot com Reported by:php at wallbash dot com Summary:Segfault in zend_gc with SF2 testsuite Status: Open Type: Bug Package:*General Issues Operating System: CentOS 6.3 PHP Version:5.4.6 Block user comment: N Private report: N New Comment: Hi wallbash, when you got a backtrace, you could source php-src's backtrace of php script gdb > source path/to/php-src/.gdbinit gdb > zbactrace then you may see a php level script, then we could find where cause the php crash Previous Comments: [2012-09-11 06:53:26] reeze dot xia at gmail dot com >From the backtrace this seems a test for ext: intl, I can't install intl ext in my box because of compile issue. @larucene, do you see some test skip for intl or did you enabled intl extsion? [2012-09-10 16:34:15] php at wallbash dot com Like stated on pecl: I sadly can't. Every output i generate or just executing that one test case make the segfault go away. I'm really sorry I can't provide anything more helpful but with issues like that (see the last time I ran into something like that: https://bugs.php.net/bug.php?id=60825) getting a good repro is really hard for me. I've tried for a couple of hours but gave up. I totally understand if this is not fixable for you of course but asking in php.pecl encouraged me to post it anyways :) [2012-09-10 12:53:17] larue...@php.net I can not reproduce this with 5.4-branch... could you try to make a small reproduce test script ? thanks [2012-09-10 12:41:19] php at wallbash dot com He laruence, i meant the segfault happens with 5.3.16, 5.4.6 and with master but I only included two coredumps. The included coredump that produced a meaningful stacktrace is from 5.4.6 like noted. [2012-09-10 12:24:42] larue...@php.net you mean , you are running with 5.3? 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=63055 -- Edit this bug report at https://bugs.php.net/bug.php?id=63055&edit=1
Bug #63055 [Com]: Segfault in zend_gc with SF2 testsuite
Edit report at https://bugs.php.net/bug.php?id=63055&edit=1 ID: 63055 Comment by: reeze dot xia at gmail dot com Reported by:php at wallbash dot com Summary:Segfault in zend_gc with SF2 testsuite Status: Open Type: Bug Package:*General Issues Operating System: CentOS 6.3 PHP Version:5.4.6 Block user comment: N Private report: N New Comment: >From the backtrace this seems a test for ext: intl, I can't install intl ext in my box because of compile issue. @larucene, do you see some test skip for intl or did you enabled intl extsion? Previous Comments: [2012-09-10 16:34:15] php at wallbash dot com Like stated on pecl: I sadly can't. Every output i generate or just executing that one test case make the segfault go away. I'm really sorry I can't provide anything more helpful but with issues like that (see the last time I ran into something like that: https://bugs.php.net/bug.php?id=60825) getting a good repro is really hard for me. I've tried for a couple of hours but gave up. I totally understand if this is not fixable for you of course but asking in php.pecl encouraged me to post it anyways :) [2012-09-10 12:53:17] larue...@php.net I can not reproduce this with 5.4-branch... could you try to make a small reproduce test script ? thanks [2012-09-10 12:41:19] php at wallbash dot com He laruence, i meant the segfault happens with 5.3.16, 5.4.6 and with master but I only included two coredumps. The included coredump that produced a meaningful stacktrace is from 5.4.6 like noted. [2012-09-10 12:24:42] larue...@php.net you mean , you are running with 5.3? [2012-09-10 12:19:49] php at wallbash dot com Initially I ran into this issue with 5.3.16 but I didn't include a coredump for it. Just added it to make clear it might not be something new in 5.4 Regards, Edorian 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=63055 -- Edit this bug report at https://bugs.php.net/bug.php?id=63055&edit=1