php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #63287 Segfault in PHP 5.4.7 on OS X 10.7
Submitted: 2012-10-16 16:09 UTC Modified: 2013-02-18 00:36 UTC
From: evert at rooftopsolutions dot nl Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.4.7 OS: OS X 10.7
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2012-10-16 16:09 UTC] evert at rooftopsolutions dot nl
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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-10-17 10:44 UTC] cataphract@php.net
Try again without xdebug. If it goes away submit the bug to 
http://bugs.xdebug.org/ instead.
 [2012-10-17 10:44 UTC] cataphract@php.net
-Status: Open +Status: Feedback
 [2012-10-17 10:45 UTC] evert at rooftopsolutions dot nl
Unfortunately it also appears without xdebug. It seems GC related.

This just happened at my home computer, so I will try again this evening to trigger this without xdebug.

thnx!
 [2012-10-17 19:07 UTC] evert at rooftopsolutions dot nl
With or without xdebug, I cannot reproduce this anymore.

A bit annoying, as this was yesterday definitely the case. The problem appeared and disappeared as I changed different things (turn on mysql, change a line of code).. but not today.

So I suppose this bug can be closed until I can do this again.
 [2013-02-18 00:36 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.
 [2013-07-30 01:34 UTC] ww dot galen at gmail dot com
This may be a duplicate of bug #63055, in which case was fixed in 5.3.19/5.4.9.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 12:01:27 2024 UTC