|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #54585 track_errors causes segfault
Submitted: 2011-04-21 11:02 UTC Modified: 2011-04-25 09:50 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:1 (50.0%)
From: arekm at maven dot pl Assigned: dmitry (profile)
Status: Closed Package: Reproducible crash
PHP Version: 5.3SVN-2011-04-21 (snap) OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: arekm at maven dot pl
New email:
PHP Version: OS:


 [2011-04-21 11:02 UTC] arekm at maven dot pl
When track_errors is On then simple code causes php segfault.

It was tested with 5.3.6 final and also with recent php5.3-201104201030 snap.

Test script:
[arekm@t400 ~/public_html]$ cat a.ini
track_errors = On
[arekm@t400 ~/public_html]$ cat a.php
function testing($source) {

[arekm@t400 ~/public_html]$ php -n -c a.ini a.php

zsh: segmentation fault  php -n -c a.ini a.php

Expected result:
No segfault.

Actual result:
Starting program: /usr/bin/php -n -c php.ini a.php
[Thread debugging using libthread_db enabled]

Program received signal SIGSEGV, Segmentation fault.
zval_mark_grey (pz=<value optimized out>) at /usr/src/debug/php-
372                             pz = *(zval**)p->pData;
(gdb) bt
#0  zval_mark_grey (pz=<value optimized out>) at /usr/src/debug/php-
#1  0x00007ffff7cb7c35 in gc_mark_roots () at /usr/src/debug/php-
#2  gc_collect_cycles () at /usr/src/debug/php-
#3  0x00007ffff7c9b0ed in zend_deactivate () at /usr/src/debug/php-
#4  0x00007ffff7c48a20 in php_request_shutdown (dummy=<value optimized out>) at /usr/src/debug/php-
#5  0x0000000000403d0c in main (argc=5, argv=0x7fffffffeb68) at /usr/src/debug/php-
(gdb) print p
$1 = (Bucket *) 0x400000000
(gdb) print p->pData
Cannot access memory at address 0x400000010


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-04-21 16:50 UTC]
-Status: Open +Status: Assigned -Assigned To: +Assigned To: dmitry
 [2011-04-25 09:50 UTC]
Automatic comment from SVN on behalf of dmitry
Log: Fixed bug #54585 (track_errors causes segfault)
 [2011-04-25 09:50 UTC]
-Status: Assigned +Status: Closed
 [2011-04-25 09:50 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 01 12:01:29 2024 UTC