Bug #63287 [NEW]: Segfault in PHP 5.4.7 on OS X 10.7
| From: | evert at rooftopsolutions dot nl | Date: | Tue, 16 Oct 2012 16:09:09 +0000 |
| Subject: | Bug #63287 [NEW]: Segfault in PHP 5.4.7 on OS X 10.7 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-174105@lists.php.net to get a copy of this message | ||
From: evert at rooftopsolutions dot nl
Operating system: OS X 10.7
PHP version: 5.4.7
Package: Reproducible crash
Bug Type: Bug
Bug description:Segfault in PHP 5.4.7 on OS X 10.7
Description:
------------
Hi!
I'm getting segfaults at random places. The stacktrace I gathered so far is
this:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x00000f780000002d
0x0000000100345623 in zval_mark_grey ()
#0 0x0000000100345623 in zval_mark_grey ()
#1 0x0000000100345644 in zval_mark_grey ()
#2 0x0000000100344986 in gc_collect_cycles ()
#3 0x00000001003445f5 in gc_zval_possible_root ()
#4 0x0000000100336e9d in zend_hash_destroy ()
#5 0x000000010032a0bd in _zval_dtor_func ()
#6 0x00000001000529ae in php_pcre_match_impl ()
#7 0x0000000100055a30 in php_do_pcre_match ()
#8 0x000000010031f341 in dtrace_execute_internal ()
#9 0x0000000100e98037 in xdebug_execute_internal ()
#10 0x000000010038fb0f in zend_do_fcall_common_helper_SPEC ()
#11 0x000000010034cf7c in execute ()
#12 0x000000010031f286 in dtrace_execute ()
#13 0x0000000100e97dba in xdebug_execute ()
#14 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#15 0x000000010034cf7c in execute ()
#16 0x000000010031f286 in dtrace_execute ()
#17 0x0000000100e97dba in xdebug_execute ()
#18 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#19 0x000000010034cf7c in execute ()
#20 0x000000010031f286 in dtrace_execute ()
#21 0x0000000100e97dba in xdebug_execute ()
#22 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#23 0x000000010034cf7c in execute ()
#24 0x000000010031f286 in dtrace_execute ()
#25 0x0000000100e97dba in xdebug_execute ()
#26 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#27 0x000000010034cf7c in execute ()
#28 0x000000010031f286 in dtrace_execute ()
#29 0x0000000100e97dba in xdebug_execute ()
#30 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#31 0x000000010034cf7c in execute ()
#32 0x000000010031f286 in dtrace_execute ()
#33 0x0000000100e97dba in xdebug_execute ()
#34 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#35 0x000000010034cf7c in execute ()
#36 0x000000010031f286 in dtrace_execute ()
#37 0x0000000100e97dba in xdebug_execute ()
#38 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#39 0x000000010034cf7c in execute ()
#40 0x000000010031f286 in dtrace_execute ()
#41 0x0000000100e97dba in xdebug_execute ()
#42 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#43 0x000000010034cf7c in execute ()
#44 0x000000010031f286 in dtrace_execute ()
#45 0x0000000100e97dba in xdebug_execute ()
#46 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#47 0x000000010034cf7c in execute ()
#48 0x000000010031f286 in dtrace_execute ()
#49 0x0000000100e97dba in xdebug_execute ()
#50 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#51 0x000000010034cf7c in execute ()
#52 0x000000010031f286 in dtrace_execute ()
#53 0x0000000100e97dba in xdebug_execute ()
#54 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#55 0x000000010034cf7c in execute ()
#56 0x000000010031f286 in dtrace_execute ()
#57 0x0000000100e97dba in xdebug_execute ()
#58 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#59 0x000000010034cf7c in execute ()
#60 0x000000010031f286 in dtrace_execute ()
#61 0x0000000100e97dba in xdebug_execute ()
#62 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#63 0x000000010034cf7c in execute ()
#64 0x000000010031f286 in dtrace_execute ()
#65 0x0000000100e97dba in xdebug_execute ()
#66 0x000000010038fc34 in zend_do_fcall_common_helper_SPEC ()
#67 0x000000010034cf7c in execute ()
#68 0x000000010031f286 in dtrace_execute ()
#69 0x0000000100e97dba in xdebug_execute ()
#70 0x000000010032c570 in zend_execute_scripts ()
#71 0x00000001002db63b in php_execute_script ()
#72 0x00000001003addfd in do_cli ()
#73 0x00000001003ad26f in main ()
The problem occurs all over the place in different situations. Remove
xdebug, problem goes away.. start mysql.. problem comes back.. change a
file, problem is somewhere else.
So I understand this is pretty vague
Test script:
---------------
Unfortunately I cannot create a simple testcase, as the location of the
error alternates, and doesn't appear in simple scripts. I would be more
than happy to give you more details though, Just need to know where and
what to do..
Expected result:
----------------
No segfault
Actual result:
--------------
A segfault
--
Edit bug report at https://bugs.php.net/bug.php?id=63287&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63287&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63287&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63287&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63287&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63287&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63287&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63287&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63287&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63287&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63287&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63287&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63287&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63287&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63287&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63287&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63287&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63287&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63287&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63287&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63287&r=mysqlcfg