Edit report at https://bugs.php.net/bug.php?id=63055&edit=1
ID: 63055
User updated by: php at wallbash dot com
Reported by: php at wallbash dot com
Summary: Segfault in zend_gc with SF2 testsuite
-Status: Feedback
+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:
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+(?P<name>function|extension)\s(?P<value>([^\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 :)
Previous Comments:
------------------------------------------------------------------------
[2012-09-11 08:48:58] laruence@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
------------------------------------------------------------------------
[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 :)
------------------------------------------------------------------------
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