php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68527 iterator_to_array causing segfaults
Submitted: 2014-11-30 13:29 UTC Modified: 2014-12-30 10:43 UTC
From: sjaillet at gmail dot com Assigned:
Status: No Feedback Package: SPL related
PHP Version: Irrelevant OS: Ubuntu 12.04
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-11-30 13:29 UTC] sjaillet at gmail dot com
Description:
------------
During the past 12 months we experienced some weird segfaults issue. We worked on a project with a of tests and our CI proccess kept segfaulting randomly again and again. Adding an echo somewhere in the code make it suddenly pass for an unknown reason. This error occured on PHP 5.4 as well as PHP 5.5 and on many different platforms (essentially Ubuntu & Mac).

Since we experienced some segfault issues by using the SPL library in the past we decided to remove the couple of `iterator_to_array()` references in our code base.

And now 2 months later we didn't experienced any more segfaults during our CI proccess.

Due to the random aspect of the issue I wasn't able to produce a deterministic test script but wanted to share this experience in case of it can help other people.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-01 00:29 UTC] requinix@php.net
-Status: Open +Status: Feedback
 [2014-12-01 00:29 UTC] requinix@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2014-12-30 10:43 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 "Re-Opened". Thank you.
 
PHP Copyright © 2001-2017 The PHP Group
All rights reserved.
Last updated: Sun Nov 19 01:31:42 2017 UTC